Disk failure
Joe Harman
jh@hsmpk12a-s1.Eng.Sun.COM
Fri, 20 Mar 1998 12:07:30 -0800
If you have a current vxprint, there is a program some where in the
archives of this alias that will do it for you, it is called
vxunrelocate...
Joe
<jh> From Doug.Hughes@eng.auburn.edu Fri Mar 20 11:16:59 1998
<jh> From: Doug Hughes <Doug.Hughes@eng.auburn.edu>
<jh> Date: Fri, 20 Mar 1998 12:07:47 -0600
<jh> Subject: Re: Disk failure
<jh> To: ssa-managers@eng.auburn.edu
<jh> X-Info: To unsubscribe, send 'unsubscribe ssa-managers' to majordomo@Eng.Auburn.EDU in message body
<jh>
<jh> >
<jh> >Hello
<jh> >
<jh> >After a disk failure, the hot-relocation splitted a subdisk of a stripped and
<jh> >mirrored volume into two subdisks with different sizes on two different physical
<jh> >disks.
<jh> >
<jh> > Original-Layout Layout after Failure
<jh> >+----------------------------------+ +----------------------------------+
<jh> >| +-------------+ +-------------+ | | +-------------+ +-------------+ |
<jh> >| |+-----------+| |+-----------+| | | |+------+----+| |+-----------+| |
<jh> >| || A-01 || || C-01 || | | || F-09 |G-10|| || C-01 || |
<jh> >| |+-----------+| |+-----------+| | | |+------+----+| |+-----------+| |
<jh> >| || B-01 || || D-01 || | | || B-01 || || D-01 || |
<jh> >| |+-----------+| |+-----------+| | | |+-----------+| |+-----------+| |
<jh> >| | vol01-01 | | vol01-02 | | | | vol01-01 | | vol01-02 | |
<jh> >| +-------------+ +-------------+ | | +-------------+ +-------------+ |
<jh> >| | | |
<jh> >| | | |
<jh> >| vol01 | | vol01 |
<jh> >+----------------------------------+ +----------------------------------+
<jh> >
<jh> >
<jh> > +-------------------------------------------------------------+
<jh> > | |
<jh> > Physical-Disk A | Physical-Disk F Physical-Disk G |
<jh> >+--------------+ | +---------+----+ +--------------+ |
<jh> >| A-01 | -+--------> | F-09 | | | | |
<jh> >|--------------| |---------+----| |---------+----| |
<jh> >| | | | | |G-10| <-+
<jh> >|--------------| |--------------| |---------+----|
<jh> >| | | | | |
<jh> >|--------------| |--------------| |--------------|
<jh> >| | | | | |
<jh> >+--------------+ +--------------+ +--------------+
<jh> > failed disk
<jh> >
<jh> >How can I move the two subdisks F-09 and G-10 back to the original subdisk A-01
<jh> >after replacing the failed disk? I like to have the original layout.
<jh> >
<jh> >How can I do it with the commandline command.
<jh> >How can I do it with the graphical interface "vxva".
<jh> >
<jh>
<jh> What you need to do is first: get your current vxprint output
<jh> vxprint -g <diskgroup> -Gsdt
<jh>
<jh> now, look for F-09 and G-10 in this output
<jh> get the size from F-09 and G-10 (let's call them fsize and gsize)
<jh>
<jh> vxmake -g <diskgroup> sd A-01 dm_name=A dm_offset=0 len=fsize
<jh> vxmake -g <diskgroup> sd A-02 dm_name=A dm_offset=fsize len=gsize
<jh> vxsd -g <diskgroup> -o rm mv F-09 A-01
<jh> vxsd -g <diskgroup> -o rm mv G-10 A-02
<jh> vxsd -g <diskgroup> join A-01 A-02 A-01
<jh>
<jh> In fact, we had a disk failure in an SSA just last night and I had
<jh> to do something very similar to this.
<jh> You can do this on a live file system too. It works just fine. Don't
<jh> worry about data integrity, it'll be fine.
<jh>
<jh>
<jh> As for vxva, You should be able to just drag and drop the subdisks onto
<jh> the A VMdisk and then do a join operation in the GUI. You may have to do
<jh> a lot of scrollbarring up and down to do this, or you could construct
<jh> your own 'view' in the GUI, but that's outside the scope of this example. ;)
<jh>
<jh>
<jh> --
<jh> ____________________________________________________________________________
<jh> Doug Hughes Engineering Network Services
<jh> System/Net Admin Auburn University
<jh> doug@eng.auburn.edu
<jh>
<jh>
<jh>