双机环境下的A5200在线更换硬盘(转)
更新:HHH   时间:2023-1-7


作者:东方蜘蛛 发表于:2007-07-03 18:25:37

[size=2]硬件环境:2xE3500+2xA5200
软件环境:Solaris 2.6+Sun Cluster2.2+vxvm3.0
[/size]

[size=2]一、故障硬盘更换前系统情况:[/size]

 # uname -a

SunOS fsmsdb1 5.6 Generic_105181-29 sun4u sparc SUNW,Ultra-Enterprise


查看cluster状态:
# hastat

Getting Information from all the nodes ......

HIGH AVAILABILITY CONFIGURATION AND STATUS

-------------------------------------------



LIST OF NODES CONFIGURED IN CLUSTER

fsmsdb1 fsmsdb2



CURRENT MEMBERS OF THE CLUSTER



fsmsdb1 is a cluster member



fsmsdb2 is a cluster member



CONFIGURATION STATE OF THE CLUSTER



Configuration State on fsmsdb1: Stable



Configuration State on fsmsdb2: Stable



UPTIME OF NODES IN THE CLUSTER



uptime of fsmsdb1: 3:29pm up 456 day(s), 13:03, 1 user, load average: 0.62, 0.67, 0.71



uptime of fsmsdb2: 3:28pm up 429 day(s), 22:22, 0 users, load average: 0.01, 0.02, 0.03



LOGICAL HOSTS MASTERED BY THE CLUSTER MEMBERS



Logical Hosts Mastered on fsmsdb1:

fsmsdb

Logical Hosts for which fsmsdb1 is Backup Node:

None



Logical Hosts Mastered on fsmsdb2:

None

Logical Hosts for which fsmsdb2 is Backup Node:

fsmsdb



LOGICAL HOSTS IN MAINTENANCE STATE



None



STATUS OF PRIVATE NETS IN THE CLUSTER



Status of Interconnects on fsmsdb1:

interconnect0: selected

interconnect1: up

Status of private nets on fsmsdb1:

To fsmsdb1 - UP

To fsmsdb2 - UP



Status of Interconnects on fsmsdb2:

interconnect0: selected

interconnect1: up

Status of private nets on fsmsdb2:

To fsmsdb1 - UP

To fsmsdb2 - UP



STATUS OF PUBLIC NETS IN THE CLUSTER



Status of Public Network On fsmsdb1:



bkggrp r_adp status fo_time live_adp

nafo0 hme1:hme3 OK NEVER hme1



Status of Public Network On fsmsdb2:



bkggrp r_adp status fo_time live_adp

nafo0 hme1:hme3 OK NEVER hme1



STATUS OF DATA SERVICES RUNNING IN THE CLUSTER



Status Of Registered Data Services

sybase: On

nfs: Off



Status Of Data Services Running On fsmsdb1

Data Service "sybase":

Database Status on fsmsdb1:

SYBASE_BAK - running;

smsserver - running;





Status Of Data Services Running On fsmsdb2

Data Service "sybase":

Not being managed on this system



RECENT ERROR MESSAGES FROM THE CLUSTER



Recent Error Messages on fsmsdb1



Jun 12 03:02:13 fsmsdb1 unix: NFS server backupserver ok

Jun 15 14:57:59 fsmsdb1 su: 'su root' failed for sybase on /dev/pts/0

Jun 15 14:58:08 fsmsdb1 last message repeated 1 time

Jun 26 02:00:10 fsmsdb1 unix: NFS server backupserver not responding still trying

Jun 26 03:23:39 fsmsdb1 unix: NFS server backupserver ok

Jun 29 11:57:08 fsmsdb1 explorer: Explorer started

Jun 29 12:03:42 fsmsdb1 explorer: Explorer finished



Recent Error Messages on fsmsdb2



Jun 29 12:25:19 fsmsdb2 unix: pseudo-device: lockstat0

Jun 29 12:25:19 fsmsdb2 unix: lockstat0 is /pseudo/lockstat@0

Jun 29 12:26:36 fsmsdb2 unix: WARNING: /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2200002037c85404,0 (ssd8):^M^M

Jun 29 12:26:36 fsmsdb2 unix: transport rejected (-2)^M^M

Jun 29 12:26:47 fsmsdb2 unix: Vendor 'SEAGATE', product 'ST318304FSUN18G', (unknown capacity)^M

Jun 29 12:28:36 fsmsdb2 last message repeated 8 times

Jun 29 12:29:12 fsmsdb2 explorer: Explorer finished


# format

Searching for disks...done





AVAILABLE DISK SELECTIONS:

0. c0t0d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c85404,0

1. c0t5d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d80498,0

2. c0t10d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d803f1,0

3. c0t16d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3b5a7,0

4. c0t19d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c89c7b,0

5. c0t26d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3bf4f,0

6. c2t0d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037e493db,0

7. c2t2d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d89d9a,0

8. c3t65d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037ba26b8,0

9. c3t69d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d84870,0

10. c3t74d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037c8546b,0

11. c3t80d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83bf4,0

12. c3t84d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d89c41,0

