Operating System - Tru64 Unix
1752666 Members
5588 Online
108788 Solutions
New Discussion юеВ

Re: how to replace mirrored volumes disk

 
mac2008_1
Advisor

how to replace mirrored volumes disk

how to replace mirrored volumes disk??

log messages:

# volprint -ht -g rootdg
DG NAME GROUP-ID
DM NAME DEVICE TYPE PRIVLEN PUBLEN PUBPATH
V NAME USETYPE KSTATE STATE LENGTH READPOL PREFPLEX
PL NAME VOLUME KSTATE STATE LENGTH LAYOUT ST-WIDTH MODE
SD NAME PLEX PLOFFS DISKOFFS LENGTH DISK-NAME DEVICE

dg rootdg 941966811.1025.maswg2

dm rz10 rz10 sliced 1024 8379040 /dev/rrz10g
dm rz11 rz11 sliced 1024 8379040 /dev/rrz11g
dm rz8a rz8a nopriv 0 524288 /dev/rrz8a
dm rz8b rz8b nopriv 0 408576 /dev/rrz8b
dm rz8d rz8d simple 1024 0 /dev/rrz8d
dm rz8g rz8g nopriv 0 7446192 /dev/rrz8g
dm rz9a rz9a nopriv 0 524288 /dev/rrz9a
dm rz9b rz9b nopriv 0 408576 /dev/rrz9b
dm rz9d rz9d simple 1024 0 /dev/rrz9d
dm rz9g rz9g nopriv 0 7446192 /dev/rrz9g

v rootvol root ENABLED ACTIVE 524288 ROUND -
pl rootvol-01 rootvol ENABLED ACTIVE 524288 CONCAT - RW
sd rz8a-01p rootvol-01 0 0 16 rz8a rz8a
sd rz8a-01 rootvol-01 16 16 524272 rz8a rz8a
pl rootvol-02 rootvol DETACHED IOFAIL 524288 CONCAT - WO
sd rz9a-01p rootvol-02 0 0 16 rz9a rz9a
sd rz9a-01 rootvol-02 16 16 524272 rz9a rz9a

v swapvol swap ENABLED ACTIVE 408576 ROUND -
pl swapvol-01 swapvol ENABLED ACTIVE 408576 CONCAT - RW
sd rz8b-01 swapvol-01 0 0 408576 rz8b rz8b
pl swapvol-02 swapvol ENABLED ACTIVE 408576 CONCAT - RW
sd rz9b-01 swapvol-02 0 0 408576 rz9b rz9b

v swapvol2-01 fsgen ENABLED ACTIVE 8192000 SELECT -
pl swapvol2-01-01 swapvol2-01 ENABLED ACTIVE 8192000 CONCAT - RW
sd rz10-01 swapvol2-01-01 0 0 8192000 rz10 rz10
pl swapvol2-01-02 swapvol2-01 DETACHED STALE 8192000 CONCAT - WO
sd rz11-01 swapvol2-01-02 0 0 8192000 rz11 rz11

v vol-rz8g fsgen ENABLED ACTIVE 7446192 SELECT -
pl vol-rz8g-01 vol-rz8g ENABLED ACTIVE 7446192 CONCAT - RW
sd rz8g-01 vol-rz8g-01 0 0 7446192 rz8g rz8g
pl vol-rz8g-02 vol-rz8g ENABLED ACTIVE 7446192 CONCAT - RW
sd rz9g-01 vol-rz8g-02 0 0 7446192 rz9g rz9g


3ks

mac2008 2009.4.15


3 REPLIES 3
mac2008_1
Advisor

Re: how to replace mirrored volumes disk

pl rootvol-02 rootvol DETACHED IOFAIL 524288 CONCAT - WO


iofail , have to replace disk, how to ??

help??
Pieter 't Hart
Honored Contributor

Re: how to replace mirrored volumes disk

look at the man pages "voldiskadm - Menu interface for LSM disk administration".

this is a menu-driven interface for managing LSM-volumes

the following options may be usefull :
list (or l) List disk information
option 4. Remove a disk for replacement
option 5. Replace a failed or removed disk
option 12. Mark a disk as a spare for a disk group
option 14. Recover plexes and volumes after disk replacement


Pieter
Kapil Jha
Honored Contributor

Re: how to replace mirrored volumes disk

Remove the disk from dg with -k option to keep the configuration.

voldg -g rootdg -k rmdisk diskname
replace disk
rename disk as old name
voldg -g rootdg -k adddisk diskname
volrecover -sb

Thanks all,
BR
Kapil+
I am in this small bowl, I wane see the real world......