LVM

From ConShell
Jump to navigation Jump to search

Quick-n-dirty guide to creating a logical volume device/group/partition under [Ubuntu]

apt-get install lvm2 libdevmapper1.02.1
modprobe dm-mod
 pvcreate /dev/md2
vgcreate -v vg1 /dev/md2
lvcreate -L100G -nvol1 vg1
mkfs.jfs /dev/vg1/vol1 
mount -o noatime -t jfs /dev/vg1/vol1 /srv

Add to /etc/fstab!

See also: