Basic Storage Part Flashcards

1
Q

show partition info with fdisk

A

fdisk -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

tool for partitioning GPT format only

A

gdisk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

create MBR partition

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

delete MBR partition

A

sudo parted /dev/sdb rm 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

get into gdisk main interface

A

sudo gdisk /dev/sdc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

create GPT partition

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

view partition info

A

grep sdc /proc/partitions
lsblk /dev/sdc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Delete GPT partition

A

sudo gdisk /dev/sdc
> d1 = deletes first partion
> p = confirm deletion
> w = write the updated partition info to disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

install and enable VDO

A

sudo dnf install vdo kmod-kvdo -y
sudo systemctl –now enable vdo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

create VDO volume

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

list VDO volumes

A

sudo vdo list
lsblik /dev/sdf

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

see vdo info

A

sudo vdostats –hu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

show detailed info of specific VDO volume

A

sudo vdo status –name vdo-vol1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

delete VDO volume

A

sudo vdo remove –name vdo-vol1
sudo vdo list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly