vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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 |
| ||||
| Daniel Rock wrote: > Marek Franke <mfranke78@yahoo.de> wrote: >> boot the machine. (How) Can I add the new swap to /etc/vfstab? > > /dev/dsk/c0t0d0s1 - - swap - no - which is explained in "man vfstab" device device mount FS fsck mount mount to mount to fsck point type pass at boot options /etc/vfstab can be used to specify swap areas. An entry so specified, (which can be a file or a device), will automati- cally be added as a swap area by the /sbin/swapadd script when the system boots. To specify a swap area, the device- to-mount field contains the name of the swap file or device, the FS-type is "swap", mount-at-boot is "no" and all other fields have no entry. |