13. c3t86d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83b93,0

14. c3t90d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d8992a,0

Specify disk (enter its number): ^D


大家不要以为c0t0d0一定是本地磁盘哦,看仔细喽:mrgreen:

# iostat -En

c1t6d0 Soft Errors: 0 Hard Errors: 4 Transport Errors: 0

Vendor: TOSHIBA Product: DVD-ROM SD-M1401 Revision: 1007 Serial No: 06/22/00

RPM: 0 Heads: 0 Size: 18446744073.71GB <-8589934591 bytes>

Media Error: 0 Device Not Ready: 3 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c2t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0101L08R9T

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c2t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0108L0AG1B

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t10d0 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0050L07FTE

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t26d0 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 0726 Serial No: 0044L069NG

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t5d0 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0050L080EX

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t19d0 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 0726 Serial No: 0047L07HMS

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t16d0 Soft Errors: 0 Hard Errors: 1 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 0726 Serial No: 0044L062MP

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 1 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 34

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0046L06SNX

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t69d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0050L08BYB

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t84d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0101L08S00

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t90d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0101L08R9D

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t86d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0050L08ETM

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t80d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0050L08EEY

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t74d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 042D Serial No: 0046L06PDB

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

c3t65d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0

Vendor: SEAGATE Product: ST318304FSUN18G Revision: 0726 Serial No: 0131L0AQ60

RPM: 7200 Heads: 19 Size: 18.11GB <18110967808 bytes>

Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0

Illegal Request: 0 Predictive Failure Analysis: 0

rmt/0 Soft Errors: 578 Hard Errors: 20 Transport Errors: 0

Vendor: HP Product: C1537A Revision: L706 Serial No: 62


查看Quorum device磁盘情况,如果坏的磁盘刚好是Quorum device磁盘,需要先行重新指定一块新的Quorum device磁盘,而且需要在两台主机都执行!
# scconf fsms -p

Checking node status...

Current Configuration for Cluster fsms



Hosts in cluster:

fsmsdb1 fsmsdb2



Private Network Interfaces for

fsmsdb1: hme0 hme2

fsmsdb2: hme0 hme2



Quorum Device Information

Quorum device for hosts fsmsdb1 and fsmsdb2: 0046L06SNX //通过format和iostat命令可以看出坏的磁盘刚好是Quorum device磁盘



Logical Host Timeout Value :

Step10 :720

Step11 :720

Logical Host :180



Logical Host : fsmsdb



Node List : fsmsdb1 fsmsdb2

Disk Groups : fsmsdg

Logical Address : fsmsdb

Logical Interface : 1

Network Interface : hme1 (fsmsdb1) hme1 (fsmsdb2)



Automatic Switchover : no


# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - error

c0t5d0s2 sliced dm_c0t5d0 fsmsdg online

c0t10d0s2 sliced dm_c0t10d0 fsmsdg online

c0t16d0s2 sliced dm_c0t16d0 fsmsdg online

c0t19d0s2 sliced dm_c0t19d0 fsmsdg online

c0t26d0s2 sliced - - error

c2t0d0s2 sliced - - error

c2t0d0s7 simple c2t0d0s7 rootdg online

c2t2d0s2 sliced - - error

c3t65d0s2 sliced dm_c3t65d0 fsmsdg online

c3t69d0s2 sliced dm_c3t69d0 fsmsdg online

c3t74d0s2 sliced dm_c3t74d0 fsmsdg online

c3t80d0s2 sliced dm_c3t80d0 fsmsdg online

c3t84d0s2 sliced dm_c3t84d0 fsmsdg online

c3t86d0s2 sliced - - error

c3t90d0s2 sliced - - error

- - dm_c0t0d0 fsmsdg failed was:c0t0d0s2


 # vxprint -ht

Disk group: rootdg



DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE



dg rootdg default default 0 993346192.1026.fsmsdb1



dm c2t0d0s7 c2t0d0s7 simple 1024 74367 -



Disk group: fsmsdg



DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE



dg fsmsdg default default 51000 989998066.1084.fsmsdb1



dm dm_c0t0d0 - - - - NODEVICE

dm dm_c0t5d0 c0t5d0s2 sliced 4711 35363560 -

dm dm_c0t10d0 c0t10d0s2 sliced 4711 35363560 -

dm dm_c0t16d0 c0t16d0s2 sliced 4711 35363560 -

dm dm_c0t19d0 c0t19d0s2 sliced 4711 35363560 -

dm dm_c3t65d0 c3t65d0s2 sliced 4711 35363560 -

dm dm_c3t69d0 c3t69d0s2 sliced 4711 35363560 -

dm dm_c3t74d0 c3t74d0s2 sliced 4711 35363560 -

dm dm_c3t80d0 c3t80d0s2 sliced 4711 35363560 -

dm dm_c3t84d0 c3t84d0s2 sliced 4711 35363560 -



。。。

v lv_fsmsdb4 gen ENABLED ACTIVE 8388608 SELECT -

pl lv_fsmsdb4-01 lv_fsmsdb4 DISABLED NODEVICE 8392072 CONCAT - RW

