LVM Creation

LVM Creation

 

sudo mkdir /mysql;

/sbin/mkfs.ext4 /dev/xvdad;

sudo /sbin/pvcreate  /dev/xvdf;

/sbin/vgcreate vg0 /dev/xvdf;

/sbin/lvcreate -L 500G -n mysql vg0;

vgdisplay vg0;

lvextend -L +9G -n /dev/vg0/mysql;

vgdisplay vg0;

mkfs.ext4 /dev/vg0/mysql;

vi /etc/fstab

mount -a

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>