cat /proc/scsi/ dmesg |grep sd
fdisk /dev/sdb
pvcreate /dev/sdb1 pvcreate /dev/sdc1
pvscan
vgscan (should return nothing)
vgcreate opt_vg /dev/sdb1 /dev/sdc1
vgscan (now shows the VG we created)
vgdisplay
lvcreate -l num_of_extents -n opt_lv opt_vg lvcreate -L 100M -n opt_lv opt_vg lvcreate -L 100M -n opt_lv -i num_stripes opt_vg lvcreate -L 100M -n opt_lv opt_vg [PhysicalVolumePath]
lvdisplay lvdisplay -m (Show maps. Compare striped vs un-striped)
mkdir /opt/foo1 mkdir /opt/striped
mkfs.ext3 /dev/opt_vg/opt_lv mkfs.ext3 /dev/opt_vg/striped_lv
mount /dev/opt_vg/opt_lv df -h
umount /mnt/lvm_filesystem
lvresize -l +50 /dev/opt_vg/opt_lv lvresize -L +200M /dev/opt_vg/opt_lv fsck the filesystem e2fsck -f /dev/opt_vg/opt_lv
resize2fs /dev/opt_vg/opt_lv
mount -t ext3 /dev/opt_vg/opt_lv /mnt/lvm_filesystem
lvresize -l +50 /dev/opt_vg/opt_lv lvresize -L +200M /dev/opt_vg/opt_lv
ext2online /mnt/lvm_filesystem (using mount path) ext2online /dev/opt_vg/opt_lv (using device)
mkreiserfs /dev/opt_vg/striped_lv
df -h lvresize -L +50M /dev/opt_vg/striped_lv resize_reiserfs -f /dev/opt_vg/striped_lv df -h
vgextend vgname /path/to/PV