Having an issue in regards mounting a file system to a logical volume in RHEL5
Hey folks,
I'm currently having an issue trying to mount a newly created logical volume named privatelv. what i've done so far was this; lvcreate -L 500M -n privatelv -v rootvg I didn't see any errors and when i typed ls /dev/rootvg/ I can see that the privatelv is sitting in the directory with the rest of my volumes. I then tried to append a file system to the volume by issuing the following command: mkfs -c -L privatelv -T ext3 /dev/rootvg/privatelv with no errors given i then tried to mount the file system to a directory by issuing the mount command: mount -t ext3 /dev/rootvg/privatelv /private and i get the following error Code:
mount: wrong fs type, bad option, bad superblock on /dev/rootvg/privatelv, ext3: No journal on filesystem on dm-9 i'm currently not getting any luck with my search to the solution but if anyone has any ideas i'm open to suggestions. Kind Regards |
I think you have to have an LVM partition before you can create an LVM volume? do fdisk -l and see
if you do have the patrtition 8e ( I think) and if it is for instance on hda4 then create a physical volume first; pvcreate /dev/hda4 then a volume group vgcreate privatelv (or whatever you want to name the folder) /dev/hda4 also after you have created the LVM volume you have to do this; mkfs.ext3 /dev/privatelv (or whatever u named the folder)/privatelv but I am pretty sure you have to activate it by; mkfs.ext3 /dev/privatelv even if you didnt create a group or a directory under /dev/ I have done this may be 2ice before so I am no expert at all... may be this link or some one else can help; http://ds9a.nl/lvm-howto/HOWTO/cvs/l...lvm-howto.html |
Quote:
mkfs -c -l privatelv -t ext3 /dev/rootvg/privatelv Saw the man page for mkfs and there was small t and l |
actually that was an input error on my behalf... I did it all via remote and i was unable to scroll back pages so i went by memory..
I deleted the volume via lvremove command and tried again; Code:
lvcreate -L 512M -n privlv -v rootvg you are right about the small letters, the problem was I wasn't thinking and I used the "mke2fs" command which is exactly like the "mkfs" but designed for only ext2/3 file systems and the mk2fs command uses capital letters. below is the result of my command: Code:
# mke2fs -c -L privlv -T ext3 /dev/rootvg/privlv after trying to mount: Code:
mount -t ext3 /dev/rootvg/privlv /private dmesg | tail ext3: No journal on filesystem on dm-9 any ideas? |
I think you also need -j on the mke2fs line to create the journal.
|
Thanks GazL
You were right. I had to add journal to the filesystem. I did so by using the default journal settings with the tune command; tune2fs -j /dev/rootvg/privlv Thanks again all for the assistance. |
You're welcome. :)
I use lvm + jfs myself. I think I'll give ext4 just a little while longer to settle down and then I might give that a try instead. |
All times are GMT -5. The time now is 02:53 AM. |