Manage Swap Space Flashcards
1
Q
How do you create a myswap partition with the partition type being linux-swap?
A
parted /dev/<device> mkpart myswap linux-swap 1001MB 1501MB</device>
2
Q
How do you initialize the new partition as a swap space?
A
mkswap /dev/<new></new>
3
Q
How do you verify that the new swap space is enabled or disabled?
A
swapon –show
4
Q
How do you enable the new swap space?
A
swapon /dev/<new></new>
5
Q
How do you verify the new swap space is disabled?
A
swapoff /dev/vdb2
6
Q
How do you enable the swap space by using the entry in the /etc/fstab file?
A
swapon -a
7
Q
A