- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Lost VG(s)
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
07-14-2003 05:35 AM
07-14-2003 05:35 AM
Is there any way to restore the configuration and to find out what happend? Also after reboot I received only one EMS message, usualy I have 6-7 of them.
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:37 AM
07-14-2003 05:37 AM
Re: Lost VG(s)
Try running vgscan. First rename /etc/lvmtab "mv /etc/lvmtab /etc/lvmtab.old", then run "vgscan -a" and see what you get.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:39 AM
07-14-2003 05:39 AM
Re: Lost VG(s)
Maybe someone has changed the /etc/lvmrc from
AUTOVG_ACTIVATE from 1 to 0.
Check also that !
If that does not help, follow SEP suggestions..
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:41 AM
07-14-2003 05:41 AM
Re: Lost VG(s)
That's twice now. I'm not SEP! SEP is Steven Protter. I'm Pete Randall.
;^)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:42 AM
07-14-2003 05:42 AM
Re: Lost VG(s)
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:43 AM
07-14-2003 05:43 AM
Re: Lost VG(s)
Creating "/etc/lvmtab".
Couldn't stat physical volume "/dev/dsk/c3t2d0":
Invalid argument
Physical Volume "/dev/dsk/c4t0d0" contains no LVM information
Physical Volume "/dev/dsk/c5t0d0" contains no LVM information
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c2t2d0
/dev/dsk/c4t1d0
/dev/dsk/c5t1d0
Following Physical Volumes belong to one Volume Group.
Unable to match these Physical Volumes to a Volume Group.
Use the vgimport command to complete the process.
/dev/dsk/c4t9d0
/dev/dsk/c5t9d0
*** LVMTAB has been created successfully.
*** If PV links are configured in the system.
*** Do the following to resync information on disk.
*** #1. vgchange -a y
*** #2. lvlnboot -R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:45 AM
07-14-2003 05:45 AM
Re: Lost VG(s)
I know the difference between you two, but I made a very fast read of the answer, and i was thinking of some other possibility.
When writing, i only remember that there "e" in the name and wrote SEP...
PETE !!!! Other public apologies..
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:45 AM
07-14-2003 05:45 AM
Re: Lost VG(s)
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:49 AM
07-14-2003 05:49 AM
Re: Lost VG(s)
i'm a little worried of this behaviour.
Even if you are able to rebuild your lvm config, following MIGHTY PETE hints [I owe him some :) ], i'm asking what has happened.
Is there anything strange in the syslog, like "device found" or "installing special files for..." entry ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:49 AM
07-14-2003 05:49 AM
Re: Lost VG(s)
Do you have any information regarding which disks belong to which volume group ?
If yes, the you can use the vgimport command.
If not then you need to create the vg first and then vgimport the disks.
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:55 AM
07-14-2003 05:55 AM
Re: Lost VG(s)
No problem - don't worry about it!
Olga,
Any errors during startup? Check dmesg, /etc/rc.log, /var/adm/syslog/syslog.log.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 05:55 AM
07-14-2003 05:55 AM
Re: Lost VG(s)
first I would not worry about EMS taking a while to send the restart mail.
However, if it took considerable longer than usual, you might have a HW problem somewhere.
Can you verify that you see all the disks you have in ioscan (plus all alternate links)?
(ioscan -fnCdisk)?
If you have them all, it may be a SAM problem showing alternate paths as "unused"
Do you have a documentation about which disks belong to which VG (strings /etc/lvmtab)?
Do you have all the device files of the (not activated) VGs (ll /dev/vg*/group; ll /dev/vg*/*)
Supposing everything looks OK just try to vgchange -a y vgXY, and issue mountall to see whether the LVM information on the disks is OK.
If, however, SAM is right, then you may have to use vgcfgrestore to write the LVM headers from /etc/lvmconf/vg*.conf back to the disks (if you know which belongs to which).
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:00 AM
07-14-2003 06:00 AM
Re: Lost VG(s)
It appears that your volume group device files may have disappeared. Do:
'ls -l /dev/vg*'
...to see if you are missing the volume group that you had before. If so, recreate the device file and 'vgimport'. I presume that you have paper documentation of your server's configuration. If not, look at your last Ignite manifest:
/var/opt/ignite/recovery/latest/manifest
The above is generated automatically every time you perform an Ignite 'make_tape_recovery'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:01 AM
07-14-2003 06:01 AM
Re: Lost VG(s)
it took me so long to write the message...
I need to catch up with what has happened.
So you have a new /etc/lvmtab, hope you kept the old one around, pls do
# strings /etc/lvmtab.old
(or however you called it)
# ll /dev/vg*/group
# cat /etc/fstab
and let us know the results.
(I take it this is NOT a Cluster Node)
Regards,
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:40 AM
07-14-2003 06:40 AM
Re: Lost VG(s)
ll /dev/vg*/group
two VG are missing here vg02 and vg04
crw-r----- 1 root sys 64 0x000000 Oct 22 2001 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x030000 Feb 7 2002 /dev/vg03/group
crw-r--r-- 1 root sys 64 0x050000 Oct 3 2002 /dev/vg05/group
strings /etc/lvmtab.old
/dev/vg00
/dev/dsk/c1t2d0
/dev/dsk/c1t0d0
/dev/dsk/c2t0d0
/dev/vg01
/dev/dsk/c5t0d0
/dev/vg02
/dev/dsk/c5t1d0
/dev/dsk/c2t2d0
/dev/vg04
/dev/dsk/c5t9d0
/dev/vg03
/dev/dsk/c4t8d0
/dev/dsk/c5t8d0
/dev/dsk/c4t2d0
/dev/dsk/c5t2d0
/dev/vg05
/dev/dsk/c4t10d0
/dev/dsk/c5t10d0
Here I have the location of the VG02 and VG04
So based on this can I run vgimport?
If I do /usr/sbin/vgimport -v -m /etc/lvmconf/vg04.mapfile /dev/vg04
Beginning the import process on Volume Group "/dev/vg04".
vgimport: "/dev/vg04/group": not a character device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:44 AM
07-14-2003 06:44 AM
Re: Lost VG(s)
you must recreate the special files for
vg02 and vg04
mknod /dev/vg02/group c 64 0xNN0000
mknod /dev/vg04/group c 64 0xNN0000
where NN are your free minor numbers.
and then repeat the vgimport
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:44 AM
07-14-2003 06:44 AM
Re: Lost VG(s)
First you need to rebuild the device files thusly:
mkdir /dev/vg04
mknot /dev/vg04/group c 64 0x040000
(repeat for the other missing VGs)
Then run the vgimport.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:49 AM
07-14-2003 06:49 AM
Re: Lost VG(s)
vgcfgrestore -n /dev/vg04 /dev/rdsk/c5t9d0
c5t9d0 I got from strings /etc/lvmtab.old
Will it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:49 AM
07-14-2003 06:49 AM
Re: Lost VG(s)
vgcfgrestore -n /dev/vg04 /dev/rdsk/c5t9d0
c5t9d0 I got from strings /etc/lvmtab.old
Will it work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 06:56 AM
07-14-2003 06:56 AM
Re: Lost VG(s)
First recreate the volumegroup-file. You'll need them!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 07:05 AM
07-14-2003 07:05 AM
Re: Lost VG(s)
After creating the VG04 you can do :
vgcfgrestore -n /dev/vg04 /dev/rdsk/c5t9d0
vgchange -a y /dev/vg04
But since the vg04 information is not there, vgcfgrestore may/may not work.
Use the vgimport command instead.
vgimport /dev/vg04 /dev/rdsk/c5t9d0
vgchange -a y /dev/vg04
Then you can mount the filesystems.
HTH,
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 07:10 AM
07-14-2003 07:10 AM
Re: Lost VG(s)
mknod /dev/vg04/group c 64 0x040000
mknod /dev/vg02/group c 64 0x020000
ll /dev/vg*/group
crw-r----- 1 root sys 64 0x000000 Oct 22 2001 /dev/vg00/group
crw-r--r-- 1 root sys 64 0x020000 Jul 14 10:57 /dev/vg02/group
crw-r--r-- 1 root sys 64 0x030000 Feb 7 2002 /dev/vg03/group
crw-r--r-- 1 root sys 64 0x040000 Jul 14 10:55 /dev/vg04/group
crw-r--r-- 1 root sys 64 0x050000 Oct 3 2002 /dev/vg05/group
/usr/sbin/vgimport -v -m /etc/lvmconf/vg04.mapfile /dev/vg04
Beginning the import process on Volume Group "/dev/vg04".
vgimport: Unable to read the physical volume
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 07:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 07:15 AM
07-14-2003 07:15 AM
Re: Lost VG(s)
You need to specify the device files during the 'vgimport':
# /usr/sbin/vgimport -v -m /etc/lvmconf/vg04.mapfile /dev/vg04 /dev/dsk/c5t9d0
...based on your post of your old '/etc/lvmtab'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2003 07:16 AM
07-14-2003 07:16 AM
Re: Lost VG(s)
I think there is still a problem with the disks. The LVM-info on these PV's are not correct. Use the vgcfgrestore.