sd dm_c0t0d0-06 lv_fsmsdb4-01 dm_c0t0d0 25694536 8392072 0 - RLOC

pl lv_fsmsdb4-02 lv_fsmsdb4 ENABLED ACTIVE 8392072 CONCAT - RW

sd dm_c0t10d0-05 lv_fsmsdb4-02 dm_c0t10d0 33568288 1795272 0 c0t10d0 ENA

sd dm_c0t16d0-05 lv_fsmsdb4-02 dm_c0t16d0 33568288 1795272 1795272 c0t16d0 ENA

sd dm_c3t69d0-05 lv_fsmsdb4-02 dm_c3t69d0 33568288 1795272 3590544 c3t69d0 ENA

sd dm_c0t5d0-07 lv_fsmsdb4-02 dm_c0t5d0 33883992 212040 5385816 c0t5d0 ENA

sd dm_c3t65d0-04 lv_fsmsdb4-02 dm_c3t65d0 16788856 1583232 5597856 c3t65d0 ENA

sd dm_c3t84d0-05 lv_fsmsdb4-02 dm_c3t84d0 33568288 1210984 7181088 c3t84d0 ENA

。。。

还好受到影响的就一个卷,而且还作了mirror,所以也就不贴其他卷出来显眼了!

 # luxadm probe

Found Enclosure(s):

SENA Name:A1C0 Node WWN:50800200000ea490

Logical Path:/dev/es/ses0

Logical Path:/dev/es/ses1

SENA Name:A2C3 Node WWN:50800200000ead38

Logical Path:/dev/es/ses2

Logical Path:/dev/es/ses3



Found Fibre Channel device(s):

Node WWN:2000002037d89d9a Device Type:Disk device

Logical Path:/dev/rdsk/c2t2d0s2

Node WWN:2000002037e493db Device Type:Disk device

Logical Path:/dev/rdsk/c2t0d0s2



# luxadm display 50800200000ea490



SENA

DISK STATUS

SLOT FRONT DISKS (Node WWN) REAR DISKS (Node WWN)

0 On (Bypassed:AB) On (O.K.) 2000002037c3b5a7

1 Not Installed Not Installed

2 Not Installed Not Installed

3 Not Installed On (O.K.) 2000002037c89c7b

4 Not Installed Not Installed

5 On (O.K.) 2000002037d80498 Not Installed

6 Not Installed On (O.K.) 2000002037c54d3d

7 Not Installed Not Installed

8 Not Installed Not Installed

9 Not Installed Not Installed

10 On (O.K.) 2000002037d803f1 On (O.K.) 2000002037c3bf4f

SUBSYSTEM STATUS

FW Revision:1.09 Box ID:0 Node WWN:50800200000ea490 Enclosure Name:A1C0

Power Supplies (0,2 in front, 1 in rear)

0 O.K.(rev.-02) 1 O.K.(rev.-02) 2 O.K.(rev.-02)

Fans (0 in front, 1 in rear)

0 O.K.(rev.-04) 1 O.K.(rev.-00)

ESI Interface board(IB) (A top, B bottom)

A: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

B: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

Disk backplane (0 in front, 1 in rear)

Front Backplane: O.K.(rev.-04)

Temperature sensors (on front backplane)

0:36篊 1:36篊 2:34篊 3:34篊 4:34篊 5:36篊

6:36篊 7:34篊 8:36篊 9:36篊 10:36篊 (All temperatures are NORMAL.)

Rear Backplane: O.K.(rev.-04)

Temperature sensors (on rear backplane)

0:36篊 1:36篊 2:36篊 3:36篊 4:36篊 5:34篊

6:36篊 7:34篊 8:34篊 9:34篊 10:34篊 (All temperatures are NORMAL.)

Interconnect assembly

O.K.(rev.-02)

Loop configuration

Loop A is configured as a single loop.

Loop B is configured as a single loop.

Language USA English


通过上面命令可以看到前面板0号磁盘故障,这个柜子的名字叫A1C0。

 # luxadm display 50800200000ead38



SENA

DISK STATUS

SLOT FRONT DISKS (Node WWN) REAR DISKS (Node WWN)

0 Not Installed On (O.K.) 2000002037d83bf4

1 On (O.K.) 2000002037ba26b8 Not Installed

2 Not Installed Not Installed

3 Not Installed Not Installed

4 Not Installed On (O.K.) 2000002037d89c41

5 On (O.K.) 2000002037d84870 Not Installed

6 Not Installed On (O.K.) 2000002037d83b93

7 Not Installed Not Installed

8 Not Installed Not Installed

9 Not Installed Not Installed

10 On (O.K.) 2000002037c8546b On (O.K.) 2000002037d8992a

SUBSYSTEM STATUS

FW Revision:1.09 Box ID:2 Node WWN:50800200000ead38 Enclosure Name:A2C3

Power Supplies (0,2 in front, 1 in rear)

0 O.K.(rev.-02) 1 O.K.(rev.-02) 2 O.K.(rev.-02)

Fans (0 in front, 1 in rear)

0 O.K.(rev.-04) 1 O.K.(rev.-00)

