- 论坛徽章:
- 0
|
给你个例子参考\r\nSUN E3500下恢复使用SDS做的Soft Partition实例\r\n1.用format查看系统硬盘状态:\r\nCODE:\r\n[Copy to clipboard]\r\n# format\r\nSearching for disks...done\r\nAVAILABLE DISK SELECTIONS:\r\n 0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be33a,0\r\n 1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bd77b,0\r\n 2. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be2fb,0\r\n 3. c0t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@3,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bd25a,0\r\n 4. c2t4d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bce5a,0\r\n 5. c2t5d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507be392,0\r\n 6. c2t6d0 <driver type unknown>;\r\n /sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037843b72,0\r\n 7. c2t7d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>;\r\n /sbus@a,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100000c507bccfd,0\r\nSpecify disk (enter its number):\r\n2.使用metadb查看db库状态:\r\nCODE:\r\n[Copy to clipboard]\r\n# metadb\r\n flags first blk block count\r\n a m p luo 16 1034 /dev/dsk/c0t0d0s7\r\n a p luo 16 1034 /dev/dsk/c0t1d0s7\r\n a p luo 16 1034 /dev/dsk/c0t2d0s7\r\n a p luo 16 1034 /dev/dsk/c0t3d0s7\r\n a p luo 16 1034 /dev/dsk/c2t4d0s7\r\n a p luo 16 1034 /dev/dsk/c2t5d0s7\r\n a p luo unknown unknown /dev/dsk/c2t6d0s7\r\n a p luo 16 1034 /dev/dsk/c2t7d0s7\r\n3.使用metastat查看系统使用SDS镜像情况:\r\nCODE:\r\n[Copy to clipboard]\r\nd20: Mirror\r\n Submirror 0: d100\r\n State: Okay \r\n Submirror 1: d101\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 20480121 blocks\r\n\r\nd100: Submirror of d20\r\n State: Okay \r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c0t0d0s0 0 No Okay \r\nd101: Submirror of d20\r\n State: Okay \r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c2t4d0s0 0 No Okay \r\n\r\nd21: Mirror\r\n Submirror 0: d102\r\n State: Okay \r\n Submirror 1: d103\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 7577847 blocks\r\n\r\nd102: Submirror of d21\r\n State: Okay \r\n Size: 7577847 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c0t0d0s1 0 No Okay \r\n\r\n\r\nd103: Submirror of d21\r\n State: Okay \r\n Size: 7577847 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c2t4d0s1 0 No Okay \r\n\r\nd22: Mirror\r\n Submirror 0: d104\r\n State: Okay \r\n Submirror 1: d105\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 20480121 blocks\r\n\r\nd104: Submirror of d22\r\n State: Okay \r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d150 0 No Okay \r\n\r\nd150: Soft Partition\r\n Component: c0t0d0s3\r\n State: Okay\r\n Size: 20480121 blocks\r\n Extent Start Block Block count\r\n 0 1 20480121\r\n\r\nd105: Submirror of d22\r\n State: Okay \r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d151 0 No Okay \r\n\r\nd151: Soft Partition\r\n Component: c2t4d0s3\r\n State: Okay\r\n Size: 20480121 blocks\r\n Extent Start Block Block count\r\n 0 1 20480121\r\n\r\nd23: Mirror\r\n Submirror 0: d106\r\n State: Okay \r\n Submirror 1: d107\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 16386408 blocks\r\n\r\nd106: Submirror of d23\r\n State: Okay \r\n Size: 16386408 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d152 0 No Okay \r\n\r\nd152: Soft Partition\r\n Component: c0t0d0s3\r\n State: Okay\r\n Size: 16386408 blocks\r\n Extent Start Block Block count\r\n 0 20480123 16386408\r\n\r\nd107: Submirror of d23\r\n State: Okay \r\n Size: 16386408 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d153 0 No Okay \r\n\r\nd153: Soft Partition\r\n Component: c2t4d0s3\r\n State: Okay\r\n Size: 16386408 blocks\r\n Extent Start Block Block count\r\n 0 20480123 16386408\r\n\r\nd26: Mirror\r\n Submirror 0: d112\r\n State: Okay \r\n Submirror 1: d113\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 7988085 blocks\r\n\r\nd112: Submirror of d26\r\n State: Okay \r\n Size: 7988085 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c0t1d0s1 0 No Okay \r\n\r\nd113: Submirror of d26\r\n State: Okay \r\n Size: 7988085 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n c2t5d0s1 0 No Okay \r\n\r\nd27: Mirror\r\n Submirror 0: d114\r\n State: Okay \r\n Submirror 1: d115\r\n State: Needs maintenance \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 14338107 blocks\r\n\r\nd114: Submirror of d27\r\n State: Okay \r\n Size: 14338107 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d154 0 No Okay \r\n\r\nd154: Soft Partition\r\n Component: c0t2d0s3\r\n State: Okay\r\n Size: 14338107 blocks\r\n Extent Start Block Block count\r\n 0 2890 14338107\r\n\r\nd115: Submirror of d27\r\n State: Needs maintenance \r\n Invoke: metareplace d27 d155 <new device>;\r\n Size: 14338107 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d155 0 No Maintenance \r\n\r\nd155: Soft Partition\r\n Component: c2t6d0s3\r\n State: Errored\r\n Size: 14338107 blocks\r\n Extent Start Block Block count\r\n 0 2890 14338107\r\n\r\nd29: Mirror\r\n Submirror 0: d118\r\n State: Okay \r\n Submirror 1: d119\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 12289806 blocks\r\n\r\nd118: Submirror of d29\r\n State: Okay \r\n Size: 12289806 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d156 0 No Okay \r\n\r\nd156: Soft Partition\r\n Component: c0t3d0s3\r\n State: Okay\r\n Size: 12289806 blocks\r\n Extent Start Block Block count\r\n 0 2890 12289806\r\n\r\nd119: Submirror of d29\r\n State: Okay \r\n Size: 12289806 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d157 0 No Okay \r\n\r\nd157: Soft Partition\r\n Component: c2t7d0s3\r\n State: Okay\r\n Size: 12289806 blocks\r\n Extent Start Block Block count\r\n 0 2890 12289806\r\n\r\nd30: Mirror\r\n Submirror 0: d120\r\n State: Okay \r\n Submirror 1: d121\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 28673325 blocks\r\n\r\nd120: Submirror of d30\r\n State: Okay \r\n Size: 28673325 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d158 0 No Okay \r\n\r\nd158: Soft Partition\r\n Component: c0t3d0s3\r\n State: Okay\r\n Size: 28673325 blocks\r\n Extent Start Block Block count\r\n 0 12292697 28673325\r\nd121: Submirror of d30\r\n State: Okay \r\n Size: 28673325 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d159 0 No Okay \r\n\r\nd159: Soft Partition\r\n Component: c2t7d0s3\r\n State: Okay\r\n Size: 28673325 blocks\r\n Extent Start Block Block count\r\n 0 12292697 28673325\r\n\r\nd31: Mirror\r\n Submirror 0: d122\r\n State: Okay \r\n Submirror 1: d123\r\n State: Needs maintenance \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 20480121 blocks\r\n\r\nd122: Submirror of d31\r\n State: Okay \r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d160 0 No Okay \r\n\r\nd160: Soft Partition\r\n Component: c0t2d0s3\r\n State: Okay\r\n Size: 20480121 blocks\r\n Extent Start Block Block count\r\n 0 14340998 20480121\r\n\r\nd123: Submirror of d31\r\n State: Needs maintenance \r\n Invoke: metareplace d31 d161 <new device>;\r\n Size: 20480121 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d161 0 No Maintenance \r\n\r\nd161: Soft Partition\r\n Component: c2t6d0s3\r\n State: Okay\r\n Size: 20480121 blocks\r\n Extent Start Block Block count\r\n 0 14340998 20480121\r\n\r\nd50: Mirror\r\n Submirror 0: d200\r\n State: Okay \r\n Submirror 1: d201\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 4194828 blocks\r\n\r\nd200: Submirror of d50\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d162 0 No Okay \r\n\r\nd162: Soft Partition\r\n Component: c0t1d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 1 4194828\r\n\r\nd201: Submirror of d50\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d163 0 No Okay \r\n\r\nd163: Soft Partition\r\n Component: c2t5d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 1 4194828\r\n\r\nd51: Mirror\r\n Submirror 0: d202\r\n State: Okay \r\n Submirror 1: d203\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 4194828 blocks\r\n\r\nd202: Submirror of d51\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d164 0 No Okay \r\n\r\nd164: Soft Partition\r\n Component: c0t1d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 4194830 4194828\r\n\r\nd203: Submirror of d51\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d165 0 No Okay \r\n\r\nd165: Soft Partition\r\n Component: c2t5d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 4194830 4194828\r\n\r\nd52: Mirror\r\n Submirror 0: d204\r\n State: Okay \r\n Submirror 1: d205\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 4194828 blocks\r\n\r\nd204: Submirror of d52\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d166 0 No Okay \r\n\r\nd166: Soft Partition\r\n Component: c0t1d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 8389659 4194828\r\n\r\nd205: Submirror of d52\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d167 0 No Okay \r\n\r\nd167: Soft Partition\r\n Component: c2t5d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 8389659 4194828\r\n\r\nd53: Mirror\r\n Submirror 0: d206\r\n State: Okay \r\n Submirror 1: d207\r\n State: Okay \r\n Pass: 1\r\n Read option: roundrobin (default)\r\n Write option: parallel (default)\r\n Size: 4194828 blocks\r\nd206: Submirror of d53\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d168 0 No Okay \r\n\r\nd168: Soft Partition\r\n Component: c0t1d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 12584488 4194828\r\n\r\nd207: Submirror of d53\r\n State: Okay \r\n Size: 4194828 blocks\r\n Stripe 0:\r\n Device Start Block Dbase State Hot Spare\r\n d169 0 No Okay \r\n\r\nd169: Soft Partition\r\n Component: c2t5d0s3\r\n State: Okay\r\n Size: 4194828 blocks\r\n Extent Start Block Block count\r\n 0 12584488 4194828 |
|