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
UPDATE
When dmesg | grep md0 I've got md0: unknown partition table. I did raid, pv, vg, lv, formatted mkfs.ext4 /dev/VG0/lv_home, updated /etc/fstab - but still getting error. I was able to mount only with mount -f /dev/md0. I can write files to mounted /dev/md0 at /tmp_home. What seems to be a problem?
UPDATE 2
I can mount only LV, but not raid5 (/dev/md0/):
# mount -t ext4 /dev/VG0/lv_home /mnt/tmp_home
# mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda6 on /var type xfs (rw)
/dev/md1 on /export type xfs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
/dev/mapper/VG0-lv_home on /mnt/tmp_home type ext4 (rw)
Is it correct?