ESI Interface board(IB) (A top, B bottom)

A: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

B: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

Disk backplane (0 in front, 1 in rear)

Front Backplane: O.K.(rev.-04)

Temperature sensors (on front backplane)

0:36篊 1:36篊 2:36篊 3:36篊 4:34篊 5:36篊

6:36篊 7:34篊 8:34篊 9:36篊 10:36篊 (All temperatures are NORMAL.)

Rear Backplane: O.K.(rev.-04)

Temperature sensors (on rear backplane)

0:37篊 1:37篊 2:36篊 3:36篊 4:36篊 5:36篊

6:37篊 7:36篊 8:36篊 9:36篊 10:36篊 (All temperatures are NORMAL.)

Interconnect assembly

O.K.(rev.-02)

Loop configuration

Loop A is configured as a single loop.

Loop B is configured as a single loop.

Language USA English

第二个A5200的状态正常。

[size=2]二、更换故障硬盘[/size]

1.重新指定一个新的Quorum device
 # scconf fsms -q fsmsdb1 fsmsdb2

Checking node status...

Checking host fsmsdb2 ...fsmsdb2 is alive



Getting device information for hosts fsmsdb1 and fsmsdb2

This may take a few seconds to a few minutes...done

Select quorum device for fsmsdb1 and fsmsdb2.

Type the number corresponding to the desired selection.

For example: 1

1) DISK:c0t10d0s2:0050L07FTE

2) DISK:c0t16d0s2:0044L062MP

3) DISK:c0t19d0s2:0047L07HMS

4) DISK:c0t26d0s2:0044L069NG

5) DISK:c0t5d0s2:0050L080EX

6) DISK:c3t65d0s2:0131L0AQ60

7) DISK:c3t69d0s2:0050L08BYB

8) DISK:c3t74d0s2:0046L06PDB

9) DISK:c3t80d0s2:0050L08EEY

10) DISK:c3t84d0s2:0101L08S00

11) DISK:c3t86d0s2:0050L08ETM

12) DISK:c3t90d0s2:0101L08R9D

Quorum device: 1

Disk c0t10d0s2 with serial id 0050L07FTE has been chosen

as the quorum device.

从上面信息可以看到Quorum device磁盘已经在这里看到不了!

查看Quorum device是否已经被更新:
 # scconf fsms -p

Checking node status...

Current Configuration for Cluster fsms



Hosts in cluster:

fsmsdb1 fsmsdb2



Private Network Interfaces for

fsmsdb1: hme0 hme2

fsmsdb2: hme0 hme2



Quorum Device Information

Quorum device for hosts fsmsdb1 and fsmsdb2: 0050L07FTE



Logical Host Timeout Value :

Step10 :720

Step11 :720

Logical Host :180



Logical Host : fsmsdb



Node List : fsmsdb1 fsmsdb2

Disk Groups : fsmsdg

Logical Address : fsmsdb

Logical Interface : 1

Network Interface : hme1 (fsmsdb1) hme1 (fsmsdb2)



Automatic Switchover : no


登录到node2主机更新Quorum device:
 # rlogin fsmsdb2

Last login: Fri Jun 29 14:18:26 from fsmsdb1

Sun Microsystems Inc. SunOS 5.6 Generic August 1997

# scconf fsms -p

Checking node status...

Current Configuration for Cluster fsms



Hosts in cluster:

fsmsdb1 fsmsdb2



Private Network Interfaces for

fsmsdb1: hme0 hme2

fsmsdb2: hme0 hme2



Quorum Device Information

Quorum device for hosts fsmsdb1 and fsmsdb2: 0046L06SNX



Logical Host Timeout Value :

Step10 :720

Step11 :720

Logical Host :180



Logical Host : fsmsdb



Node List : fsmsdb1 fsmsdb2

Disk Groups : fsmsdg

Logical Address : fsmsdb

Logical Interface : 1

Network Interface : hme1 (fsmsdb1) hme1 (fsmsdb2)



Automatic Switchover : no



# scconf fsms -q fsmsdb1 fsmsdb2

Checking node status...

Checking host fsmsdb1 ...

fsmsdb1 is alive



Getting device information for hosts fsmsdb1 and fsmsdb2

This may take a few seconds to a few minutes...done

Select quorum device for fsmsdb1 and fsmsdb2.

Type the number corresponding to the desired selection.

For example: 1

1) DISK:c0t10d0s2:0050L07FTE

2) DISK:c0t16d0s2:0044L062MP

3) DISK:c0t19d0s2:0047L07HMS

4) DISK:c0t26d0s2:0044L069NG

5) DISK:c0t5d0s2:0050L080EX

6) DISK:c3t65d0s2:0131L0AQ60

7) DISK:c3t69d0s2:0050L08BYB

8) DISK:c3t74d0s2:0046L06PDB

9) DISK:c3t80d0s2:0050L08EEY

10) DISK:c3t84d0s2:0101L08S00

11) DISK:c3t86d0s2:0050L08ETM

12) DISK:c3t90d0s2:0101L08R9D

Quorum device: 1

