Sun的机器安装完Solaris SPARK系统后一般需要用SVM(Solaris Volume Manager)来做Mirror,但是安装机器的时候没有预留几十M的空间给Meta DB,就没有办法作Mirror,这个时候可以从Swap分区(其他分区不可以)偷一些空间给slot7,这样就可以继续进行Mirror了

(root_LocalHost)@/export/home/root # swap -d /dev/dsk/c1t0d0s1
/dev/dsk/c1t0d0s1 was dump device --
invoking dumpadm(1M) -d swap to select new dump device
dumpadm: no swap devices are available
(root_LocalHost)@/export/home/root # swap -l
No swap devices configured
  
comment swap in /etc/vfstab  11:03:30 AM
#/dev/dsk/c1t0d0s1 - - swap - no  11:03:54 AM

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

Part Tag Flag Cylinders Size Blocks
0 root wm 2061 - 4801 26.60GB (2741/0/0) 55784832
1 swap wu 0 - 2060 20.00GB (2061/0/0) 41945472
2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
3 var wm 4802 - 6862 20.00GB (2061/0/0) 41945472
4 unassigned wm 6863 - 9954 30.01GB (3092/0/0) 62928384
5 home wm 9955 - 12015 20.00GB (2061/0/0) 41945472
6 unassigned wm 12016 - 14076 20.00GB (2061/0/0) 41945472
7 unassigned wm 0 0 (0/0/0) 0

partition> 1
Part Tag Flag Cylinders Size Blocks
1 swap wu 0 - 2060 20.00GB (2061/0/0) 41945472

Enter partition id tag[swap]:
Enter partition permission flags[wu]:
Enter new starting cyl[0]:
Enter partition size[41945472b, 2061c, 2060e, 20481.19mb, 20.00gb]: 2057e(Reduce Cyl)
partition> 7
Part Tag Flag Cylinders Size Blocks
7 unassigned wm 0 0 (0/0/0) 0

Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 2058 (extend cyl)
Enter partition size[0b, 0c, 2058e, 0.00mb, 0.00gb]: 2060e
partition> print
Current partition table (unnamed):
Total disk cylinders available: 14087 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 root wm 2061 - 4801 26.60GB (2741/0/0) 55784832
1 swap wu 0 - 2057 19.97GB (2058/0/0) 41884416
2 backup wm 0 - 14086 136.71GB (14087/0/0) 286698624
3 var wm 4802 - 6862 20.00GB (2061/0/0) 41945472
4 unassigned wm 6863 - 9954 30.01GB (3092/0/0) 62928384
5 home wm 9955 - 12015 20.00GB (2061/0/0) 41945472
6 unassigned wm 12016 - 14076 20.00GB (2061/0/0) 41945472
7 unassigned wm 2058 - 2060 29.81MB (3/0/0) 61056

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> label
Ready to label disk, continue? yes

format> q