Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

lost LUN config on AIX 5.2

4 views
Skip to first unread message

GoldWing

unread,
Nov 18, 2008, 9:19:04 AM11/18/08
to
Big problems


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.

Nicholas Buckley

unread,
Nov 18, 2008, 12:12:33 PM11/18/08
to
Hi,

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...

GoldWing

unread,
Nov 19, 2008, 5:22:33 AM11/19/08
to
On Nov 18, 6:12 pm, "Nicholas Buckley" <nick_buck...@ntlworld.com>
wrote:

> Hi,
>
> 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
>

Ok thanks, this saved my life (and my colleague's job).

Help is appreciated.


G.

Nicholas Buckley

unread,
Nov 19, 2008, 5:06:24 PM11/19/08
to
No problem.

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...

0 new messages