2007年6月24日日曜日

Solaris 8に、swapを追加

KEYWORD:Solaris,swap
(Sun Jun 24 11:09:20)root@Ultra30:Studio11: mkfile 1024m /export/swap
(Sun Jun 24 11:09:20)root@Ultra30:Studio11: swap -a /export/swap
(Sun Jun 24 11:09:20)root@Ultra30:Studio11: diff /etc/vfstab.20070624 /etc/vfstab
10a11
> /export/swap - - swap - no -
(Sun Jun 24 11:09:29)root@Ultra30:Studio11:
(Sun Jun 24 11:10:25)root@Ultra30:init.d: chmod 755 swapadd
(Sun Jun 24 11:10:30)root@Ultra30:init.d: ls -l swapadd
-rwxr-xr-x 1 root other 31 Jun 24 11:10 swapadd
(Sun Jun 24 11:10:37)root@Ultra30:init.d: cat swapadd
#!/bin/sh
/sbin/swapadd
exit 0
(Sun Jun 24 11:10:40)root@Ultra30:init.d:
(Sun Jun 24 11:10:40)root@Ultra30:init.d: cd ../rc2.d
(Sun Jun 24 11:10:56)root@Ultra30:rc2.d: ln -s ../init.d/swapadd S99swap.add
(Sun Jun 24 11:11:06)root@Ultra30:rc2.d: ls -l S99swap.add
lrwxrwxrwx 1 root other 17 Jun 24 11:11 S99swap.add -> ../init.d/swapadd
(Sun Jun 24 11:11:10)root@Ultra30:rc2.d:
(Sun Jun 24 11:59:33)root@Ultra30:/tmp: swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 1052144 1044416
/export/swap - 16 2097136 2091840
(Sun Jun 24 11:59:41)root@Ultra30:/tmp:

0 件のコメント: