After a reboot, I lost the names of my luns.
the hdiskpower* disks all have other numbers now.
How can I recover my VG's that are on there ?
Thanks.
Make a list of your Power devices ( lspv | grep hdiskpower ) - print it out
!
Import a VG from any disk you like ( importvg -y mytestvg hdiskpowerx )
Once it imports:
lsvg -l mytestvg - confirm LVs / filesystems therein ( should tell you which
VG you're looking at from which you should be able to work out the original
VG name. This does however assume you've either got the names documented
somewhere, or you use a "meaningful" naming convention to help you at times
like this ! )
lsvg -p mytestvg - tick off the participating power devices on your list.
varyoffvg mytestvg
importvg -y the_name_you_really_want_for_your_VG hdiskpowerx
... repeat the process until all your power devices are ticked off on your
list.
Bingo, all youir original VGs are back where they belong.
Not especially elegant, but reliable.
Remember that your data is safe and that includes the VGDA where the VG
information is held.
Also don't forget that the power device names may be different, but that has
no bearing on the contents of the VG.
Cheers,
Nick,
UK
"GoldWing" <oli...@gmail.com> wrote in message
news:99549fd7-8d6d-4b9f...@k24g2000pri.googlegroups.com...
Ok thanks, this saved my life (and my colleague's job).
Help is appreciated.
G.
I forgot to mention that, after you "varyoffvg mytestvg", you need to
"exportvg mytestvg" before you can "importvg -y the_name ... etc "
Cheers,
Nick
"GoldWing" <oli...@gmail.com> wrote in message
news:fc081d76-a31d-419b...@k24g2000pri.googlegroups.com...