PrepAway - Latest Free Exam Questions & Answers

Which two methods can be used to temporarily add swap space?

The production server needs additional swap space due to lack of physical memory. The system has only one disk and is partitioned as follows:
Part Tag Flag Cylinders Size Blocks
0 root wm 1041 – 38491 18.00GB (37451/0/0) 37750608
1 swap wu 0 – 1040 512.37MB (1041/0/0) 1049328
2 backup wm 0 – 39532 19.00GB (39533/0/0) 39849264
3 unassigned wm 0 0 (0/0/0) 0
4 unassigned wm 0 0 (0/0/0) 0
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
There is one swap slice configured and active:
# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 136,1 16 1049312 0
The root file system is a flat file system:
# df -k /
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t0d0s0 18575269 9549546 9025723 53% /
Which two methods can be used to temporarily add swap space? (Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
add slice 2 as swap:
# swap -a /dev/dsk/c0t0d0s2

B.
create a 512 megabyte swap file on the root disk:
# mkfile 512m /swapfile
# swap -a /swapfile

C.
remove the existing swap and read it using swap compression: # swap -d /dev/dsk/c0t0d0s3 # swap -a -c /dev/dsk/c0t0d0s3

D.
repartition the disk so that slice 3 contains the unused cylinders 38492 through 39532, and then add slice 3 as swap:
# swap -a /dev/dsk/c0t0d0s3

E.
use NFS to mount a file system from the development server, and then create and use a swap file on the remote system:
# mkdir /data
# mount -F nfs tokyo:/export/data /data
# mkfile /data/swapfile
# swap -a /data/swapfile


Leave a Reply