Operating System - HP-UX
1748033 Members
4606 Online
108757 Solutions
New Discussion юеВ

mirror and break mirror OS:11.23 model:ia64

 
masood bt
Regular Advisor

mirror and break mirror OS:11.23 model:ia64

Hello.

Have a server with two disks.
mirrored.

i have a third disk in hand..need to mirror this with the existing disk in the server and use this third disk to boot some other server..somewhere else.

The steps I think appropriate are:

(1)identify the disk (one of the two disks) to be removed from server

(2)break the mirror (and do not take it out)

(3)reboot the server with second disk

(4)if it works, reboot the server with first disk

(5)now remove the second disk out from the server

(3)Insert the the third disk in hand, now into the server.

(4)mirror the third disk with the existing disk in the server

(5)reboot the server with the third disk ( to test if it has got mirrored properly)

if it works,

(6)reboot the server with original disk

(7)break the mirror between original disk and third disk

(8)do not remove the third disk now...but

(9)Reboot the server with third disk(to test if it still works after breaking the mirror)

if it works,

(10)reboot the server with original first disk

(11)remove the third disk from the server

(11) insert the original second disk into the server and re mirror(sync)

Are the above steps okay?

I have other questions like,
for breaking the mirror
i do #vgreduce ....
#lvreduce -m 0 .....

is this correct?
thx
Behind every Great fortune, there is a crime
14 REPLIES 14
Johnson Punniyalingam
Honored Contributor

Re: mirror and break mirror OS:11.23 model:ia64

>>Are the above steps okay?<<

Would recommend to check below link, above (Plan) looks Good.

http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf


>>I have other questions like,
for breaking the mirror
i do #vgreduce ....
#lvreduce -m 0 .....<<<

its other way around

# lvreduce -m 0 /dev/vgname/lvname /dev/dsk/cxtxdx
# vgreduce /dev/vgname /dev/dsk/cxtxdx

man lvreduce
man vgreduce
Problems are common to all, but attitude makes the difference
Steven E. Protter
Exalted Contributor

Re: mirror and break mirror OS:11.23 model:ia64

Shalom,

PSB

Pretty well thought out plan:

The steps I think appropriate are:

(1)identify the disk (one of the two disks) to be removed from server
vgdisplay -v lvdisplay -v pvdisplay -v


(2)break the mirror (and do not take it out)

# will work, look at lvsplit command

(3)reboot the server with second disk

May not be needed for hot swap disk. insf -C disk insf -e


(4)if it works, reboot the server with first disk

(5)now remove the second disk out from the server

(3)Insert the the third disk in hand, now into the server.

(4)mirror the third disk with the existing disk in the server

(5)reboot the server with the third disk ( to test if it has got mirrored properly)

if it works,

(6)reboot the server with original disk

(7)break the mirror between original disk and third disk

(8)do not remove the third disk now...but

(9)Reboot the server with third disk(to test if it still works after breaking the mirror)

if it works,

(10)reboot the server with original first disk

(11)remove the third disk from the server

(11) insert the original second disk into the server and re mirror(sync)


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Torsten.
Acclaimed Contributor

Re: mirror and break mirror OS:11.23 model:ia64

Break the mirror usually means delete data from disk.

So shut down server, take out the disk.
Boot the server, insert new disk and sync the mirror (follow the steps from the PDF above).

Now you have a copy in your hands and a mirrored pair in the server.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
masood bt
Regular Advisor

Re: mirror and break mirror OS:11.23 model:ia64

Yes, I am actually worried about losing the data while doing lvreduce and vgreduce.

So, I will drop the idea of breaking the mirror by using lvreduce/vgreduce.

Now I need to consider two other ways.

(A)
above planned steps with lvsplit(instead of lvreduce)
(I need to have the lvsplit commands in hand please can somebody help me out here)

or

(B)
(1)two disks in server, third disk in hand.
(2)shutdown the server,remove one disk. insert third disk.
(3)boot the server
(4)mirror..third disk also now has same data as the original disk
(5)shutdown the server.remove third disk..insert the original(second) disk..now the server has it own original two disks still in mirrored state
(6)now i cam use the third disk to use it in some other server somewhere else.

can i use the third disk mirrored in this way in some other server to boot?..without any problems?

Behind every Great fortune, there is a crime
Torsten.
Acclaimed Contributor

Re: mirror and break mirror OS:11.23 model:ia64

Procedure B!

But why inserting the old disk again? This step is not needed.


The new server booted from this disk (same server model???) will have the same name, same IP!

Consider to boot into single user mode, use "set_parms initial"!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
masood bt
Regular Advisor

Re: mirror and break mirror OS:11.23 model:ia64

inserting the second disk (old disk) because the server should be left in its original state...with its two mirrored disks intact.

I will use this newly mirrored disk to boot some other server(same model) somewhere else.

do i need to do any vgexport/import stuff once i take this third disk to the other server?
Behind every Great fortune, there is a crime
Torsten.
Acclaimed Contributor

Re: mirror and break mirror OS:11.23 model:ia64

It depends - do you want to vgimport disks?

The best method to "clone" a server is ignite, but this procedure may work too.

If you insert the "cloned" disk into the same slot, you don't need vgexport/vgimport this disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
masood bt
Regular Advisor

Re: mirror and break mirror OS:11.23 model:ia64



When I get my third disk mirrored... when i remove it from the server...and insert it in some other server... the hardware path of the disk changes..isnt it?

so..i am thinking...may be i need to boot the second server in maintenance mode/export vg00 and import is again

any comments?
Behind every Great fortune, there is a crime
Torsten.
Acclaimed Contributor

Re: mirror and break mirror OS:11.23 model:ia64

If the position in the new (same model) server is the same, the path will be the same.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!