Views
AddSwapOrigin
Adding swap space to boreas
boreas 10# fx fx version 6.5, Oct 9, 2001 fx: "device-name" = (dksc) fx: ctlr# = (0) 12 fx: drive# = (1) 3 fx: lun# = (0) ...opening dksc(12,3,0) ...drive selftest...OK Scsi drive type == SGI IBM DNES-318350YSAF0----- please choose one (? for help, .. to quit this menu)----- [exi]t [d]ebug/ [l]abel/ [b]adblock/ [exe]rcise/ [r]epartition/ fx> r
----- partitions----- part type blocks Megabytes (base+size) 7: xfs 4096 + 35558944 2 + 17363 8: volhdr 0 + 4096 0 + 2 10: volume 0 + 35563040 0 + 17365
capacity is 35563040 blocks
----- please choose one (? for help, .. to quit this menu)----- [ro]otdrive [u]srrootdrive [o]ptiondrive [re]size fx/repartition> r r is ambiguous: rootdrive, resize
----- partitions----- part type blocks Megabytes (base+size) 7: xfs 4096 + 35558944 2 + 17363 8: volhdr 0 + 4096 0 + 2 10: volume 0 + 35563040 0 + 17365
capacity is 35563040 blocks
----- please choose one (? for help, .. to quit this menu)----- [ro]otdrive [u]srrootdrive [o]ptiondrive [re]size fx/repartition> re
Warning: you will need to re-install all software and restore user data from backups after changing the partition layout. Changing partitions will cause all data on the drive to be lost. Be sure you have the drive backed up if it contains any user data. Continue? y
After changing the partition, the other partitions will be adjusted around it to fit the change. The result will be displayed and you will be asked whether it is OK, before the change is committed to disk. Only the standard partitions may be changed with this function. Type ? at prompts for a list of possible choices
fx/repartition/resize: partition to change = (volume) swap current: type raw block 0, 0 MB len: 0 blks, 0 MB fx/repartition/resize: partitioning method = (megabytes (2^20 Bytes)) fx/repartition/resize: size in megabytes (max 17363) = (0) 2048 ----- partitions----- part type blocks Megabytes (base+size) 1: raw 4096 + 4194304 2 + 2048 7: xfs 4096 + 35558944 2 + 17363 8: volhdr 0 + 4096 0 + 2 10: volume 0 + 35563040 0 + 17365 Use the new partition layout? (no) yes
----- partitions----- part type blocks Megabytes (base+size) 1: raw 4096 + 4194304 2 + 2048 7: xfs 4096 + 35558944 2 + 17363 8: volhdr 0 + 4096 0 + 2 10: volume 0 + 35563040 0 + 17365
capacity is 35563040 blocks
----- please choose one (? for help, .. to quit this menu)----- [ro]otdrive [u]srrootdrive [o]ptiondrive [re]size fx/repartition> ..
----- please choose one (? for help, .. to quit this menu)----- [exi]t [d]ebug/ [l]abel/ [b]adblock/ [exe]rcise/ [r]epartition/ fx> exit
boreas 11# ls /dev/dsk/ dks0d1s0 dks0d5s7 dks12d3s7 dks13d3s7 dks1d2s7 dks6d1s7 root dks0d1s1 dks12d1s0 dks12d4s7 dks13d4s7 dks1d3s7 dks6d2s7 swap dks0d2s7 dks12d1s1 dks12d5s7 dks13d5s7 dks1d4s7 dks6d3s7 dks0d3s7 dks12d2s7 dks13d1s7 dks13d6s7 dks1d5s7 dks6d4s7 dks0d4s7 dks12d3s1 dks13d2s7 dks1d1s7 dks1d6s7 dks6d5s7
You can now add the s1 swap partitions to the /etc/fstab file like this:
/dev/dsk/dks12d3s1 swap swap pri=2 0 0
the machine will add the swap space on the next reboot, or you can add by hand:
# swap -a /dev/dsk/dks12d3s1
-- Main.HumbertoOrtiz - 06 Jun 2002