SUMMARY:

From: am.lists (am.lists@gmail.com)
Date: Thu May 03 2007 - 19:17:28 EDT


Special thanks to a bunch of people, you know who you are... most
provided the same general direction, but Michael Stier provided
step-by-step response. Turns out I was lost in 32-bit vs 64-bit
limitations, such as 2GB of swap being the max size available
-per-partition- and I need to change the drive setup a bit.

Thanks to everyone, you guys make this community work.

Angelo

>>
Solaris 2.6 (SunOS 5.6) is one of the major "transitory" releases,
between the 32 bit and 64 bit environments.

As to swap, I believe, but haven't confirmed, that swap partitions were
handled as 32bit signed integers, and thus limited to 2GB (4 million
block) in size.

Of course, multiple swap partitions/files could be created and SunOS 5
will balance across them.

Note: There is also an issue with older OBP not being able to 'savecore'
on systems where the primary swap partition is greater than 2GB.

Suggestion:
   Reboot to single user and run "swap -d /dev/dsk/c0t0d0s1".
   Run "format" and partition slice 1 to 1452 cylinders.
   Take the remaining 1452 cylinders and assign them to slice 4. (No,
slices (partitions) do not have to be consecutive on the drive.)
   Edit the /etc/vfstab file and copy the swap declaration line, and
create a swap declaration for slice 4.
   Run "/sbin/swapadd" to mount all swap space.
   Run "swap -l" to verify two swap slices, in the 4million block range.
   Exit single user, and continue normal operations.
<<

--- Original Post ----
I'm in a bit of a strange situation with a legacy box. It's running
2.6. The hardware is a 420R.

It has two 36G drives locally: c0t0d0 and c0t0d1.

The format of d0 looks like this:

Part Tag Flag Cylinders Size Blocks
 0 root wm 0 - 5807 8.00GB (5808/0/0) 16779312
 1 swap wu 5808 - 8711 4.00GB (2904/0/0) 8389656
 2 backup wu 0 - 24619 33.92GB (24620/0/0) 71127180
 3 usr wm 8712 - 24616 21.91GB (15905/0/0) 45949545
 4 unassigned wu 0 0 (0/0/0) 0
<snip>

Swap is thus c0t0d0s1, 4GB in size.

My relevant lines of /etc/vfstab shows:

/dev/dsk/c0t0d0s1 - - swap - no -
swap - /tmp tmpfs - yes -

Running swap -l shows:
#swap -l

swapfile dev swaplo blocks free
/dev/dsk/c0t0d0s1 32,1 16 4194272 4194176

BUT df -k shows swap as hardly any space available:

Filesystem kbytes used avail capacity Mounted on
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
swap 15904 120 15784 1% /tmp

AND I'm getting the "out of swap" error in my syslog:
unix: WARNING: /tmp: File system full, swap space limit exceeded

This is driving me nuts. I'll summarize any good answers to this. I
know 2.6 is old, and I've mostly managed 2.8 boxes, so I won't promise
that I've not overlooked something elementary.

-Angelo
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:56 EDT