
XSCF> showdevices |
|
| |||
CPU: |
|
|
|
|
|
|
|
|
|
| |
DID | XSB | id | state | speed | ecache |
00 | 40 | 2048 | 4 | ||
00 | 41 | 2048 | 4 | ||
00 | 40 | 2048 | 4 | ||
00 | 41 | 2048 | 4 |
Memory: |
|
|
|
|
|
|
| |
|
|
|
|
|
|
| ||
|
| board | perm | base | domain | target | deleted | remaining |
DID | XSB | mem MB | mem MB | address | mem MB | XSB | mem MB | mem MB |
00 | 2048 | 0 | 0x0000000000000000 | 4096 |
|
|
|
IO Devices: |
|
|
| |
|
|
| ||
DID | XSB | device | resource | usage |
00 | sd0 | /dev/dsk/c0t0d0s1 | swap area |
Notice in the Memory section that 2048 MB (2GB) of physical memory is on this board. And in the I/O Devices section the /dev/dsk/c0t3d0s1 disk contains a configured swap space.
2. On the domain execute the swap(1M) command with its
# swap |
|
|
|
|
swapfile | dev | swaplo | blocks | free |
/dev/dsk/c0t3d0s1 | 118,1 | 16 | 2097152 | 2097152 |
/dev/dsk/c1t1d0s1 | 118,2 | 16 | 6291456 | 4109712 |
|
|
|
|
|
Notice that /dev/dsk/c0t3d0s1, the disk to be deleted, contributes 2097152 blocks. Each block is 512 bytes, so this disk contributes 1GB of swap space. Moreover, the domain has additional swap space available from /dev/dsk/c1t1d0s1, a disk connected to another system board, which contributes 6291456 blocks (3GB). Thus, the total available swap space is 4GB.
3. Execute the swap(1M) command with its
This amount could have been determined in the previous step, but you can use the following command to get a brief summary of the details.
#swap
total: 40096k bytes allocated + 2200k reserved = 42296k used, 4152008k available
Notice that most of the 4GB of total swap space is available. When the system board is deleted, 1GB of total swap space will be removed, and the remaining available swap space will be nearly 3GB. Therefore, there is enough remaining swap space to allow this system board to be deleted.