- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Issue with LVM Disk and Help in Creating Disk
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
07-30-2008 08:33 AM
07-30-2008 08:33 AM
ioscan:
I have a HP-UX 9000, class RP5430.
the following scan is for a DS2100 external disk enclosure that has 3 harddrive in place.
0/3/0/0.0.0
sdisk claimed device seagate ST318404LC
/dev/dsk/c7t0d0
/dev/rdsk/c7t0d0
0/3/0/0.2.0
sdisk claimed device HP 18.2GST318406LC
/dev/dsk/c7t2d0
/dev/rdsk/c7t2d0
0/3/0/0.4.0
sdisk claimed device HP 18.2GST318406LC
/dev/dsk/c7t4d0
/dev/rdsk/c7t4d0
I had a disk go bad or a configuration error but I was using c7t0d0. However that disk got replaced and I want to use c7t0d0.
When I go into SAM in Disk Devices, it shows all 3 "unused".
Here is what I am trying to do. Begin to use all 3 disk. Each of the disk is 18.2 gig so I would like to have a volume group of 54.6 gig and possibly add more at a later date.
Here is the problem that I am running into:
when I do the following, i get the this error:
# pvdisplay /dev/dsk/c7t0d0
pvdisplay: Warning: couldn't query physical volume "/dev/dsk/c7t0d0": This 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/test"
pvdisplay: cannot display physical volume "/dev/dsk/c7t0d0"
#vgdisplay /dev/test
vgdisplay: volume group not activated
vgdisplay: cannot display volume group "/dev/test"
#lvdisplay /dev/test/lvol1
lvdisplay: couldn't query logical volume "/dev/test/lvol1"
volume group not activated.
How do I go about resolving this error??
Also if you can provide me with a step by step instruction on how to start using the 3 disk. I know the steps involved but would like to confirm it with you guys. Thank you for your help in this matter.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 08:40 AM
07-30-2008 08:40 AM
Re: Issue with LVM Disk and Help in Creating Disk
> vgdisplay /dev/test
> vgdisplay: volume group not activated
This means that the volume group is not active, so do:
# vgchange -a y /dev/test
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 08:45 AM
07-30-2008 08:45 AM
Re: Issue with LVM Disk and Help in Creating Disk
# vgchange -a y /dev/test
vgchange: warning: couldn't attach to the volume group physical volume "/dev/dsk/c7t0d0":
Cross device link
vgchange: warning: couldn't query physical volume "/dev/dsk/c7t0d0":
the specified path does not correspond to physical volume attached to this volume group
vgchange: warning: couldn't query all of the physical volume.
vgchange: couldn't activate volume group "/dev/test"
Quorum not present, or some physical volume(s) are missing.
Thank you for the quick response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 09:10 AM
07-30-2008 09:10 AM
SolutionFirstly though, do a strings /etc/lvmatb and verify what disks are in vg named test
If all three disks are listed, you can use vgcfgrestore to recreate the headers from the backupfile
man vgcfgrestore.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 09:17 AM
07-30-2008 09:17 AM
Re: Issue with LVM Disk and Help in Creating Disk
i get the following:
# strings /etc/lvmtab
/dev/vg01
/dev/dsk/c1t0d0
/dev/dsk/c2t0d0
/dev/dsk/c2t2d0
/dev/vg00
/dev/dsk/c1t2d0
/dev/test
/dev/dsk/c7t0d0
This is what is in my fstab file:
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs delaylog 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/data /data vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/test/lvol1 /test vxfs rw,suid,largefiles,delaylog,datainlog 0 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 09:52 AM
07-30-2008 09:52 AM
Re: Issue with LVM Disk and Help in Creating Disk
# vgcfgrestore -n vgtest /dev/rdsk/c7t0d0
will restore the config.
# vgchange -a y vgtest
will activate the VG.
# vgdisplay -v vgtest
Now you need to do a "newfs" to the LVOLs (if there are any) to make them useable.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 09:56 AM
07-30-2008 09:56 AM
Re: Issue with LVM Disk and Help in Creating Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 09:59 AM
07-30-2008 09:59 AM
Re: Issue with LVM Disk and Help in Creating Disk
man vgexport
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:09 AM
07-30-2008 10:09 AM
Re: Issue with LVM Disk and Help in Creating Disk
# vgexport -v -f backup /dev/test
after I do that, I can start with
1. creating a PV (pvcreate)
2. vgcreate
3. lvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:10 AM
07-30-2008 10:10 AM
Re: Issue with LVM Disk and Help in Creating Disk
Remove old drive, insert new one.
ioscan
ioscan -kfnC disk ( look for your c7t0d0 disk as claimed)
vgcfgrestore -l -n /dev/vgtest ( this lists what devices the vgtest thinks it has)
vgcfgrestore -n /dev/vgtest /dev/rdsk/c7t0d0
vgchange -a y /dev/vgtest
vgdisplay -v /dev/vgtest
( In this case because you only had one drive and it is replaced, data is gone so.. )
newfs /dev/vgtest/rlvol1
mount /test-filesystem
or just start over
vgexport /dev/vgtest
pvcreate /dev/rdsk/c7t0d0
mkdir /dev/vgtest
mknod /dev/vgtest/group c 64 0x0Y0000 (pick a unique minor number for Y )
vgcreate /dev/vgtest /dev/dsk/c7t0d0
lvcreate -L SIZE_MB -n NAME /dev/vgtest
newfs /dev/vgtest/rNAME
edit /etc/fstab
mount /new_test_filesstem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:28 AM
07-30-2008 10:28 AM
Re: Issue with LVM Disk and Help in Creating Disk
I did the vgexport and was successful.
If I wanted to use all 3 disk combined together. I would do the following: correct me if any.
# pvcreate /dev/rdsk/c7t0d0
# pvcreate /dev/rdsk/c7t2d0
# pvcreate /dev/rdsk/c7t4d0
# mkdir /dev/vgtest
# mknod /dev/vgtest/group c 64 0x020000
the vgcreate is the one that I am confused about. There are multiple PV.
Can you provide me with the rest of the command to utilize the full extent of the 3 disk. Thank you so much for everyone's help.
I do have the HP-UX CSA desk reference but would like to get your input.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:33 AM
07-30-2008 10:33 AM
Re: Issue with LVM Disk and Help in Creating Disk
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:34 AM
07-30-2008 10:34 AM
Re: Issue with LVM Disk and Help in Creating Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:37 AM
07-30-2008 10:37 AM
Re: Issue with LVM Disk and Help in Creating Disk
Depending on your hp-ux version you can either stripe **or** mirror the data.
Still the question is - would you like to add a larger disk in future?
BTW, are you running 11.11?
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:38 AM
07-30-2008 10:38 AM
Re: Issue with LVM Disk and Help in Creating Disk
# vgcreate /dev/vgtest /dev/dsk/c7t0d0 /dev/dsk/c7t2d0 /dev/dsk/c7t4d0
...will create a volume group (with defaults) containing the three physical disk provided as the arguments. The manpages for 'vgcreate' are your friend.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:47 AM
07-30-2008 10:47 AM
Re: Issue with LVM Disk and Help in Creating Disk
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 10:48 AM
07-30-2008 10:48 AM
Re: Issue with LVM Disk and Help in Creating Disk
Depending on your hp-ux version you can either stripe **or** mirror the data.
Still the question is - would you like to add a larger disk in future?
BTW, are you running 11.11?
Well in the near future, I will be purchasing another DS that will have 4 drive in it so that I can mirror all the drives. Right now, there is not enough disk to mirror .
Currently there are 7 disk.
4 are internal disk having 18.2 gig each.
c1t0d0, c1t2d0, c2t0d0, c2t2d0.
/dev/vg01
/dev/dsk/c1t0d0
/dev/dsk/c2t0d0
/dev/dsk/c2t2d0
/dev/vg00
/dev/dsk/c1t2d0
those contain the boot and a majority of it is being used for storage of an application. I was going to use the DS2100 that I am configuring now to mirror those drive but I want to use it as an test environment.
On 2nd thought, I only really need to use one of the drive for this test environment. I don't need it to be mirrored as it is a test environment. Can I use the other 2 drive to mirror 2 of the internal drive? how do i go about doing that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2008 11:57 AM
07-30-2008 11:57 AM
Re: Issue with LVM Disk and Help in Creating Disk
Regarding "...Can I use the other 2 drive to mirror 2 of the internal drive? how do i go about doing that. ..."
You can do either. But there are some rules to follow when you mirror. You should use different controllers.
c0t0d0
c1t0d0
Here c0 and c1 are controllers. If you use c0 and c0 then you have a single point of failure (* SPOF *).
The targets should be the same. Although this may no longer be necessary in disk arrays, for SCSI JBODS its a must due to write scheduling priorities.
c0t0d0 and c1t0d0
not
c0t1do and c1t3do
Here t0, t1 and t3 are targets. The first example (* c0t0d0 and c1t0d0 *) are fine, the second is not.
Always use strict allocation policy. This is the default. This keeps you from mirroring extents back onto the primary. Like in your example of three disks. Eventually you will not be able to mirror additional logical volumes because of the strict allocation policy. In short, you want alternates to be identical to primaries (* mirrors *) and a three disk vg breaks this rule. One disk will not be mirrored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 08:34 AM
07-31-2008 08:34 AM
Re: Issue with LVM Disk and Help in Creating Disk
Right now on the ds2100 there are 4 slots. 3 of which is being used by 18.2 gig drives. If I get a 72 gb drive for the 4th slot. Can I use that 72 gb to mirror the 4 internal drive?
Here is my configuration:
HP9000 (internal drives):
c1t0d0
c1t2d0
c2t0do
c2t2d0
DS2100:
c7t0d0
c7t2d0
c7t4d0
Here is the VG and LV for HP9000:
c1t0d0, c2t0d0, c2t2d0 = vg01
with only one LV name of "storage"
storage - /storage - 52080 MB
c1t2d0 = vg00
with 8 LV.
vol1 - /stand - 300 MB
vol2 - /swap - 3072 MB
vol3 - / - 200 MB
vol4 - /tmp - 200 MB
vol5 - /home - 20 MB
vol6 - /opt - 664 MB
vol7 - /usr - 1104 MB
vol8 - /var - 3572 MB
So total of 9132 MB of c1t2d0.
What is your recommendation?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 09:36 AM
07-31-2008 09:36 AM
Re: Issue with LVM Disk and Help in Creating Disk
You also run into another rule. Any vg with a 73 GB disk will have to be the first disk added into the vg. If you add a 18 GB disk in first, and then vgextend in the 73 GB disk, then you'll only see the first 18 GB on this 73 GB disk.
Its worth a try but I think you'll end up with 2 complete mirrors and a 3rd mirror missing the last lvol.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 09:45 AM
07-31-2008 09:45 AM
Re: Issue with LVM Disk and Help in Creating Disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 09:52 AM
07-31-2008 09:52 AM
Re: Issue with LVM Disk and Help in Creating Disk
0/3/0/0.6.0
c7t6d0
When go to create the volume group, i would do the following:
#vgcreate /dev/vgtest /dev/dsk/c7t6d0
After doing that, I can use the 72 gig (c7t6d0) to mirror the 4 drive (c1t0d0, c1t2d0, c2t0d0, c2t2d0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 10:45 AM
07-31-2008 10:45 AM
Re: Issue with LVM Disk and Help in Creating Disk
#vgcreate -s 4 -e 20000 /dev/vgtest ...
you can create the VG now and add the larger disk later.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 02:12 PM
07-31-2008 02:12 PM
Re: Issue with LVM Disk and Help in Creating Disk
# pvcreate /dev/rdsk/c7t2d0
pvcreate: the physical volume already belongs to a volume group
I looked at the volume group and do not see anything using the PV c7t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2008 11:08 PM
07-31-2008 11:08 PM
Re: Issue with LVM Disk and Help in Creating Disk
Noting that you may already have solved your issues.
Please read http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf
As this will explain what should be done when good disks go bad. It has a step by step instruction.
What looks like happened is that you didn't restore the LVM configuration to the replacement disk. This causes LVM to get out of sync with the /etc/lvmtab and reality.
In short, you can recreate the lvmtab by using vgscan, make sure you have a backup of /etc/lvmtab. (High risk but great rewards). This may be the only way out as you have done many things to fix the issue.
or replace the original dead HDD and remove it from the VG
or restore the LVM config to the new HDD.
Please read the docco even if you have resolved the issue as it will make it a lot easier if it happens again and outlines the best practice disk replacement stratagies.
Trevor.