Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solaris 10.

Status
Not open for further replies.

CAF786

MIS
Aug 1, 2005
29
US
I just jumped this system with sol10. The disk size is 18G
and I have partitiot the / as 5g, /var 4g, /opt free and swap as 7G....but I donot know why swap shows 18G when I do df -h or df -k. From the format command the
partition table shows swap size 7G.



[root@dappa5:/usr/platform/sun4u/sbin]# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t10d0s0 5163654 3078798 2033220 61% /
/devices 0 0 0 0% /devices
ctfs 0 0 0 0% /system/contract
proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
swap 18835352 984 18834368 1% /etc/svc/volatile
objfs 0 0 0 0% /system/object
fd 0 0 0 0% /dev/fd
/dev/dsk/c0t10d0s3 4131866 218024 3872524 6% /var
swap 18834368 0 18834368 0% /tmp
swap 18834384 16 18834368 1% /var/run
/dev/dsk/c0t10d0s4 799347 1725 741668 1% /opt
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]# df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t10d0s0 4.9G 2.9G 1.9G 61% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 18G 984K 18G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
fd 0K 0K 0K 0% /dev/fd
/dev/dsk/c0t10d0s3 3.9G 213M 3.7G 6% /var
swap 18G 0K 18G 0% /tmp
swap 18G 16K 18G 1% /var/run
/dev/dsk/c0t10d0s4 781M 1.7M 724M 1% /opt
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]#
[root@dappa5:/usr/platform/sun4u/sbin]# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0t10d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@3,0/SUNW,fas@3,8800000/sd@a,0
1. c0t11d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
/sbus@3,0/SUNW,fas@3,8800000/sd@b,0
Specify disk (enter its number): 0
selecting c0t10d0
[disk formatted]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 7506 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 3116 - 5341 5.00GB (2226/0/0) 10488912
1 swap wu 0 - 3115 7.00GB (3116/0/0) 14682592
2 backup wm 0 - 7505 16.86GB (7506/0/0) 35368272
3 var wm 5342 - 7122 4.00GB (1781/0/0) 8392072
4 unassigned wm 7123 - 7483 830.58MB (361/0/0) 1701032
5 unassigned wm 0 0 (0/0/0) 0
6 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 7484 - 7505 50.62MB (22/0/0) 103664

partition> q


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> q
[root@dappa5:/usr/platform/sun4u/sbin]# wsap -l
ksh: wsap: not found
[root@dappa5:/usr/platform/sun4u/sbin]# swap -l
swapfile dev swaplo blocks free
/dev/dsk/c0t10d0s1 32,73 16 14682576 14682576
 
How much memory does the system have?
(My guess would be 12GB)

My understanding is that df reports stats about filesystems. Swap areas are 'special-case' filesystems and can occupy memory (that not reserved for the OS) and disk (swap space on partition 1). It looks like you have approx 11GB 'unreserved' memory plus 7GB disk swapspace.
(If you don't have 12GB memory, then my theory is blown out of the water!!!)

I hope that helps.

Mike
 
My Solaris 10 displays df swap correctly. Seems you have something strange there. No idea what it is though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top