Так сколько же свопа?

From
Victor Sudakov (2:5020/400)
To
All
Date
2008-06-06T11:15:28Z
Area
RU.UNIX.SOLARIS
From: Victor Sudakov <vas@mpeks.tomsk.su>

Коллеги, почему разные способы показывают разное количество свопа в
системе (512 MB vs 5.1GB)?



# 
# uname -a
SunOS oracle 5.10 Generic_120012-14 i86pc i386 i86pc
# cat /etc/release
                        Solaris 10 8/07 s10x_u4wos_12b X86
           Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 16 August 2007
# swap -l
swapfile             dev  swaplo blocks   free
/dev/dsk/c1t0d0s1   61,65      8 1060280 1060280
# swap -s
total: 178388k bytes allocated + 35300k reserved = 213688k used, 5366712k available
# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c1t0d0s0       23G   3.3G    19G    15%    /
/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                   5.1G   940K   5.1G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
/usr/lib/libc/libc_hwcap1.so.1
                        23G   3.3G    19G    15%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
swap                   5.1G   3.9M   5.1G     1%    /tmp
swap                   5.1G    32K   5.1G     1%    /var/run
/dev/dsk/c1t0d0s7      9.9G    34M   9.7G     1%    /export/home
tank                    33G    25K    33G     1%    /tank
tank/oracle             33G    24K    33G     1%    /tank/oracle
/export/home/sudakov   9.9G    34M   9.7G     1%    /home/sudakov
# format c1t0d0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c1t0d0s0 is currently mounted on /. Please see umount(1M).
/dev/dsk/c1t0d0s1 is currently used by swap. Please see swap(1M).
/dev/dsk/c1t0d0s7 is currently mounted on /export/home. Please see umount(1M).


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
        fdisk      - run the fdisk program
        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> par


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: 4420 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      67 - 3113       23.34GB    (3047/0/0) 48950055
  1       swap    wu       1 -   66      517.72MB    (66/0/0)    1060290
  2     backup    wm       0 - 4419       33.86GB    (4420/0/0) 71007300
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7       home    wm    3114 - 4419       10.00GB    (1306/0/0) 20980890
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 unassigned    wm       0               0         (0/0/0)           0

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
        fdisk      - run the fdisk program
        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
# 
# 

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/
--- ifmail v.2.15dev5.4
 * Origin: AO "Svyaztransneft", SibPTUS (2:5020/400)
SEEN-BY: 236/100 450/1024 461/640 469/142 999 4625/8 5000/5000 5006/1 5007/1
SEEN-BY: 5010/70 5011/13 5012/46 5015/28 5019/40 5020/175 194 400 545 902 1922
SEEN-BY: 5020/2238 4441 5021/29 5025/3 5027/12 5030/1080 1957 5035/38 5036/1
SEEN-BY: 5045/7 5051/15 5054/1 4 8 9 28 37 5060/88 5061/15 120 5062/10 5064/7
SEEN-BY: 5066/18 5075/5 5080/68 5085/13 5093/57 5095/20 5096/18 6001/10 6009/1
PATH: 5020/400 545 5054/1 37