Disk c0t10d0s2 with serial id 0050L07FTE has been chosen

as the quorum device.

# scconf fsms -p

Checking node status...

Current Configuration for Cluster fsms



Hosts in cluster:

fsmsdb1 fsmsdb2



Private Network Interfaces for

fsmsdb1: hme0 hme2

fsmsdb2: hme0 hme2



Quorum Device Information

Quorum device for hosts fsmsdb1 and fsmsdb2: 0050L07FTE



Logical Host Timeout Value :

Step10 :720

Step11 :720

Logical Host :180



Logical Host : fsmsdb



Node List : fsmsdb1 fsmsdb2

Disk Groups : fsmsdg

Logical Address : fsmsdb

Logical Interface : 1

Network Interface : hme1 (fsmsdb1) hme1 (fsmsdb2)



Automatic Switchover : no


2.使用vxdiskadm命令更换坏盘

 # vxdiskadm



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: 4





Remove a disk for replacement

Menu: VolumeManager/Disk/RemoveForReplace



Use this menu operation to remove a physical disk from a disk

group, while retaining the disk name. This changes the state

for the disk name to a "removed" disk. If there are any

initialized disks that are not part of a disk group, you will be

given the option of using one of these disks as a replacement.



Enter disk name [,list,q,?] list



Disk group: rootdg



DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE



dm c2t0d0s7 c2t0d0s7 simple 1024 74367 -



Disk group: fsmsdg



DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE



dm dm_c0t0d0 - - - - NODEVICE

dm dm_c0t5d0 c0t5d0s2 sliced 4711 35363560 -

dm dm_c0t10d0 c0t10d0s2 sliced 4711 35363560 -

dm dm_c0t16d0 c0t16d0s2 sliced 4711 35363560 -

dm dm_c0t19d0 c0t19d0s2 sliced 4711 35363560 -

dm dm_c3t65d0 c3t65d0s2 sliced 4711 35363560 -

dm dm_c3t69d0 c3t69d0s2 sliced 4711 35363560 -

dm dm_c3t74d0 c3t74d0s2 sliced 4711 35363560 -

dm dm_c3t80d0 c3t80d0s2 sliced 4711 35363560 -

dm dm_c3t84d0 c3t84d0s2 sliced 4711 35363560 -



Enter disk name [,list,q,?] dm_c0t0d0



The following volumes will lose mirrors as a result of this

operation:



fsmsdg-stat lv_fsmsdb1 lv_fsmsdb10 lv_fsmsdb11 lv_fsmsdb12 lv_fsmsdb13 lv_fsmsdb14 lv_fsmsdb15 lv_fsmsdb16 lv_fsmsdb2 lv_fsmsdb3 lv_fsmsdb4 lv_fsmsdb5 lv_fsmsdb6 lv_fsmsdb7 lv_fsmsdb8 lv_fsmsdb9 lv_fsmsdbfs lv_mdbs lv_mlogdbs



No data on these volumes will be lost.



The requested operation is to remove disk dm_c0t0d0 from disk group

fsmsdg. The disk name will be kept, along with any volumes using

the disk, allowing replacement of the disk.



Select "Replace a failed or removed disk" from the main menu

when you wish to replace the disk.



Continue with operation? [y,n,q,?] (default: y) y



Removal of disk dm_c0t0d0 completed successfully.



Remove another disk? [y,n,q,?] (default: n) n



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: 11



Disable (offline) a disk device

Menu: VolumeManager/Disk/OfflineDisk



Use this menu operation to disable all access to a disk device

by the Volume Manager. This operation can be applied only to

disks that are not currently in a disk group. Use this operation

if you intend to remove a disk from a system without rebooting.



NOTE: Many systems do not support disks that can be removed from

a system during normal operation. On such systems, the

offline operation is seldom useful.



Select a disk device to disable [,list,q,?] list



DEVICE DISK GROUP STATUS

c0t0d0 - - error

c0t5d0 dm_c0t5d0 fsmsdg online

c0t10d0 dm_c0t10d0 fsmsdg online

c0t16d0 dm_c0t16d0 fsmsdg online

c0t19d0 dm_c0t19d0 fsmsdg online

c0t26d0 - - error

c2t0d0 - - error

c2t0d0 c2t0d0s7 rootdg online

c2t2d0 - - error

c3t65d0 dm_c3t65d0 fsmsdg online

c3t69d0 dm_c3t69d0 fsmsdg online

c3t74d0 dm_c3t74d0 fsmsdg online

c3t80d0 dm_c3t80d0 fsmsdg online

c3t84d0 dm_c3t84d0 fsmsdg online

c3t86d0 - - error

c3t90d0 - - error



Select a disk device to disable [,list,q,?] c0t0d0



Disable another device? [y,n,q,?] (default: n)



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: q



# vxprint -ht

Disk group: rootdg



DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE



dg rootdg default default 0 993346192.1026.fsmsdb1



dm c2t0d0s7 c2t0d0s7 simple 1024 74367 -



Disk group: fsmsdg



DG NAME NCONFIG NLOG MINORS GROUP-ID

DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE

V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE



