Operating System - HP-UX
1834447 Members
2411 Online
110067 Solutions
New Discussion

Re: device names changed - how do I change lvmtabs

 
TMcB
Super Advisor

device names changed - how do I change lvmtabs

Hi everyone.
Doing some work on the san, and our disks were unpresented.

They have now been re-presented again, and I have run ioscan.
The problem is some of the disks are now seen as different device files.

in /etc/lvmtab :
/dev/vggsm
/dev/dsk/c20t0d1

However, when I check the WWPN number, the disk should now be /dev/dsk/c20t0d0

How do I associated the vgs with the correct device?

Thanks
2 REPLIES 2
Anka
Trusted Contributor

Re: device names changed - how do I change lvmtabs

How have you checked the WWPN number?
What OS Version?

generally you can try moving the lvmtab and recreating new one:

#mv /etc/lvmtab /etc/lvmtab
#vgscan -va
then check to see what entries were created:
#strings /etc/lvmtab

if it does not help (i think it will not help but you can try) mo ve back the old lvmtab

#mv /etc/lvmtab /etc/lvmtab

then reimport the VG:

#vgexport -v -s -m /tmp/vg??.map /dev/vg??
#mkdir /dev/vg??
#mknod /dev/vg??/group c 64 0x??0000
#vgimport -v -s -m /tmp/vg??.map /dev/vg??

and it is a good idea first to save the "#ll dev/vg??/" output in order to have the major numbers and so on....
TMcB
Super Advisor

Re: device names changed - how do I change lvmtabs

Hi Anka

I was getting the WWPN numbers using Secure Path manager (spmgr display)

I'll run your commands know and let you know what happens

Thanks very much