中国青基会
RSS
热门关键字:  None  linux+moodle安装  mac  rhel5  199
当前位置 : Nixsky>UNIX>Solaris>列表

双机环境下的A5200在线更换硬盘

来源:cu 作者:东方蜘蛛 时间:2007-09-11 点击:



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 [<disk>,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 [<disk>,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 [<address>,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 [<address>,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 <CR> to Continue or 'q' to Quit. [Default: c]: 

Hit <Return> 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 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w210000203788ecc0,0
       1. c0t5d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d80498,0
       2. c0t10d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d803f1,0
       3. c0t16d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3b5a7,0
       4. c0t19d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c89c7b,0
       5. c0t26d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@2,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037c3bf4f,0
       6. c2t0d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037e493db,0
       7. c2t2d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@0,0/ssd@w2100002037d89d9a,0
       8. c3t65d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037ba26b8,0
       9. c3t69d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d84870,0
      10. c3t74d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037c8546b,0
      11. c3t80d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83bf4,0
      12. c3t84d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d89c41,0
      13. c3t86d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /sbus@6,0/SUNW,socal@d,10000/sf@1,0/ssd@w2100002037d83b93,0
      14. c3t90d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /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 [<address>,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 [<address>,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 [<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 [<disk>,list,q,?] dm_c0t0d0

Select disk device to initialize [<address>,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
 
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册