LVM issue
Hi,
I created a logical volume and can see it when i run lvdisplay. However, when I try to mount it, I get the following error message: root@xxxxxxx:/etc# mount -a mount: wrong fs type, bad option, bad superblock on /dev/mapper/VolGroup00-sysbak, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Command to mount in fstab: /dev/VolGroup00/sysbak /sysbak ext3 rw,noatime 0 0 ~ Any ideas? |
After creating the LV you have to layout a filesystem on it. LV is just creating the device (similar to a disk partition).
Your entry shows you're trying to do ext3 filesystem so to layout an ext3 you'd run: mkfs -t ext3 /dev/mapper/VolGroup00-sysbak After than you can try your mount command. Adding the file to /etc/fstab doesn't do the layout - it is just a way to insure the filesystem mounts automatically at boot but it assumes you've done the layout already. |
....
Thanks.
This worked but I had to redo the entire LVM setup (not a big deal), because I inadvertently formatted the entire partition, not just the LV. Doh. Once I recreated the PV, VG and LV's and then formatted the LV's as ext4, everything worked. Thanks much. |
All times are GMT -5. The time now is 03:10 AM. |