Error while mounting home directory on different logical volume
- by RCola
I created RAID 5 form 3 hard drives. Formatted as ext4 this raid array. Created VG0 group and lv_home logical volume in LVM. Then I tried to mount default /home directory on lv_home, while trying to mount logical volume lv_home to folder containing user profiles /home, getting error:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/VG0-lv_home
next is seems to be symbolic link:
# file -s /dev/VG0/lv_home
/dev/VG0/lv_home: symbolic link to `../mapper/VG0-lv_home'
then
# file -s /dev/mapper/VG0-lv_home
/dev/mapper/VG0-lv_home: data
and
lvm> pvs
PV VG Fmt Attr PSize PFree
/dev/md0 VG0 lvm2 a- 2.02g 68.00m
lvm> lvdisplay
--- Logical volume ---
LV Name /dev/VG0/lv_home
VG Name VG0
LV UUID WzJus7-2yV8-yhog-Ju1b-TpWH-IIAI-LIutwe
LV Write Access read/write
LV Status available
# open 0
LV Size 1.17 GiB
Current LE 300
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:0