dg fsmsdg default default 51000 989998066.1084.fsmsdb1



dm dm_c0t0d0 - - - - REMOVED

dm dm_c0t5d0 c0t5d0s2 sliced 4711 35363560 -

dm dm_c0t10d0 c0t10d0s2 sliced 4711 35363560 -

dm dm_c0t16d0 c0t16d0s2 sliced 4711 35363560 -

dm dm_c0t19d0 c0t19d0s2 sliced 4711 35363560 -

dm dm_c3t65d0 c3t65d0s2 sliced 4711 35363560 -

dm dm_c3t69d0 c3t69d0s2 sliced 4711 35363560 -

dm dm_c3t74d0 c3t74d0s2 sliced 4711 35363560 -

dm dm_c3t80d0 c3t80d0s2 sliced 4711 35363560 -

dm dm_c3t84d0 c3t84d0s2 sliced 4711 35363560 -



。。。

v lv_fsmsdb4 gen ENABLED ACTIVE 8388608 SELECT -

pl lv_fsmsdb4-01 lv_fsmsdb4 DISABLED REMOVED 8392072 CONCAT - RW

sd dm_c0t0d0-06 lv_fsmsdb4-01 dm_c0t0d0 25694536 8392072 0 - RLOC

pl lv_fsmsdb4-02 lv_fsmsdb4 ENABLED ACTIVE 8392072 CONCAT - RW

sd dm_c0t10d0-05 lv_fsmsdb4-02 dm_c0t10d0 33568288 1795272 0 c0t10d0 ENA

sd dm_c0t16d0-05 lv_fsmsdb4-02 dm_c0t16d0 33568288 1795272 1795272 c0t16d0 ENA

sd dm_c3t69d0-05 lv_fsmsdb4-02 dm_c3t69d0 33568288 1795272 3590544 c3t69d0 ENA

sd dm_c0t5d0-07 lv_fsmsdb4-02 dm_c0t5d0 33883992 212040 5385816 c0t5d0 ENA

sd dm_c3t65d0-04 lv_fsmsdb4-02 dm_c3t65d0 16788856 1583232 5597856 c3t65d0 ENA

sd dm_c3t84d0-05 lv_fsmsdb4-02 dm_c3t84d0 33568288 1210984 7181088 c3t84d0 ENA

。。。

# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - offline

c0t5d0s2 sliced dm_c0t5d0 fsmsdg online

c0t10d0s2 sliced dm_c0t10d0 fsmsdg online

c0t16d0s2 sliced dm_c0t16d0 fsmsdg online

c0t19d0s2 sliced dm_c0t19d0 fsmsdg online

c0t26d0s2 sliced - - error

c2t0d0s2 sliced - - error

c2t0d0s7 simple c2t0d0s7 rootdg online

c2t2d0s2 sliced - - error

c3t65d0s2 sliced dm_c3t65d0 fsmsdg online

c3t69d0s2 sliced dm_c3t69d0 fsmsdg online

c3t74d0s2 sliced dm_c3t74d0 fsmsdg online

c3t80d0s2 sliced dm_c3t80d0 fsmsdg online

c3t84d0s2 sliced dm_c3t84d0 fsmsdg online

c3t86d0s2 sliced - - error

c3t90d0s2 sliced - - error

- - dm_c0t0d0 fsmsdg removed was:c0t0d0s2


 # luxadm remove_device -F /dev/rdsk/c0t0d0s2



WARNING!!! Please ensure that no filesystems are mounted on these device(s).

All data on these devices should have been backed up.





Inquiry failed for /devices/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c85404,0:c,raw

# luxadm remove_device -F A1C0,f0



WARNING!!! Please ensure that no filesystems are mounted on these device(s).

All data on these devices should have been backed up.





A1C0,f0 is bypassed (Port:AB).

Could not get device specific information.


到这里看来只能直接去拔盘了。。。在A5200液晶面板看到这个磁盘的状态已经是Offline了。。。拔出坏盘插入新盘。。。

 # luxadm insert_device A1C0,f0



Notice: A1C0,f0 may already be present.

The list of devices which will be inserted is:

1: Box Name: "A1C0" front slot 0





Please verify the above list of devices and

then enter 'c' or to Continue or 'q' to Quit. [Default: c]:



Hit after inserting the device(s).



Drive in Box Name "A1C0" front slot 0

Logical Nodes under /dev/dsk and /dev/rdsk :

c0t0d0s0

c0t0d0s1

c0t0d0s2

c0t0d0s3

c0t0d0s4

c0t0d0s5

c0t0d0s6

c0t0d0s7


 # luxadm display 50800200000ea490



SENA

DISK STATUS

SLOT FRONT DISKS (Node WWN) REAR DISKS (Node WWN)

0 On (O.K.) 200000203788ecc0 On (O.K.) 2000002037c3b5a7

1 Not Installed Not Installed

2 Not Installed Not Installed

3 Not Installed On (O.K.) 2000002037c89c7b

4 Not Installed Not Installed

5 On (O.K.) 2000002037d80498 Not Installed

6 Not Installed On (Bypassed:AB)

