Creating a Volume Group

# pvcreate /dev/sdb #not sure this step is required
# vgcreate datavg /dev/sdb
# vgchange -a y datavg # not sure you need to activate the vg
# lvcreate -l 100%FREE -n opt datavg
# mkfs.ext4 /dev/datavg/opt
# mount /dev/datavg/opt /mnt # for testing
# vim /etc/fstab

/dev/mapper/datavg-opt /opt ext4 defaults 1 2






Comments