solaris新增软分区
*版权所有,学习使用,谢绝商用。*
solaris新增软分区
1.查看磁盘信息
##分别查看c1t2d3,c1t2d4,c1t2d5这三块LUN的分区信息: root@localhost # format Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t2d1 <HP-MSAVOLUME-6.86 cyl 83 alt 2 hd 20 sec 113>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,1
2. c1t2d2 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,2
3. c1t2d3 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,3
4. c1t2d4 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,4
5. c1t2d5 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,5
6. c1t2d6 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,6
7. c1t2d7 <HP-MSAVOLUME-6.86 cyl 37149 alt 2 hd 20 sec 254>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,7
Specify disk (enter its number): 3
selecting c1t2d3
[disk formatted]
/dev/dsk/c1t2d3s0 is part of SVM volume stripe:sybase/d1000. Please see metaclear(1M).
/dev/dsk/c1t2d3s7 contains an SVM mdb. Please see metadb(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
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: 65533 + 2 (reserved cylinders)
Part TagFlag Cylinders SizeBlocks
0usrwm 2 - 65532 199.98GB(65531/0/0) 419398400
1 unassignedwm 00 (0/0/0) 0
2 unassignedwm 00 (0/0/0) 0
3 unassignedwm 00 (0/0/0) 0
4 unassignedwm 00 (0/0/0) 0
5 unassignedwm 00 (0/0/0) 0
6 unassignedwm 00 (0/0/0) 0
7usrwu 0 - 16.25MB(2/0/0) 12800
partition> quit
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> disk
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t2d1 <HP-MSAVOLUME-6.86 cyl 83 alt 2 hd 20 sec 113>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,1
2. c1t2d2 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,2
3. c1t2d3 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,3
4. c1t2d4 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,4
5. c1t2d5 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,5
6. c1t2d6 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,6
7. c1t2d7 <HP-MSAVOLUME-6.86 cyl 37149 alt 2 hd 20 sec 254>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,7
Specify disk (enter its number)[3]: 4
selecting c1t2d4
[disk formatted]
/dev/dsk/c1t2d4s0 is part of SVM volume stripe:sybase/d1000. Please see metaclear(1M).
/dev/dsk/c1t2d4s7 contains an SVM mdb. Please see metadb(1M).
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: 65533 + 2 (reserved cylinders)
Part TagFlag Cylinders SizeBlocks
0usrwm 2 - 65532 199.98GB(65531/0/0) 419398400
1 unassignedwm 00 (0/0/0) 0
2 unassignedwm 00 (0/0/0) 0
3 unassignedwm 00 (0/0/0) 0
4 unassignedwm 00 (0/0/0) 0
5 unassignedwm 00 (0/0/0) 0
6 unassignedwm 00 (0/0/0) 0
7usrwu 0 - 16.25MB(2/0/0) 12800
partition> quit
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> disk
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273>
/pci@0/pci@0/pci@2/scsi@0/sd@0,0
1. c1t2d1 <HP-MSAVOLUME-6.86 cyl 83 alt 2 hd 20 sec 113>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,1
2. c1t2d2 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,2
3. c1t2d3 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,3
4. c1t2d4 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,4
5. c1t2d5 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,5
6. c1t2d6 <HP-MSAVOLUME-6.86 cyl 65533 alt 2 hd 20 sec 320>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,6
7. c1t2d7 <HP-MSAVOLUME-6.86 cyl 37149 alt 2 hd 20 sec 254>
/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500508b30093c0c9,7
Specify disk (enter its number)[4]: 5
selecting c1t2d5
[disk formatted]
/dev/dsk/c1t2d5s0 is part of SVM volume stripe:sybase/d1000. Please see metaclear(1M).
/dev/dsk/c1t2d5s7 contains an SVM mdb. Please see metadb(1M).
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: 65533 + 2 (reserved cylinders)
Part TagFlag Cylinders SizeBlocks
0usrwm 2 - 65532 199.98GB(65531/0/0) 419398400
1 unassignedwm 00 (0/0/0) 0
2 unassignedwm 00 (0/0/0) 0
3 unassignedwm 00 (0/0/0) 0
4 unassignedwm 00 (0/0/0) 0
5 unassignedwm 00 (0/0/0) 0
6 unassignedwm 00 (0/0/0) 0
7usrwu 0 - 16.25MB(2/0/0) 12800
partition> quit
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> quit
root@localhost #
可以看到 c1t2d3s0、c1t2d4s0、C1t2d5s0这三个硬盘每个大小为199.98G。
查看磁盘组(metaset)sybase上原有软分区信息
root@localhost # metastat -s sybase -p
sybase/d205 -p /dev/md/sybase/rdsk/d1000 -o 436208416 -b 4194304
sybase/d1000 3 1 c1t2d3s0 \
1 c1t2d4s0 \
1 c1t2d5s0
sybase/d119 -p /dev/md/sybase/rdsk/d1000 -o 377487968 -b 20971520
sybase/d105 -p /dev/md/sybase/rdsk/d1000 -o 83886240 -b 20971520
sybase/d220 -p /dev/md/sybase/rdsk/d1000 -o 499123456 -b 4194304
sybase/d219 -p /dev/md/sybase/rdsk/d1000 -o 494929120 -b 4194304
sybase/d218 -p /dev/md/sybase/rdsk/d1000 -o 490734784 -b 4194304
sybase/d217 -p /dev/md/sybase/rdsk/d1000 -o 486540448 -b 4194304
sybase/d216 -p /dev/md/sybase/rdsk/d1000 -o 482346112 -b 4194304
sybase/d215 -p /dev/md/sybase/rdsk/d1000 -o 478151776 -b 4194304
sybase/d214 -p /dev/md/sybase/rdsk/d1000 -o 473957440 -b 4194304
sybase/d213 -p /dev/md/sybase/rdsk/d1000 -o 469763104 -b 4194304
sybase/d212 -p /dev/md/sybase/rdsk/d1000 -o 465568768 -b 4194304
sybase/d211 -p /dev/md/sybase/rdsk/d1000 -o 461374432 -b 4194304
sybase/d210 -p /dev/md/sybase/rdsk/d1000 -o 457180096 -b 4194304
sybase/d209 -p /dev/md/sybase/rdsk/d1000 -o 452985760 -b 4194304
sybase/d208 -p /dev/md/sybase/rdsk/d1000 -o 448791424 -b 4194304
sybase/d207 -p /dev/md/sybase/rdsk/d1000 -o 444597088 -b 4194304
sybase/d206 -p /dev/md/sybase/rdsk/d1000 -o 440402752 -b 4194304
sybase/d204 -p /dev/md/sybase/rdsk/d1000 -o 432014080 -b 4194304
sybase/d203 -p /dev/md/sybase/rdsk/d1000 -o 427819744 -b 4194304
sybase/d202 -p /dev/md/sybase/rdsk/d1000 -o 423625408 -b 4194304
sybase/d201 -p /dev/md/sybase/rdsk/d1000 -o 419431072 -b 4194304
sybase/d120 -p /dev/md/sybase/rdsk/d1000 -o 398459520 -b 20971520
sybase/d118 -p /dev/md/sybase/rdsk/d1000 -o 356516416 -b 20971520
sybase/d117 -p /dev/md/sybase/rdsk/d1000 -o 335544864 -b 20971520
sybase/d116 -p /dev/md/sybase/rdsk/d1000 -o 314573312 -b 20971520
sybase/d115 -p /dev/md/sybase/rdsk/d1000 -o 293601760 -b 20971520
sybase/d114 -p /dev/md/sybase/rdsk/d1000 -o 272630208 -b 20971520
sybase/d113 -p /dev/md/sybase/rdsk/d1000 -o 251658656 -b 20971520
sybase/d112 -p /dev/md/sybase/rdsk/d1000 -o 230687104 -b 20971520
sybase/d111 -p /dev/md/sybase/rdsk/d1000 -o 209715552 -b 20971520
sybase/d110 -p /dev/md/sybase/rdsk/d1000 -o 188744000 -b 20971520
sybase/d109 -p /dev/md/sybase/rdsk/d1000 -o 167772448 -b 20971520
sybase/d108 -p /dev/md/sybase/rdsk/d1000 -o 146800896 -b 20971520
sybase/d107 -p /dev/md/sybase/rdsk/d1000 -o 125829344 -b 20971520
sybase/d106 -p /dev/md/sybase/rdsk/d1000 -o 104857792 -b 20971520
sybase/d104 -p /dev/md/sybase/rdsk/d1000 -o 62914688 -b 20971520
sybase/d103 -p /dev/md/sybase/rdsk/d1000 -o 41943136 -b 20971520
sybase/d102 -p /dev/md/sybase/rdsk/d1000 -o 20971584 -b 20971520
sybase/d101 -p /dev/md/sybase/rdsk/d1000 -o 32 -b 20971520
root@localhost # metastat -s sybase
sybase/d205: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0436208416 4194304
sybase/d1000: Concat/Stripe
Size: 1258195200 blocks (599 GB)
Stripe 0:
Device Start Block DbaseState Reloc Hot Spare
c1t2d3s0 0 NoOkay Yes
Stripe 1:
Device Start Block DbaseState Reloc Hot Spare
c1t2d4s0 0 NoOkay Yes
Stripe 2:
Device Start Block DbaseState Reloc Hot Spare
c1t2d5s0 0 NoOkay Yes
sybase/d119: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0377487968 20971520
sybase/d105: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 83886240 20971520
sybase/d220: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0499123456 4194304
sybase/d219: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0494929120 4194304
sybase/d218: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0490734784 4194304
sybase/d217: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0486540448 4194304
sybase/d216: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0482346112 4194304
sybase/d215: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0478151776 4194304
sybase/d214: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0473957440 4194304
sybase/d213: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0469763104 4194304
sybase/d212: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0465568768 4194304
sybase/d211: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0461374432 4194304
sybase/d210: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0457180096 4194304
sybase/d209: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0452985760 4194304
sybase/d208: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0448791424 4194304
sybase/d207: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0444597088 4194304
sybase/d206: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0440402752 4194304
sybase/d204: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0432014080 4194304
sybase/d203: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0427819744 4194304
sybase/d202: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0423625408 4194304
sybase/d201: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0419431072 4194304
sybase/d120: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0398459520 20971520
sybase/d118: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0356516416 20971520
sybase/d117: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0335544864 20971520
sybase/d116: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0314573312 20971520
sybase/d115: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0293601760 20971520
sybase/d114: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0272630208 20971520
sybase/d113: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0251658656 20971520
sybase/d112: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0230687104 20971520
sybase/d111: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0209715552 20971520
sybase/d110: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0188744000 20971520
sybase/d109: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0167772448 20971520
sybase/d108: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0146800896 20971520
sybase/d107: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0125829344 20971520
sybase/d106: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0104857792 20971520
sybase/d104: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 62914688 20971520
sybase/d103: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 41943136 20971520
sybase/d102: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 20971584 20971520
sybase/d101: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 32 20971520
Device Relocation Information:
Device Reloc Device ID
c1t2d3 Yesid1,ssd@n600508b30093c0c0b65ac0bd0d9e0003
c1t2d4 Yesid1,ssd@n600508b30093c0c07e1fead1d63e0004
c1t2d5 Yesid1,ssd@n600508b30093c0c0b585fbe7e5ff0005
查看原有的软分区大小
root@localhost # metastat -s sybase |egrep "Stripe|Soft Partition|Size"
sybase/d205: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d1000: Concat/Stripe
Size: 1258195200 blocks (599 GB)
Stripe 0:
Stripe 1:
Stripe 2:
sybase/d119: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d105: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d220: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d219: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d218: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d217: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d216: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d215: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d214: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d213: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d212: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d211: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d210: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d209: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d208: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d207: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d206: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d204: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d203: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d202: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d201: Soft Partition
Size: 4194304 blocks (2.0 GB)
sybase/d120: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d118: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d117: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d116: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d115: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d114: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d113: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d112: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d111: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d110: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d109: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d108: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d107: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d106: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d104: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d103: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d102: Soft Partition
Size: 20971520 blocks (10 GB)
sybase/d101: Soft Partition
Size: 20971520 blocks (10 GB)
可以看到d1000这个片为599G,由c1t2d3s0,c1t2d4s0,C1t2d5s0这三块硬盘(每个199.98G)组成。 其中: d101-d120共20个软分区,每个为10G d201-d220共20个软分区,每个为2G 则共使用了:10G20+2G20=240G 剩余空间为:599G-240G=359G
新增软分区
现在d1000上新增9个10G的软分区,7个2G的软分区: 9个10G的软分区名为d121-d129 7个2G的软分区名为d221-d229
使用如下命令新增软分区: metainit sybase/d121 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d122 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d123 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d124 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d125 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d126 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d127 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d128 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d129 -p /dev/md/sybase/rdsk/d1000 10G metainit sybase/d221 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d222 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d223 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d224 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d225 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d226 -p /dev/md/sybase/rdsk/d1000 2G metainit sybase/d227 -p /dev/md/sybase/rdsk/d1000 2G
root@localhost # metainit sybase/d121 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d121: Soft Partition is setup
root@localhost # metainit sybase/d122 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d122: Soft Partition is setup
root@localhost # metainit sybase/d123 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d123: Soft Partition is setup
root@localhost # metainit sybase/d124 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d124: Soft Partition is setup
root@localhost # metainit sybase/d125 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d125: Soft Partition is setup
root@localhost # metainit sybase/d126 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d126: Soft Partition is setup
root@localhost # metainit sybase/d127 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d127: Soft Partition is setup
root@localhost # metainit sybase/d128 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d128: Soft Partition is setup
root@localhost # metainit sybase/d129 -p /dev/md/sybase/rdsk/d1000 10G
sybase/d129: Soft Partition is setup
root@localhost # metainit sybase/d221 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d221: Soft Partition is setup
root@localhost # metainit sybase/d222 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d222: Soft Partition is setup
root@localhost # metainit sybase/d223 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d223: Soft Partition is setup
root@localhost # metainit sybase/d224 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d224: Soft Partition is setup
root@localhost # metainit sybase/d225 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d225: Soft Partition is setup
root@localhost # metainit sybase/d226 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d226: Soft Partition is setup
root@localhost # metainit sybase/d227 -p /dev/md/sybase/rdsk/d1000 2G
sybase/d227: Soft Partition is setup
root@localhost #
查看裸设备路径
root@localhost # ls /dev/md/sybase/rdsk/d12*
/dev/md/sybase/rdsk/d120 /dev/md/sybase/rdsk/d124 /dev/md/sybase/rdsk/d128
/dev/md/sybase/rdsk/d121 /dev/md/sybase/rdsk/d125 /dev/md/sybase/rdsk/d129
/dev/md/sybase/rdsk/d122 /dev/md/sybase/rdsk/d126
/dev/md/sybase/rdsk/d123 /dev/md/sybase/rdsk/d127
root@localhost # ls /dev/md/sybase/rdsk/d22*
/dev/md/sybase/rdsk/d220 /dev/md/sybase/rdsk/d223 /dev/md/sybase/rdsk/d226
/dev/md/sybase/rdsk/d221 /dev/md/sybase/rdsk/d224 /dev/md/sybase/rdsk/d227
/dev/md/sybase/rdsk/d222 /dev/md/sybase/rdsk/d225
可以看到新增的16个裸设备已经生成(d120,d220是原有的) ## 查看现有软分区情况 ## root@localhost # metastat -s sybase sybase/d227: Soft Partition Device: sybase/d1000 State: Okay Size: 4194304 blocks (2.0 GB) Extent Start Block Block count 0717227776 4194304
sybase/d1000: Concat/Stripe
Size: 1258195200 blocks (599 GB)
Stripe 0:
Device Start Block DbaseState Reloc Hot Spare
c1t2d3s0 0 NoOkay Yes
Stripe 1:
Device Start Block DbaseState Reloc Hot Spare
c1t2d4s0 0 NoOkay Yes
Stripe 2:
Device Start Block DbaseState Reloc Hot Spare
c1t2d5s0 0 NoOkay Yes
sybase/d226: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0713033440 4194304
sybase/d225: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0708839104 4194304
sybase/d224: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0704644768 4194304
sybase/d223: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0700450432 4194304
sybase/d222: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0696256096 4194304
sybase/d221: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0692061760 4194304
sybase/d129: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0671090208 20971520
sybase/d128: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0650118656 20971520
sybase/d127: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0629147104 20971520
sybase/d126: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0608175552 20971520
sybase/d125: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0587204000 20971520
sybase/d124: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0566232448 20971520
sybase/d123: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0545260896 20971520
sybase/d122: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0524289344 20971520
sybase/d121: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0503317792 20971520
sybase/d205: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0436208416 4194304
sybase/d119: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0377487968 20971520
sybase/d105: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 83886240 20971520
sybase/d220: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0499123456 4194304
sybase/d219: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0494929120 4194304
sybase/d218: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0490734784 4194304
sybase/d217: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0486540448 4194304
sybase/d216: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0482346112 4194304
sybase/d215: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0478151776 4194304
sybase/d214: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0473957440 4194304
sybase/d213: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0469763104 4194304
sybase/d212: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0465568768 4194304
sybase/d211: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0461374432 4194304
sybase/d210: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0457180096 4194304
sybase/d209: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0452985760 4194304
sybase/d208: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0448791424 4194304
sybase/d207: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0444597088 4194304
sybase/d206: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0440402752 4194304
sybase/d204: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0432014080 4194304
sybase/d203: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0427819744 4194304
sybase/d202: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0423625408 4194304
sybase/d201: Soft Partition
Device: sybase/d1000
State: Okay
Size: 4194304 blocks (2.0 GB)
Extent Start Block Block count
0419431072 4194304
sybase/d120: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0398459520 20971520
sybase/d118: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0356516416 20971520
sybase/d117: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0335544864 20971520
sybase/d116: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0314573312 20971520
sybase/d115: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0293601760 20971520
sybase/d114: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0272630208 20971520
sybase/d113: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0251658656 20971520
sybase/d112: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0230687104 20971520
sybase/d111: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0209715552 20971520
sybase/d110: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0188744000 20971520
sybase/d109: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0167772448 20971520
sybase/d108: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0146800896 20971520
sybase/d107: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0125829344 20971520
sybase/d106: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0104857792 20971520
sybase/d104: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 62914688 20971520
sybase/d103: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 41943136 20971520
sybase/d102: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 20971584 20971520
sybase/d101: Soft Partition
Device: sybase/d1000
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 32 20971520
Device Relocation Information:
Device Reloc Device ID
c1t2d3 Yesid1,ssd@n600508b30093c0c0b65ac0bd0d9e0003
c1t2d4 Yesid1,ssd@n600508b30093c0c07e1fead1d63e0004
c1t2d5 Yesid1,ssd@n600508b30093c0c0b585fbe7e5ff0005
root@localhost #
blog comments powered by Disqus