- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem removing or adding vg01
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
01-16-2004 12:16 PM
01-16-2004 12:16 PM
here are some of the messages.
# lvdisplay /dev/vg01/lvol1
lvdisplay: Couldn't query logical volume "/dev/vg01/lvol1":
Volume group not activated.
lvdisplay: Cannot display logical volume "/dev/vg01/lvol1".
K-380:root /etc
# vgdisplay /dev/vg01
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg01".
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t6d0
/dev/dsk/c2t5d0
/dev/vg01
/dev/dsk/c3t0d0
/dev/dsk/c3t1d0
/dev/dsk/c3t2d0
/dev/dsk/c3t3d0
/dev/dsk/c9t0d0
/dev/dsk/c9t1d0
/dev/dsk/c9t2d0
# vgremove vg01
vgremove: Volume group not activated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:26 PM
01-16-2004 12:26 PM
Re: Problem removing or adding vg01
#vgchange -a y vg01
???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:29 PM
01-16-2004 12:29 PM
Re: Problem removing or adding vg01
vgchange: Couldn't activate volume group "vg01":
I/O error while reading the VGDA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:51 PM
01-16-2004 12:51 PM
Re: Problem removing or adding vg01
any problem issue pvdisplay for the disk in vg01:
#pvdisplay -v /dev/dsk/c3tXd0
#pvdisplay -v /dev/dsk/c9tXd0
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:52 PM
01-16-2004 12:52 PM
Re: Problem removing or adding vg01
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:54 PM
01-16-2004 12:54 PM
Re: Problem removing or adding vg01
another thing, does the volume group, vg01 contain alternate links?
if so, refer to this doc:
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063235797
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 12:59 PM
01-16-2004 12:59 PM
Solution# vgexport -p -v -s -m /etc/lvmconf/vg01mapfile
If that worked ok, try simply exporting and importing:
#vgexport vg01
(If that succeeded)
#vgimport -s -v -m /etc/lvmconf/vg01mapfile
If that doesn't work... try this:
# vgscan -v -p
See if the disks for vg01 match what you're expecting.
If so, I'd try dd'ing from each, to see if all are "OK".
If so, you may have to do a vgcfgrestore on each to get it right.
(Though I'd try moving /etc/lvmtab to /etc/lvmtab.old,
and doing a "vgscan" before I went that route.)
It's also possible you simply have a bad disk/disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2004 11:30 AM
01-18-2004 11:30 AM
Re: Problem removing or adding vg01
# dd if=/dev/rdsk/cXtYdZ of=/dev/null
this should report same record IN=OUT
Now you may try to re-play LVM info on disks by:
# vgcfgrestore -n vg01 /dev/rdsk/cXtYdZ ..
# vgchange -a y vg01
Good luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 04:46 AM
01-20-2004 04:46 AM
Re: Problem removing or adding vg01
here is what I get
# pvdisplay -v /dev/dsk/c3t1d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t0d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t1d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t2d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c3t3d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t0d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t1d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t2d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c9t3d0":
The specified path does not correspond to physical volume attached to
this volume group
pvdisplay: Warning: couldn't query all of the physical volumes.
pvdisplay: Couldn't retrieve the names of the physical volumes
belonging to volume group "/dev/vg01".
pvdisplay: Cannot display physical volume "/dev/dsk/c3t1d0".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 04:53 AM
01-20-2004 04:53 AM
Re: Problem removing or adding vg01
As Bill Hassell pointed out, it sounds like you have a problem with the disk. Try exercising it with the dd command:
dd if=/dev/rdsk/c3t0d0 of=/dev/null bs=1024k
If you get an I/O error, you've got a bad disk.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 04:58 AM
01-20-2004 04:58 AM
Re: Problem removing or adding vg01
Do the following to see these disks are really hosed up.
1. DO a 'vgexport -p -v -s -m /tmp/vg01.map vg01'. (do not forget -p option in the above)
This will put a vgid string in /tmp/vg01.map.
2. On the disks corresponding to vg01 (from strings /etc/lvmtab, do
echo 0x2010?2X|adb /dev/dsk/cxtydz|sed -e 's/2010://' -e 's/[ ]*//g'
[ ] is [
If you get errors, then most likely that your PVs got messed up. You may have to restore the data from your backups.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 05:07 AM
01-20-2004 05:07 AM
Re: Problem removing or adding vg01
This system has a UPS on it, but we recently moved it off site to be used for disaster recovery. The room has limited access, but still someone looked like they stepped on the UPS power chord. I have rebooted serveral times since this has happend, but this is something that keep showing up every 15 or 20 minutes on the syslog
Jan 17 06:03:17 diamk380 syslog: CVSDM; DEVICE ADDED Event Code=198; Description
=Device Added; Hardware Address=1/0/4/0/0.1.0.255.0.0.0;
Jan 17 06:03:30 diamk380 syslog: CVSDM; DEVICE ADDED Event Code=198; Description
=Device Added; Hardware Address=1/0/1/0/0/1/1.6.0;
Jan 17 06:03:43 diamk380 syslog: CVSDM; DEVICE ADDED Event Code=198; Description
=Device Added; Hardware Address=1/0/0/3/0.6.0;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 05:13 AM
01-20-2004 05:13 AM
Re: Problem removing or adding vg01
dd read error: I/O error
0+0 records in
0+0 records out
K-380:root /var/adm/syslog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 05:16 AM
01-20-2004 05:16 AM
Re: Problem removing or adding vg01
disk 12 10/4/4.0.0 disc3 CLAIMED DEVICE SEAGATE ST34371W
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
/dev/floppy/c3t0d0 /dev/rfloppy/c3t0d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 05:27 AM
01-20-2004 05:27 AM
Re: Problem removing or adding vg01
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 06:00 AM
01-20-2004 06:00 AM
Re: Problem removing or adding vg01
# dd if=/dev/rdsk/c3t1d0 of=/dev/null bs=1024k
4095+1 records in
4095+1 records out
K-380:root /etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2004 06:25 AM
01-20-2004 06:25 AM
Re: Problem removing or adding vg01
To get rid of the volume group, you simply do "vgexport vg01". This will take out vg01. It should not give any errors as the volume group is in deactivated state.
You could do a vgcfgrestore after replacing the bad disks. Since you want to destroy the data anyway, I would suggest you go ahead do a vgexport.
You will need to run 'pvcreate -f' on the good disks later whiel configuring them into a new volume group.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2004 08:05 AM
01-21-2004 08:05 AM