[ Printer Friendly Page ]
[ E-mail this Document to Someone ]
[ Was this document useful? Yes or No ]
Infodoc ID |
|
Synopsis |
|
Date |
13363 |
|
fixing a failed drive under control of volume manager |
|
12 Jan 2000 |
When a drive that is under control of volume manager configured in a volume
recieves a disk error, it can place the disk into a failed state even when
the error is not fatal. Use vxdisk list to check the status of the drive
In these cases the command produces output like the following:
DEVICE TYPE DISK GROUP STATUS
c0t0d0s2 sliced - - error
c0t1d0s2 sliced - - error
c0t2d0s2 sliced - - error
c0t3d0s2 sliced - - error
c1t0d0s2 sliced rootdisk rootdg online
c1t1d0s2 sliced - - error
c2t0d0s2 sliced - - error
c3t0d0s2 sliced ckdg01 ckdg online
c3t0d1s2 sliced disk08 rootdg online
c3t0d2s2 sliced ckdg06 ckdg online
c3t0d3s2 sliced paul03 paul online
c3t0d4s2 sliced paul05 paul online
c3t1d0s2 sliced ckdg04 ckdg online
c3t1d1s2 sliced dale01 dale1 online
c3t1d2s2 sliced dale02 dale1 online
c3t1d3s2 sliced dale03 dale1 online
c3t1d4s2 sliced - - online
c3t2d0s2 sliced ckdg02 ckdg online
c3t2d1s2 sliced dale05 dale1 online
c3t2d2s2 sliced dale06 dale1 online
c3t2d3s2 sliced disk02 rootdg online
c3t2d4s2 sliced disk03 rootdg online
c3t3d0s2 sliced ckdg05 ckdg online
c3t3d1s2 sliced - - online
c3t3d2s2 sliced disk07 rootdg online
c3t3d3s2 sliced paul02 paul online
c3t4d0s2 sliced - - online
c3t4d1s2 sliced ckdg03 ckdg online
c3t4d2s2 sliced dale04 dale1 online
c3t4d3s2 sliced dale09 dale1 online
c3t4d4s2 sliced - - online
c3t5d0s2 sliced dale11 dale1 online
c3t5d1s2 sliced - - online
c3t5d2s2 sliced - - online
- - paul01 paul failed was:c3t3d1s2
In most cases you can reattach the drive to itself by using:
#vxdg -g paul -k adddisk paul01=c3t3d1s2
This does not always work, In these cases you mark the drive as bad
and then replace it with itself. When replacing drives with itself,
it is only recommended to do this on drives that recieved non-fatal errors.
We will use vxdiskadm to replace the drive with itself.
# 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 hot-spare for a disk group
13 Turn off the hot-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 [<disk>,list,q,?] paul01
The following volumes will lose mirrors as a result of this
operation:
vol01
No data on these volumes will be lost.
vxvm:vxdisk: ERROR: Device c3t3d1s2: get_contents failed:
Disk device is offline
The following devices are available as replacements:
c3t1d4 c3t4d0 c3t4d4 c3t5d1 c3t5d2
You can choose one of these disks now to replace paul01.
Select "none" if you do not wish to select a replacement disk.
Choose a device, or select "none"
[<device>,none,q,?] (default: c3t1d4) none
The requested operation is to remove disk paul01 from disk group
paul. 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)
Removal of disk paul01 completed successfully.
Remove another 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 hot-spare for a disk group
13 Turn off the hot-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,?] paul01
The following devices are available as replacements:
c3t1d4s2 c3t4d0s2 c3t4d4s2 c3t5d1s2 c3t5d2s2
You can choose one of these disks to replace paul01.
Choose "none" to initialize another disk to replace paul01.
Choose a device, or select "none"
[<device>,none,q,?] (default: c3t1d4s2) none
Select disk device to initialize [<address>,list,q,?] c3t3d1
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 do not want to be destroyed, you encapsulate the existing disk
partitions as volumes instead of adding the disk as a new disk.
Output format: [Device_Name]
c3t3d1
Encapsulate this device? [y,n,q,?] (default: y) n
c3t3d1
Instead of encapsulating, initialize? [y,n,q,?] (default: n) y
The requested operation is to initialize disk device c3t3d1 and
to then use that device to replace the removed or failed disk
paul01 in disk group paul.
Continue with operation? [y,n,q,?] (default: y)
Replacement of disk paul01 in group paul with disk device
c3t3d1 completed successfully.
Replace another 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 hot-spare for a disk group
13 Turn off the hot-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.
#
At this point the affected plex should start the resync.
Top
Sun Proprietary/Confidential: Internal Use Only
Feedback to SunSolve Team