- 论坛徽章:
- 0
|
给你个例子参考
SUN E3500下恢复使用SDS做的Soft Partition实例
1.用format查看系统硬盘状态:
CODE:
[Copy to clipboard]
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be33a,0
1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bd77b,0
2. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be2fb,0
3. c0t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bd25a,0
4. c2t4d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bce5a,0
5. c2t5d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be392,0
6. c2t6d0 <driver type unknown>;
/sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037843b72,0
7. c2t7d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;
/sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bccfd,0
Specify disk (enter its number):
2.使用metadb查看db库状态:
CODE:
[Copy to clipboard]
# metadb
flags first blk block count
a m p luo 16 1034 /dev/dsk/c0t0d0s7
a p luo 16 1034 /dev/dsk/c0t1d0s7
a p luo 16 1034 /dev/dsk/c0t2d0s7
a p luo 16 1034 /dev/dsk/c0t3d0s7
a p luo 16 1034 /dev/dsk/c2t4d0s7
a p luo 16 1034 /dev/dsk/c2t5d0s7
a p luo unknown unknown /dev/dsk/c2t6d0s7
a p luo 16 1034 /dev/dsk/c2t7d0s7
3.使用metastat查看系统使用SDS镜像情况:
CODE:
[Copy to clipboard]
d20: Mirror
Submirror 0: d100
State: Okay
Submirror 1: d101
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 20480121 blocks
d100: Submirror of d20
State: Okay
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t0d0s0 0 No Okay
d101: Submirror of d20
State: Okay
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t4d0s0 0 No Okay
d21: Mirror
Submirror 0: d102
State: Okay
Submirror 1: d103
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 7577847 blocks
d102: Submirror of d21
State: Okay
Size: 7577847 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t0d0s1 0 No Okay
d103: Submirror of d21
State: Okay
Size: 7577847 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t4d0s1 0 No Okay
d22: Mirror
Submirror 0: d104
State: Okay
Submirror 1: d105
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 20480121 blocks
d104: Submirror of d22
State: Okay
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d150 0 No Okay
d150: Soft Partition
Component: c0t0d0s3
State: Okay
Size: 20480121 blocks
Extent Start Block Block count
0 1 20480121
d105: Submirror of d22
State: Okay
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d151 0 No Okay
d151: Soft Partition
Component: c2t4d0s3
State: Okay
Size: 20480121 blocks
Extent Start Block Block count
0 1 20480121
d23: Mirror
Submirror 0: d106
State: Okay
Submirror 1: d107
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16386408 blocks
d106: Submirror of d23
State: Okay
Size: 16386408 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d152 0 No Okay
d152: Soft Partition
Component: c0t0d0s3
State: Okay
Size: 16386408 blocks
Extent Start Block Block count
0 20480123 16386408
d107: Submirror of d23
State: Okay
Size: 16386408 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d153 0 No Okay
d153: Soft Partition
Component: c2t4d0s3
State: Okay
Size: 16386408 blocks
Extent Start Block Block count
0 20480123 16386408
d26: Mirror
Submirror 0: d112
State: Okay
Submirror 1: d113
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 7988085 blocks
d112: Submirror of d26
State: Okay
Size: 7988085 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c0t1d0s1 0 No Okay
d113: Submirror of d26
State: Okay
Size: 7988085 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
c2t5d0s1 0 No Okay
d27: Mirror
Submirror 0: d114
State: Okay
Submirror 1: d115
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 14338107 blocks
d114: Submirror of d27
State: Okay
Size: 14338107 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d154 0 No Okay
d154: Soft Partition
Component: c0t2d0s3
State: Okay
Size: 14338107 blocks
Extent Start Block Block count
0 2890 14338107
d115: Submirror of d27
State: Needs maintenance
Invoke: metareplace d27 d155 <new device>;
Size: 14338107 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d155 0 No Maintenance
d155: Soft Partition
Component: c2t6d0s3
State: Errored
Size: 14338107 blocks
Extent Start Block Block count
0 2890 14338107
d29: Mirror
Submirror 0: d118
State: Okay
Submirror 1: d119
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 12289806 blocks
d118: Submirror of d29
State: Okay
Size: 12289806 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d156 0 No Okay
d156: Soft Partition
Component: c0t3d0s3
State: Okay
Size: 12289806 blocks
Extent Start Block Block count
0 2890 12289806
d119: Submirror of d29
State: Okay
Size: 12289806 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d157 0 No Okay
d157: Soft Partition
Component: c2t7d0s3
State: Okay
Size: 12289806 blocks
Extent Start Block Block count
0 2890 12289806
d30: Mirror
Submirror 0: d120
State: Okay
Submirror 1: d121
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 28673325 blocks
d120: Submirror of d30
State: Okay
Size: 28673325 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d158 0 No Okay
d158: Soft Partition
Component: c0t3d0s3
State: Okay
Size: 28673325 blocks
Extent Start Block Block count
0 12292697 28673325
d121: Submirror of d30
State: Okay
Size: 28673325 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d159 0 No Okay
d159: Soft Partition
Component: c2t7d0s3
State: Okay
Size: 28673325 blocks
Extent Start Block Block count
0 12292697 28673325
d31: Mirror
Submirror 0: d122
State: Okay
Submirror 1: d123
State: Needs maintenance
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 20480121 blocks
d122: Submirror of d31
State: Okay
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d160 0 No Okay
d160: Soft Partition
Component: c0t2d0s3
State: Okay
Size: 20480121 blocks
Extent Start Block Block count
0 14340998 20480121
d123: Submirror of d31
State: Needs maintenance
Invoke: metareplace d31 d161 <new device>;
Size: 20480121 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d161 0 No Maintenance
d161: Soft Partition
Component: c2t6d0s3
State: Okay
Size: 20480121 blocks
Extent Start Block Block count
0 14340998 20480121
d50: Mirror
Submirror 0: d200
State: Okay
Submirror 1: d201
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4194828 blocks
d200: Submirror of d50
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d162 0 No Okay
d162: Soft Partition
Component: c0t1d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 1 4194828
d201: Submirror of d50
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d163 0 No Okay
d163: Soft Partition
Component: c2t5d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 1 4194828
d51: Mirror
Submirror 0: d202
State: Okay
Submirror 1: d203
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4194828 blocks
d202: Submirror of d51
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d164 0 No Okay
d164: Soft Partition
Component: c0t1d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 4194830 4194828
d203: Submirror of d51
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d165 0 No Okay
d165: Soft Partition
Component: c2t5d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 4194830 4194828
d52: Mirror
Submirror 0: d204
State: Okay
Submirror 1: d205
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4194828 blocks
d204: Submirror of d52
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d166 0 No Okay
d166: Soft Partition
Component: c0t1d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 8389659 4194828
d205: Submirror of d52
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d167 0 No Okay
d167: Soft Partition
Component: c2t5d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 8389659 4194828
d53: Mirror
Submirror 0: d206
State: Okay
Submirror 1: d207
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 4194828 blocks
d206: Submirror of d53
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d168 0 No Okay
d168: Soft Partition
Component: c0t1d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 12584488 4194828
d207: Submirror of d53
State: Okay
Size: 4194828 blocks
Stripe 0:
Device Start Block Dbase State Hot Spare
d169 0 No Okay
d169: Soft Partition
Component: c2t5d0s3
State: Okay
Size: 4194828 blocks
Extent Start Block Block count
0 12584488 4194828 |
|