7 Not Installed Not Installed

8 Not Installed Not Installed

9 Not Installed Not Installed

10 On (O.K.) 2000002037d803f1 On (O.K.) 2000002037c3bf4f

SUBSYSTEM STATUS

FW Revision:1.09 Box ID:0 Node WWN:50800200000ea490 Enclosure Name:A1C0

Power Supplies (0,2 in front, 1 in rear)

0 O.K.(rev.-02) 1 O.K.(rev.-02) 2 O.K.(rev.-02)

Fans (0 in front, 1 in rear)

0 O.K.(rev.-04) 1 O.K.(rev.-00)

ESI Interface board(IB) (A top, B bottom)

A: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

B: O.K.(rev.-04)

GBIC module (1 on left, 0 on right in IB)

0 O.K.(mod.-05)

1 Not Installed

Disk backplane (0 in front, 1 in rear)

Front Backplane: O.K.(rev.-04)

Temperature sensors (on front backplane)

0:36篊 1:36篊 2:34篊 3:34篊 4:34篊 5:36篊

6:36篊 7:34篊 8:36篊 9:36篊 10:36篊 (All temperatures are NORMAL.)

Rear Backplane: O.K.(rev.-04)

Temperature sensors (on rear backplane)

0:36篊 1:36篊 2:36篊 3:36篊 4:36篊 5:34篊

6:36篊 7:34篊 8:34篊 9:36篊 10:34篊 (All temperatures are NORMAL.)

Interconnect assembly

O.K.(rev.-02)

Loop configuration

Loop A is configured as a single loop.

Loop B is configured as a single loop.

Language USA English

#

# drvconfig;disks

# format

Searching for disks...done





AVAILABLE DISK SELECTIONS:

0. c0t0d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203788ecc0,0

1. c0t5d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d80498,0

2. c0t10d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d803f1,0

3. c0t16d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3b5a7,0

4. c0t19d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c89c7b,0

5. c0t26d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3bf4f,0

6. c2t0d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037e493db,0

7. c2t2d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d89d9a,0

8. c3t65d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037ba26b8,0

9. c3t69d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d84870,0

10. c3t74d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037c8546b,0

11. c3t80d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83bf4,0

12. c3t84d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d89c41,0

13. c3t86d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83b93,0

14. c3t90d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d8992a,0

Specify disk (enter its number): ^D


下面走了点弯路。。。不好意思。。。看来这是老了,脑子被摔坏了:oops::em23:。。。

# vxdisksetup -i c0t0d0

vxvm:vxdisk: ERROR: Device c0t0d0s2: online failed:

Device path not valid

# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - error

c0t5d0s2 sliced dm_c0t5d0 fsmsdg online

c0t10d0s2 sliced dm_c0t10d0 fsmsdg online

c0t16d0s2 sliced dm_c0t16d0 fsmsdg online

c0t19d0s2 sliced dm_c0t19d0 fsmsdg online

c0t26d0s2 sliced - - error

c2t0d0s2 sliced - - error

c2t0d0s7 simple c2t0d0s7 rootdg online

c2t2d0s2 sliced - - error

c3t65d0s2 sliced dm_c3t65d0 fsmsdg online

c3t69d0s2 sliced dm_c3t69d0 fsmsdg online

c3t74d0s2 sliced dm_c3t74d0 fsmsdg online

c3t80d0s2 sliced dm_c3t80d0 fsmsdg online

c3t84d0s2 sliced dm_c3t84d0 fsmsdg online

c3t86d0s2 sliced - - error

c3t90d0s2 sliced - - error

- - dm_c0t0d0 fsmsdg removed was:c0t0d0s2

# vxdiskadm



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: 10





Enable (online) a disk device

Menu: VolumeManager/Disk/OnlineDisk



Use this operation to enable access to a disk that was disabled

with the "Disable (offline) a disk device" operation.



You can also use this operation to re-scan a disk that may have

been changed outside of the Volume Manager. For example, If a

disk is shared between two systems, the Volume Manager running on

the other system may have changed the disk. If so, you can use

this operation to re-scan the disk.



NOTE: Many voldiskadm operations re-scan disks without user

intervention. This will eliminate most needs to online a

disk directly, except when the disk is directly offlined.



Select a disk device to enable [,list,q,?] list



DEVICE DISK GROUP STATUS

c0t0d0 - - error

c0t5d0 dm_c0t5d0 fsmsdg online

c0t10d0 dm_c0t10d0 fsmsdg online

c0t16d0 dm_c0t16d0 fsmsdg online

c0t19d0 dm_c0t19d0 fsmsdg online

c0t26d0 - - error

c2t0d0 - - error

c2t0d0 c2t0d0s7 rootdg online

c2t2d0 - - error

c3t65d0 dm_c3t65d0 fsmsdg online

c3t69d0 dm_c3t69d0 fsmsdg online

c3t74d0 dm_c3t74d0 fsmsdg online

c3t80d0 dm_c3t80d0 fsmsdg online

c3t84d0 dm_c3t84d0 fsmsdg online

c3t86d0 - - error

c3t90d0 - - error



