|
gdisk /dev/sdb (n -new; w -write)
|
|
pvcreate /dev/sdb1 /dev/sdb2
|
|
pvdisplay
|
|
vgcreate vg01 /dev/sdb1 /dev/sdb2
|
|
lvcreate -L50 -n lv01 vg01
|
|
lvcreate -l 40%VG -n lv02 vg01
|
|
lvcreate -l 100%FREE -n lv03 vg01
|
|
lvs
|
|
mkfs.xfs /dev/vg01/lv01
|
|
mount /dev/vg01/lv01 /mnt/test_1
|
|
yum install stratisd stratis-cli
|
|
systemctl enable --now stratisd
|
|
wipefs -a /dev/sdb
|
|
stratis pool create mypool /dev/sdb
|
|
stratis pool list
|
|
stratis fs create mypool stratis1
|
|
stratis fs list
|
|
mkdir /mnt/stratis_01
|
|
echo '/dev/stratis/mypool/stratis1 /mnt/stratis_01 xfs defaults,x-systemd.requires=stratisd.service 0 0' >> /etc/fstab
|
|
mount -a
|
|
lvremove /dev/vg01/lv0*
|
|
vgremove vg01
|
|
pvremove /dev/sdb1 /dev/sdb2
|
|
vgreduce vg01 /dev/sdb2
|
|
vgextend vg01 /dev/sdb2
|
|
lvextend -l +100%FREE /dev/vg01/lv01
|
|
xfs_growfs /dev/vg01/lv01
|
|
stratis fs destroy mypool stratis1
|
|
stratis pool destroy mypool
|
|
yum install -y vdo kmod-kvdo
|
|
vdo create --name=vdo1 --device=/dev/sdb --vdoLogicalSize=1T
|
|
mkfs.xfs /dev/mapper/vdo1
|
|
mkdir /mnt/vdo1
|
|
cp /usr/share/doc/vdo/examples/systemd/VDO.mount.example /etc/systemd/system/mnt-vdo1.mount
|
|
what = /dev/mapper/vdo1 where = /mnt/vdo1
|
|
systemctl enable --now vdo1.mount
|
|
vdostats --human-readable
|
|
mirror
lvcreate -L 1G -m1 -n lv-mir vg01
|
|
snapshot
lvcreate -L500 -s -n sn01 /dev/vg01/lv01
|
|
export
vgexport vg01
|
|
import
vgimport vg01
|
|
deactivate
vgchange -an vg01
|
|
activate
vgchange -ay vg01
|
|
systemctl disable --now mnt-vdo1.mount
|
|
vdo remove --name=vdo1
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.