- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/lvmconf/vg00.conf corrupted
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 05:01 AM
03-02-2006 05:01 AM
/etc/lvmconf/vg00.conf corrupted
Our backup system gives the following message
cannot stat /etc/lvmconf/vg00.conf: No such device or address
Any command that requires an access on this file failed ( as to add a LV in vg00 for example)
I'm able to create a backup of the volume group configuration file using
vgcfgbackup -f /tmp/vg00.backup vg00
but, how to use it to repair the corrupted one ?
Sorry if my question is trivial, I'm a beginner in the HP-UX world .
Thanks for your help
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 05:06 AM
03-02-2006 05:06 AM
Re: /etc/lvmconf/vg00.conf corrupted
Try "cp /tmp/vg00.backup etc/lvmconf/vg00.conf".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 05:12 AM
03-02-2006 05:12 AM
Re: /etc/lvmconf/vg00.conf corrupted
I got the error message
cp: cannot create vg00.conf: No such device or address
Moreover I can see vg00.conf in /etc/lvmconf using the ls command ( with no argument)
but an ls -l vg00.conf fails with the error message
./vg00.conf not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 05:19 AM
03-02-2006 05:19 AM
Re: /etc/lvmconf/vg00.conf corrupted
# vgcfgbackup -u /dev/vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 05:22 AM
03-02-2006 05:22 AM
Re: /etc/lvmconf/vg00.conf corrupted
"Cannot stat" simply means the file is non-existent or that you do not have the permissions to open it. The error does not infer corruption.
I suspect that your backup isn't running as root. The binary for 'vgcfgbackup' is setuid for root, so it would have the ability to create a new file in '/etc/lvmconf' regardless of the directory permissions.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 06:02 AM
03-02-2006 06:02 AM
Re: /etc/lvmconf/vg00.conf corrupted
mv /etc/lvmconf/vg00.conf /etc/lvmconf/vg00.conf.bad
vgcfgbackup vg00
Retry the backup...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:28 PM
03-02-2006 08:28 PM
Re: /etc/lvmconf/vg00.conf corrupted
Verify directory backup:
# ll -d /etc/lvmconf
drwxr-xr-x 5 root root 13312 Mar 3 03:51 /etc/lvmconf
# mv /etc/lvmconf/vg00.conf /etc/lvmconf/vg00.conf.old
# vgcfgbackup vg00
ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 08:59 PM
03-02-2006 08:59 PM
Re: /etc/lvmconf/vg00.conf corrupted
Shiju : vgcgfbackup -u /dev/vg00 doesn't work
vgcfgbackup: Configuration file "/etc/lvmconf/vg00.conf" not found or is corrupted
James : the command is launched by root ... but it doesn't work
Geof : I can't move the file
mv: vg00.conf: cannot access: No such device or address
rasiasn : the rights on the directory are correct
drwxr-xr-x 2 root root 8192 Mar 2 18:06 /etc/lvmconf
--> yesterday date because I tried a 'vgscan'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 09:00 PM
03-02-2006 09:00 PM
Re: /etc/lvmconf/vg00.conf corrupted
Shiju : vgcgfbackup -u /dev/vg00 doesn't work
vgcfgbackup: Configuration file "/etc/lvmconf/vg00.conf" not found or is corrupted
James : the command is launched by root ... but it doesn't work
Geof : I can't move the file
mv: vg00.conf: cannot access: No such device or address
rasiasn : the rights on the directory are correct
drwxr-xr-x 2 root root 8192 Mar 2 18:06 /etc/lvmconf
--> yesterday date because I tried a 'vgscan'
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 10:27 PM
03-02-2006 10:27 PM
Re: /etc/lvmconf/vg00.conf corrupted
You cant move something that doesnt exist so lets start again, what is in /etc/lvmconf?
Do you see vg00.conf?
Courage!
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 10:42 PM
03-02-2006 10:42 PM
Re: /etc/lvmconf/vg00.conf corrupted
As explained before I can see vg00.conf using the ls command ( with no argument)
ls /etc/lvmconf
lvm_lock vg00.conf vg01.conf vg01.mapfile
vg00.backup vg00.conf.old vg01.conf.old
But using ls -l , I get the following
ls -l /etc/lvmconf
/etc/lvmconf/vg00.conf not found
total 3024
---------- 1 root root 0 Feb 12 2003 lvm_lock
-rw------- 1 root sys 330752 Mar 2 17:56 vg00.backup
-rw-r--r-- 1 root root 1040 Aug 5 2005 vg00.conf.old
-rw------- 1 root sys 1182720 Aug 4 2005 vg01.conf
-rw------- 1 root sys 281 Dec 6 20:00 vg01.conf.old
-rw-rw-rw- 1 root sys 8 Aug 5 2005 vg01.mapfile
Thanks
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 10:55 PM
03-02-2006 10:55 PM
Re: /etc/lvmconf/vg00.conf corrupted
You have a vg00.conf.old...
Try to cp -p vg00.conf.old vg00.conf
This looks very much like a problem of a file deleted while open...
Did it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 11:02 PM
03-02-2006 11:02 PM
Re: /etc/lvmconf/vg00.conf corrupted
(missed it , it is fare more recent...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 11:14 PM
03-02-2006 11:14 PM
Re: /etc/lvmconf/vg00.conf corrupted
If no process is reported, the easiest way out I see is to re-create the lvmconf directory:
mv /etc/lvmconf /etc/lvmconf.old
mkdir /etc/lvmconf
Then do for all your vg's a vgcfgbackup.
By some strange effect your /etc/lvmconf directory is corrupted...
If succesfull, you can try removing /etc/lvmconf.old and its contents.
Good luck,
Elmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 11:26 PM
03-02-2006 11:26 PM
Re: /etc/lvmconf/vg00.conf corrupted
but my problem is that I can't access to vg00.conf.
"mv" , "cp" or "rm" are not possible because for the system the file doesn't exist
It's why I think this file is corrupted.
Would it be possible a link was missing ?
Regards
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 11:31 PM
03-02-2006 11:31 PM
Re: /etc/lvmconf/vg00.conf corrupted
Good luck
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 11:50 PM
03-02-2006 11:50 PM
Re: /etc/lvmconf/vg00.conf corrupted
Like Elmar I would think the easiest thing would be to move or remove the /etc/lvmconf directory and recreate its countent since you seem to only have 2 volume groups so why not give it a try and inform us?
All you need to do is rm -rf /etc/lvmconf or mv /etc/lvmconf /etc/lvmconf.bad
then
vgcfgbackup vg00;
vgcfgbackup vg01
Now all should be fine again (well lets hope...)
Encore un petit effort, courage
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 12:00 AM
03-03-2006 12:00 AM
Re: /etc/lvmconf/vg00.conf corrupted
Elmar, you were right : the solution was to rename the directory /etc/lvmconf in /etc/lvmconf_old
then I have simply recreated a new directory /etc/lvmconf (755 mode) and via 'cp -p' put in it all the files from /etc/lvmconf_old except vg00.conf .
For vg00.conf , I used the backup I got with vgcfgbackup -f /tmp/vg00.backup vg00
All is fine now.
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 12:14 AM
03-03-2006 12:14 AM
Re: /etc/lvmconf/vg00.conf corrupted
All is Ok now
Kind regards
Flo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 01:53 PM
03-05-2006 01:53 PM
Re: /etc/lvmconf/vg00.conf corrupted
My additional concern here would be that there could be some underlying HW problem if you are getting wierd FS behaviour.
I'd suggest a dd of the root drive.
Something like:
dd if=/dev/rdsk/c0t6d0 of=/dev/null bs=64k
You're device may be something different than c0t6d0.
If you see I/O error returned then you have a hardware issue.
Best regards,
Oz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 11:31 PM
03-05-2006 11:31 PM
Re: /etc/lvmconf/vg00.conf corrupted
I've cheched and I have no I/O error.
Best regards
Flo