Thread: swap -a
View Single Post

   
  #1 (permalink)  
Old 01-16-2008, 10:34 AM
Marek Franke
 
Posts: n/a
Default swap -a

Hiho,

I have a Enterprise 250 here with a 18G disk in it. Actually there is
installed OpenSolaris on /dev/dsk/c0t0d0s0 (16G). Now I want to add a
swap in /dev/dsk/c0t0d0s1 (2G). When I do a:

# df -h
....
swap 245M 1,1M 244M 1% /etc/svc/volatile
swap 244M 64K 244M 1% /tmp
swap 244M 48K 244M 1% /var/run
....

After a:
# swap -a /dev/dsk/c0t0d0s1
# df -h
....
swap 2,2G 1,1M 2,2G 1% /etc/svc/volatile
swap 2,2G 64K 2,2G 1% /tmp
swap 2,2G 48K 2,2G 1% /var/run
....

Which looks good to me. The problem is that I need to do it every time I
boot the machine. (How) Can I add the new swap to /etc/vfstab?

Thanks, Marek
Reply With Quote