Basic Storage Part Flashcards
show partition info with fdisk
fdisk -l
tool for partitioning GPT format only
gdisk
create MBR partition
sudo parted /dev/sdb print = vew current partition info
sudo parted /dev/sdb mklabel msdos = assign disk lable (performed only once on a disk)
Or
sudo parted /dev/sdb mklabel gpt
run first command again
sudo parted /dev/sdb mkpart primary 1 101m
print again
delete MBR partition
sudo parted /dev/sdb rm 1
get into gdisk main interface
sudo gdisk /dev/sdc
create GPT partition
sudo gdisk /dev/sdc
> o = assigns gpt as the partition table type
> p = view disk info
> n = new partition
run through prompts
> p = view info
> w = writes the partition info to partition table
view partition info
grep sdc /proc/partitions
lsblk /dev/sdc
Delete GPT partition
sudo gdisk /dev/sdc
> d1 = deletes first partion
> p = confirm deletion
> w = write the updated partition info to disk
install and enable VDO
sudo dnf install vdo kmod-kvdo -y
sudo systemctl –now enable vdo
create VDO volume
sudo vdo create –name vdo-vol1 –device /dev/sdf –vdoLogicalSize 16G –vdoSlabSize 128
SlabSize = the size of the increment that VDO volumes will grow - must be a power of 2
list VDO volumes
sudo vdo list
lsblik /dev/sdf
see vdo info
sudo vdostats –hu
show detailed info of specific VDO volume
sudo vdo status –name vdo-vol1
delete VDO volume
sudo vdo remove –name vdo-vol1
sudo vdo list