Lvm

From The World according to Vissie
Jump to navigation Jump to search

OK, so I used this guide. Easy. A few notes:

You can use the -l argument of the lvcreate command to specify the size of the logical volume in extents. You can also use this argument to specify the percentage of the volume group to use for the logical volume. The following command creates a logical volume called mylv that uses 60% of the total space in volume group testvol. {source}

lvcreate -l 60%VG -n mylv testvg

To use xfs, you need the xfs tools to be installed.

emerge -av xfsprogs

I then also did some performance enhancements. Create xfs filesystem with a 64 megabyte log

mkfs.xfs -f -l size=64m /dev/hda3

Mount filesystem with 8 log buffers, and atime and diratime disabled

mount -o noatime,nodiratime,logbufs=8 /dev/hda3 /mnt/gentoo/