Operating System - HP-UX
1752800 Members
5695 Online
108789 Solutions
New Discussion юеВ

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

 
Alzhy
Honored Contributor

Split off a Usable vg00 disk as Bootable fall back OS copy

My vg00 are all mirrored - 2 disks.

We need to do a quick DST2K7 check and I want to have a pristine copy of my OS so ti will not be littered with dates that are well into the future.

I had planned of dropping to just one disk - lvsplitting and vgreducing the other disk and just doing a dd copy of the remaining OS disk over.

However, is there a way to remove the mirror disk so it will still be bootable without resorting to a dd copy?

Hakuna Matata.
6 REPLIES 6
Sundar_7
Honored Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

Sure.

1) Shutdown the server. Pull the disk1 out.
2) Boot using disk2 by disabling the quorum
3) Test the DST changes
4) Shutdown. Pull out disk2 and put in disk1
5) Boot using disk1 with quorum disabled
6) insert the disk2 (assuming hot-swap)
7) Run vgchange -a y /dev/vg00
This will sync from disk1 to disk2.




Learn What to do ,How to do and more importantly When to do ?
Court Campbell
Honored Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

If you did a pvcreate with the -B option on the mirror disk then it made the pv bootable. you would have also had to do some extra commands to complete this process. Here is a link to the info on creating a mirror boot disk:

http://www2.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=LVMKBRC00005103

But the answer is that if you split the mirror the disk will still be bootable. It will only have the data from the mirrored volumes up to the time of the split. My real suggestion would be to do an Ignite image using the "-x inc_entire=vg00". This will give you a bootable backup of your system.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Torsten.
Acclaimed Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

Have a look into this
(dynamic root disk):

http://docs.hp.com/en/DRD/index.html

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!   
TwoProc
Honored Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

Yes, this works - just remember when you resync back - that you need to REVERSE which disk is being copied to which one. Since this is going to be a foreign idea to you, please make sure and get comfortable on a test server with this whole idea first!

I'd also make that "dd" copy to tape, and I'd ignite that server as well before I did this. Just to make sure.

Requirements before continuing.

a) practice this on test server
b) dd backup
c) ignite backup
We are the people our parents warned us about --Jimmy Buffett
Alzhy
Honored Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

Shutdown is not an option.

We're on 11.11. so DR Disk is not an option.

I guess dd or alternate vgroot is our only option then.
Hakuna Matata.
James R. Ferguson
Acclaimed Contributor

Re: Split off a Usable vg00 disk as Bootable fall back OS copy

Hi Nelson:

If you DST2K7 verification is for the standard libC libraries using the modified 'tzlib' simply use Clay's Perl script which leverages the standard libraries:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1104045

Regards!

...JRF...