Select a disk device to enable [,list,q,?] c0t0d0



vxvm:vxdisk: ERROR: Device c0t0d0s2: online failed:

Device path not valid



Enable another device? [y,n,q,?] (default: n)



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: 5





Replace a failed or removed disk

Menu: VolumeManager/Disk/ReplaceDisk



Use this menu operation to specify a replacement disk for a disk

that you removed with the "Remove a disk for replacement" menu

operation, or that failed during use. You will be prompted for

a disk name to replace and a disk device to use as a replacement.

You can choose an uninitialized disk, in which case the disk will

be initialized, or you can choose a disk that you have already

initialized using the Add or initialize a disk menu operation.



Select a removed or failed disk [,list,q,?] list



Disk group: rootdg



DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE





Disk group: fsmsdg



DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE



dm dm_c0t0d0 - - - - REMOVED





Select a removed or failed disk [,list,q,?] dm_c0t0d0



Select disk device to initialize [,list,q,?] list



DEVICE DISK GROUP STATUS

c0t0d0 - - error

c0t5d0 dm_c0t5d0 fsmsdg online

c0t10d0 dm_c0t10d0 fsmsdg online

c0t16d0 dm_c0t16d0 fsmsdg online

c0t19d0 dm_c0t19d0 fsmsdg online

c0t26d0 - - error

c2t0d0 - - error

c2t0d0 c2t0d0s7 rootdg online

c2t2d0 - - error

c3t65d0 dm_c3t65d0 fsmsdg online

c3t69d0 dm_c3t69d0 fsmsdg online

c3t74d0 dm_c3t74d0 fsmsdg online

c3t80d0 dm_c3t80d0 fsmsdg online

c3t84d0 dm_c3t84d0 fsmsdg online

c3t86d0 - - error

c3t90d0 - - error



Select disk device to initialize [,list,q,?] c0t0d0



The following disk device has a valid VTOC, but does not appear to have

been initialized for the Volume Manager. If there is data on the disk

that should NOT be destroyed you should encapsulate the existing disk

partitions as volumes instead of adding the disk as a new disk.

Output format: [Device_Name]



c0t0d0



Encapsulate this device? [y,n,q,?] (default: y)



Select a different device? [y,n,q,?] (default: n)



Replace a different disk? [y,n,q,?] (default: n)



Volume Manager Support Operations

Menu: VolumeManager/Disk



1 Add or initialize one or more disks

2 Encapsulate one or more disks

3 Remove a disk

4 Remove a disk for replacement

5 Replace a failed or removed disk

6 Mirror volumes on a disk

7 Move volumes from a disk

8 Enable access to (import) a disk group

9 Remove access to (deport) a disk group

10 Enable (online) a disk device

11 Disable (offline) a disk device

12 Mark a disk as a spare for a disk group

13 Turn off the spare flag on a disk

list List disk information





? Display help about menu

?? Display help about the menuing system

q Exit from menus



Select an operation to perform: q



Goodbye.

# vxdisk list

DEVICE TYPE DISK GROUP STATUS

c0t0d0s2 sliced - - error

c0t5d0s2 sliced dm_c0t5d0 fsmsdg online

c0t10d0s2 sliced dm_c0t10d0 fsmsdg online

c0t16d0s2 sliced dm_c0t16d0 fsmsdg online

c0t19d0s2 sliced dm_c0t19d0 fsmsdg online

c0t26d0s2 sliced - - error

c2t0d0s2 sliced - - error

c2t0d0s7 simple c2t0d0s7 rootdg online

c2t2d0s2 sliced - - error

c3t65d0s2 sliced dm_c3t65d0 fsmsdg online

c3t69d0s2 sliced dm_c3t69d0 fsmsdg online

c3t74d0s2 sliced dm_c3t74d0 fsmsdg online

c3t80d0s2 sliced dm_c3t80d0 fsmsdg online

c3t84d0s2 sliced dm_c3t84d0 fsmsdg online

c3t86d0s2 sliced - - error

c3t90d0s2 sliced - - error

- - dm_c0t0d0 fsmsdg removed was:c0t0d0s2

# format

Searching for disks...done





AVAILABLE DISK SELECTIONS:

0. c0t0d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203788ecc0,0

1. c0t5d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d80498,0

2. c0t10d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d803f1,0

3. c0t16d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3b5a7,0

4. c0t19d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c89c7b,0

5. c0t26d0

/sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3bf4f,0

6. c2t0d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037e493db,0

7. c2t2d0

/sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d89d9a,0

8. c3t65d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037ba26b8,0

9. c3t69d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d84870,0

10. c3t74d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037c8546b,0

11. c3t80d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83bf4,0

12. c3t84d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d89c41,0

13. c3t86d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83b93,0

14. c3t90d0

/sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d8992a,0

Specify disk (enter its number): 0

selecting c0t0d0

[disk formatted]





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

! - execute , then return

quit

format> ver



Primary label contents:



Volume name = < >

ascii name =

pcyl = 7508

ncyl = 7506

acyl = 2

nhead = 19

nsect = 248
返回编程语言教程...