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>

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

How do you initialize the new partition as a swap space?

A

mkswap /dev/<new></new>

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

How do you verify that the new swap space is enabled or disabled?

A

swapon –show

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

How do you enable the new swap space?

A

swapon /dev/<new></new>

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

How do you verify the new swap space is disabled?

A

swapoff /dev/vdb2

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

How do you enable the swap space by using the entry in the /etc/fstab file?

A

swapon -a

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