16 June 2010

lvm and ext4

During OS install, allow the new partition to be created by LVM, for example /websvc

This filesystem will be ext3. Note the Volume group and logical volume (VolGroup01-LogVol01)

yum install e4fsprogs

umount /websvc

mkfs.ext4 /dev/mapper/VolGroup01-LogVol01 -- this will wipe out everything on the filesystem and transform it to ext4

when complete, do a test mount:
mount -t ext4 /dev/mapper/VolGroup01-LogVol01 /websvc

df -T will show which file type is running.

last step is to modify /etc/fstab: change the ext3 entry to ext4 for this filesystem.

No comments:

Post a Comment