Operating System - HP-UX
1834584 Members
3407 Online
110069 Solutions
New Discussion

Re: This is what I have done!

 
ebnsys2ek
Occasional Contributor

This is what I have done!

I really think Stefan is on to something. I have tried the following steps:
1.vgexport -p -v -m /rootmapfile vg00 with the disk in its old physical position.
2.Shut down, move the disk and boot the machine in maintainance mode.
3.Find the moved disk with ioscan -fnH disk and then vgimport -v -m /rootmapfile /dev/dsk/cXtXdX.
4.Then; mv /etc/lvmtab lvmtab.old.
5.vgscan and lvnlnboot -R to create a new lvmtab.
6.To check that lvlnboot is pointing to the right disk, I do a lvlnboot -v
7.Now I should be able to boot in multi-user, but...

The problem is that I don't get that far. I simply can't get the vgimport right. However I've got a sneaking suspicion that my procedure is wrong somehow. Any inputs??
3 REPLIES 3
RolandH
Honored Contributor

Re: This is what I have done!

See my reply in your original thread !!!

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x1f7095c6d185694b8127d04ec446736c,00.html

HTH
Roland
Sometimes you lose and sometimes the others win
Stefan Farrelly
Honored Contributor

Re: This is what I have done!

Ive used this procedure successfully. Youve used a lot more steps than I did.

All I did was boot in lvm maintenance mode, create a new /dev/vg00/group file, vgimport from the new device of the vg00 group, then reboot. That was all - no need to export it, or do anything with /etc/lvmtab (vgimport will do that), or and lvlnboot commands - again, vgimport should update this.

I may have booted in maintenance mode, imported vg00, then simply did an init 3. Then when it was up checked everything, then a clean shutdown and reboot. I think the clean shutdown after importing may be necessary. Try that. My vg00 was mirrored so all I did was estroy the mirror before attempting the above. I seem to recall trying this with mirroring still active stopped it.
Im from Palmerston North, New Zealand, but somehow ended up in London...
RolandH
Honored Contributor

Re: This is what I have done!

Hi Stefan,

then you will leave ghost disks in your /etc/lvmtab. So the better way (clean) way is to vgexport !!!!!!!!!!


Roland


PS: Alter your primary boot path after successfull move, too !!!!
Sometimes you lose and sometimes the others win