Operating System - HP-UX
1748181 Members
3914 Online
108759 Solutions
New Discussion юеВ

Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

 
SOLVED
Go to solution
Leon Allen
Regular Advisor

Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

I am removing a disk.

I thought I did everything right.
-unmounted it
-deactivated /dev/vg04
-vgexport /dev/vg04 (...OR DID I?????)

Not sure 'bout that last step.

Anyway, system rebooted OK. Now, (weeks later) doing an ignite, Ignite complains like:
"ERROR: Cannot stat device file: /dev/vg04/lvol1: No such file or directory
(errno = 2). Check /etc/fstab for a bad entry."

When I do -->cat /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg01/lvol1 /u02 vxfs delaylog 0 2
/dev/vg03/lvol1 /s04 vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2
/dev/vg03/lvol2 /s05 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg02/lvol1 /s01 vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg04/lvol1 /s06 vxfs rw,suid,largefiles,delaylog,datainlog 0 2

There it is - the disk I have physically (and, I thought, logically) removed (see last entry in fstab)

And so I struggle on....
-->vgchange -a n /dev/vg04
vgchange: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file.

-->vgexport /dev/vg04
vgexport: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "/dev/vg04".

How Do I get rid of this one (/dev/vg04)? I just want to blow it away. How did I end up in this state?
Can I just take to fstab with vi and delete that entry??

Cheers!

Leon




Time's fun when your having flys (ancient frog saying)
7 REPLIES 7
Patrick Wallek
Honored Contributor
Solution

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

Yes you can just delete the line from the /etc/fstab file.

All the commands you did previously are correct to get rid of a VG. However, none of those commands will do anything to the /etc/fstab file. That file must be modified manually.
Leon Allen
Regular Advisor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

Thanks so much Patrick for your prompt reply!

I'll delete it and let you know how things go.

Cheers!

Leon
Time's fun when your having flys (ancient frog saying)
Devesh Pant_1
Esteemed Contributor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

Leon,

also if you have the /dev/vg04 directory, you may want to remove the directory as well.

thanks
DP
Leon Allen
Regular Advisor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

Thanks to DP as well - I'll check that that entry does not exist.
Time's fun when your having flys (ancient frog saying)
morganelan
Trusted Contributor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

You must vi /etc/fstab and remove this /dev/vg04/lvol1 /s06 vxfs rw,suid,largefiles,delaylog,datainlog 0 2 from this file.But if you do remove filw system through sam, it can remove this file system information from /etc/fstab as well.
Kamal Mirdad
Leon Allen
Regular Advisor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

fstab fixed vis mount -p > /etc/fstab

Now looks like

-->cat /etc/fstab
/dev/vg00/lvol3 / vxfs log 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 0
/dev/vg00/lvol8 /var vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol7 /usr vxfs delaylog,nodatainlog 0 0
/dev/vg01/lvol1 /u02 vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol4 /tmp vxfs delaylog,nodatainlog 0 0
/dev/vg03/lvol2 /s05 vxfs delaylog,nodatainlog 0 0
/dev/vg03/lvol1 /s04 vxfs delaylog,nodatainlog 0 0
/dev/vg02/lvol1 /s01 vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol6 /opt vxfs delaylog,nodatainlog 0 0
/dev/vg00/lvol5 /home vxfs delaylog,nodatainlog 0 0
cis4:/var/opt/ignite/clients /var/opt/ignite/recovery/client_mnt nfs defaults,NFSv3 0 0
root@cis2 in /var/opt/ignite/recovery/client_mnt/0x001083FE346B/recovery/2005-08-18,10:23
-->
Just a little different (eg no "largefiles" arguement.

Is that OK? Should I make it exactly like before (minus the disk)?
Time's fun when your having flys (ancient frog saying)
Leon Allen
Regular Advisor

Re: Volume group "/dev/vg04" does not exist in the "/etc/lvmtab" file

OK - looking good. Thanks all.

Can confirm there is (was) no vg04 in /dev (vg03, 02 01 etc all there)
Time's fun when your having flys (ancient frog saying)