- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- LVM structures inconsistancy?
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
12-06-2001 03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:26 AM
12-06-2001 03:26 AM
Re: LVM structures inconsistancy?
first i wanted to tell you that in the fstab i can see that you are an entry for /var and /usr with the same volgical volume - are this a mistake ?
second , it seem to me like you that the system doesnt know how to boot peroply .
here is a good action plan that i made for another cu that had similar to what you have :
ACTION:
1. Boot in the Maintainance Mode (hpux -lm)
2. make a "vgexport -m
3. mkdir /dev/vg00
4. mknod /dev/vg00/group c 64 0x000000
5. vgimport -m
6. shutdown -r 0 -y
and do the following:
lvlnboot -b /dev/vg00/lvol1
lvlnboot -r /dev/vg00/lvol3
lvlnboot -d /dev/vg00/lvol2
lvlnboot -s /dev/vg00/lvol2
and tell me feedback
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:45 AM
12-06-2001 03:45 AM
Re: LVM structures inconsistancy?
the repeat in fstab was a typo , the bain of copy paste.
as far as:
>3. mkdir /dev/vg00
>4. mknod /dev/vg00/group c 64 0x000000
is concerned, those entried already exist in /dev... what should i do about them?
OR If I am correct, the vgexport takes them out from /dev?
I'll try this out when i get back to work later this afternoon. I just came home after toiling with it all night.
tx for the reply.
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 04:06 AM
12-06-2001 04:06 AM
Re: LVM structures inconsistancy?
if you did a vgexport like i said it will delete the /dev/vg00 dir.
dont delete it with a command but you the command vgexport with a map file .
vgexport -m vg00.map /dev/vg00
check to see that he is deleting the dir .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 12:04 PM
12-06-2001 12:04 PM
Re: LVM structures inconsistancy?
thanks,
-Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 12:18 PM
12-06-2001 12:18 PM
Re: LVM structures inconsistancy?
Look at /etc/lvmconf directory and note the time stamps of vg00.conf and vg00.conf.old. If they are not with the recent time stamps, you can use them to restore the configuration.
#vgcfgrestore -f /etc/lvmconf/vg00.conf /dev/dsk/c0t6d0
#vgchange -a y
And see if this works,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 12:51 PM
12-06-2001 12:51 PM
Re: LVM structures inconsistancy?
Try this,
boot into lvm maintainance mode. Do a vgchange for vg00,
vgchange -a y /dev/vg00
now do a fsck for all the LV's and see if you can mount them. If you are able to do so, just reboot the system and see if it boots.
You don't have to do any vgexport and vgimport if this works.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 01:42 PM
12-06-2001 01:42 PM
Re: LVM structures inconsistancy?
The old lvmconf are TOO OLD ( 4 yrs) ... Which makes me wonder if they are any good. Since I have been working here for only 2 months I have no clue when this machine was setup. Do you think I should still try that?
Sanjay:
I had tried to do vgchange before and it failed. The output is:
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t6d0":
Cross-device link
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c0t5d0":
The path of the physical volume refers to a device that does not exist or is not configured into the kernel.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c0t6d0":
The specified path does not correspond to physical volume attached to this volume group.
vgchange: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to this volume group.
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "/dev/vg00":
Quorum not present or some physical volumes are missing.
using vgchange -a y -q n /dev/vg00 gives the same output.
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 01:58 PM
12-06-2001 01:58 PM
Re: LVM structures inconsistancy?
I doubt you are in a position to recover anything. Your best bet would be to start fresh. Load fresh OS on the disk. I might be wrong. Wait for some more help from other forum users. I personally would have started a fresh install, as you already have a backup which is 5 minutes old before your system went down.
Hope this helps.
Regds
P.S : Keep your fingers crossed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:03 PM
12-06-2001 02:03 PM
SolutionIs this system been up and running since four years and no maintenance has been done so far?. I think there shouldn't be any problem in doing a vgcfgrestore with those files.
Otherwise, you can do the thing suggested by eran
#vgexport -m /tmp/vg00.map vg00
#mkdir vg00
#mknod /dev/vg00/group c 64 0x000000
#vgimport -m /tmp/vg00.map vg00 /dev/dsk/c0t6d0
#vgchange -a y vg00
See if you can be able to mount the file systems.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:27 PM
12-06-2001 02:27 PM
Re: LVM structures inconsistancy?
I've already considered the idea of starting afresh. Makes a whole lot of sense. _However_ the sys admin informs me that he has no clude where the HP-UX install media is and also that HP won't supply new install media without a new contract. So basically, If i get this running fine and good. We'll take steps that this does not happen again (mirroring, regular backups etc) but if this does not work... i'm sure the managers out here are onna have a long meeting! :)
Sri:
I taked to the sysadmin here and he says that as far as he knows the lvm config backup should be fine.
But before I do this, should I not backup the existing config ?
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:34 PM
12-06-2001 02:34 PM
Re: LVM structures inconsistancy?
Make sure that an 'ioscan -fnC disk' shows all your hardware as "CLAIMED".
Then, try recreating /etc/lvmtab from scratch:
# mv /etc/lvmtab /etc/lvmtab.old
# vgscan -v
If I read your post correclty, you have done a 'vgscan' but only with the existing lvmtab present. When the current file is present it is used to help construct the new one -- something that I think we may not want to do.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:38 PM
12-06-2001 02:38 PM
Re: LVM structures inconsistancy?
You can think of creating a ignite make_recovery tape from another server and use that to restore the OS on this server. Is that a viable option. Do you have another server with the same version of OS and similar hardware considerations.
I don't think the old LVM backup is of any use in this sort of situation.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:41 PM
12-06-2001 02:41 PM
Re: LVM structures inconsistancy?
Is there any reason why you are skipping me giving some points while the others are fortunate enough?.
Today it sucks here.....
See you all for the day.. No more wastage of time..
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:44 PM
12-06-2001 02:44 PM
Re: LVM structures inconsistancy?
Bye,
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:47 PM
12-06-2001 02:47 PM
Re: LVM structures inconsistancy?
I can't go for a fresh install! there is no install media to install it from! :) I am going to try out your solution first and then erans.
rgds,
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:49 PM
12-06-2001 02:49 PM
Re: LVM structures inconsistancy?
and about the points, the reason i skipped was because i thought your approach was the closest to a possible recovery, I was saving them for a 10 :)
have a good evening
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:54 PM
12-06-2001 02:54 PM
Re: LVM structures inconsistancy?
I tried:
vgcfgrestore -f /etc/lvmconf/vg00.conf /dev/dsk/c0t6d0
no luck. output is as below:
Configuration info for Physical Volume 'dev/dsk/c0t6d0' not found in vg00.conf :
Charecter-special file for PV not supplied on command line, OR PV did not belong to Volume Group /dev/vg00 when configuration file was created.
oh well... next option Erans way i guess...
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 02:58 PM
12-06-2001 02:58 PM
Re: LVM structures inconsistancy?
I had tried moving the lvmtab to lvmtab.old and then running vgscan -v as well... Didn't work either. If you care, I'll redo it to give you the command output.
tx,
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:07 PM
12-06-2001 03:07 PM
Re: LVM structures inconsistancy?
It was a mistake in my earlier message. You need to use char device file. User /dev/rdsk/c0t6d0 instead of /dev/dsk/c0t6d0.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:14 PM
12-06-2001 03:14 PM
Re: LVM structures inconsistancy?
This is getting wierder than i thought. I was thinking that the vgcfgrestore ought to work. But here is what i got:
vgcfgrestore -f /dev/vg00 /dev/rdsk/c0t6d0
Volume Group configuration has been restored to /dev/rdsk/c0t6d0
And then vgchange -a y gave the same output as before.
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:22 PM
12-06-2001 03:22 PM
Re: LVM structures inconsistancy?
What does your "strings /etc/lvmtab" say?. Does it have c0t5d0 and you don't have this disk at all?.
did you try multiple vgchange -a y and see what happened?.
As this has the configuration restored, you can actually try what JRF mentioned.
#mv /etc/lvmtab /etc/lvmtab.old
#vgscan -v
and see.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:24 PM
12-06-2001 03:24 PM
Re: LVM structures inconsistancy?
strings is in /usr/bin and /usr is not mounted :( . Is there an alternative to using strings?
and i'll try to rescan the lvmtab again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:30 PM
12-06-2001 03:30 PM
Re: LVM structures inconsistancy?
Creating "/etc/lvmtab".
vgscan: Couldn't access the list of physical volumes for volume group "/dev/vg00".
Following physical volumes belong to the volume group.
Unable to match these physical volumes to a volume group.
use the vgimport command to complete the process.
/dev/dsk/c0t6d0
The volume group /dev/vg00/group was not matched with any physical volumes.
Scan of physical volumes complete.
i'm clueless.
-mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2001 03:38 PM
12-06-2001 03:38 PM
Re: LVM structures inconsistancy?
-mark