- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: More volume group problems
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
06-11-2001 10:06 AM
06-11-2001 10:06 AM
I was told that my existing volume group had to be mounted elsewhere, etc. so I thought it would be easiest to just remove what I had done and restarted. Well, I did the following:
# vgimport /dev/vgraid /dev/rdsk/c4t0d1
# vgexport vgraid
# cd /etc/lvmconf
# rm vgraid.conf
I should have used sam. *sigh*
I guess I also should have removed my logical volume as well.
Well, now this is what I get (I'm kind of just trying stuff):
# pvremove /dev/rdsk/c4t0d1
pvremove: The physical volume "/dev/rdsk/c4t0d1" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c4t0d1".
# vgcreate /dev/vgraid /dev/dsk/c4t0d1
Increased the number of physical extents per physical volume to 17346.
vgcreate: Volume group "/dev/vgraid" could not be created:
The path does not specify a valid physical volume.
# vgreduce /dev/vgraid /dev/dsk/c4t0d1
vgreduce: Volume group "/dev/vgraid" does not exist in the "/etc/lvmtab" file.
I probably did things all out of order, but I wasn't getting anywhere, anyways. I read somewhere that I can rebuild the lvmtab, so I tried that. I did 'mv /etc/lvmtab /etc/lvmtab.old' then did a vgscan
I really shouldn't fix what isn't broken. Any pointers? How can I create a volume group now?
Thank you,
Melissa Murphy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 10:50 AM
06-11-2001 10:50 AM
Re: More volume group problems
I'm still pretty stuck and see this error:
# vpdisplay -v /dev/dsk/c4t0d1
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c4t0d1" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c4t0d1".
What does it mean that it "belongs"?
Thanks,
Melissa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 11:04 AM
06-11-2001 11:04 AM
Re: More volume group problems
OK. This is a follow-on to today's earlier post. As I indicated there, if you look do:
# strings /etc/lvmtab
...then you will see the volume groups and associated device files. /etc/lvmtab is that which is rebuilt when you did the 'vgscan'.
It's not totally clear what you are attempting to do, nor in total, what you have done.
First, do you have data on your /dev/vgraid volume group that you care about either on this system or another?
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 11:16 AM
06-11-2001 11:16 AM
Re: More volume group problems
No, there is no data on the vgraid volume group (if it's still there ...) These are pretty clean systems with nothing of importance on them.
Well, I tried to get rid of the volume group, actually. I was going to redo it mounted to another place, since I wasn't sure how to remount it to somewhere else. I think what happened is I didn't delete the logical volume first and now I'm a little hosed. I can't remove the physical volume, because a volume group is associated with this. Again, I'm not sure where this is. I tried to go through the steps we discussed in the previous thread, but I still can't create a new volume group. I have a /dev/vgraid and a /dev/vgraid/group with 0x010000, but when I try vgcreate /dev/vgraid /dev/dsk/c4t0d1, I get that the path does not specify a valid physical volume. So how do you think I messed up my physical volume?
Sorry to be a pain - I know I don't know that much here, but I'd really like to get this figured out. :)
Thanks,
Melissa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 11:55 AM
06-11-2001 11:55 AM
Re: More volume group problems
Please, you are not being a "pain". We're here because we *want* to be here!
First, your 'vgdisplay' syntax is wrong. In your case, try:
# vgdisplay -v /dev/vgraid
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 11:58 AM
06-11-2001 11:58 AM
SolutionI don't think your vgexport worked properly if you still have /dev/vgraid and /dev/vgraid/group. vgexport deletes these. I'd try doing a vgexport /dev/vgraid -v to see if that will clear everything out.
If this works, then all you have to do is recreate the volume group:
1) mkdir /dev/vgraid
2) mknod /dev/vgraid/group -c 64 0x010000
3) pvcreate -f /dev/rdsk/c?t?d?
4) vgcreate ...
If the vgexport doesn't work, we'll have to look at the messages it produces to see if we can figure it out.
-OR-
You can try to force the pvcreate and try to recreate the volume group from where you are now. Try:
pvcreate -f /dev/rdsk/c?t?d?
Then your vgcreate.
Good Luck -- jls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 12:18 PM
06-11-2001 12:18 PM
Re: More volume group problems
Alright, here's the output of the vgdisplay:
# vgdisplay -v /dev/vgraid
vgdisplay: Volume group "/dev/vgraid" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/vgraid".
And that of vgexport:
# vgexport -v /dev/vgraid
Beginning the export process on Volume Group "/dev/vgraid".
vgexport: Volume group "/dev/vgraid" does not exist in the "/etc/lvmtab" file.
vgexport: Couldn't export volume group "/dev/vgraid".
I was pretty sure I did a vgexport early on and it was okay ... but maybe now I'm not so sure.
So, whatdya think?
Thanks,
Melissa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 12:23 PM
06-11-2001 12:23 PM
Re: More volume group problems
I think you should force the pvcreate (use the -f option), but be sure you specify the correct physical volume.
After the device is pvcreated, you should be able to do a vgcreate using it.
Let us know how this works -- jls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 12:25 PM
06-11-2001 12:25 PM
Re: More volume group problems
Wonderful! Thanks a bunch! :)
You'll hear from me soon -- the next time I go poking around. :)
Later,
Melissa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2001 12:35 PM
06-11-2001 12:35 PM
Re: More volume group problems
So, if you want to build a volume group from scratch, using one physical disk, /dev/dsk/c4t0d1 and you want the volume group called /dev/vgraid then:
# pvcreate -f /dev/dsk/c4t0d1
# mkdir /dev/vgraid
# mknod /dev/vgraid/group c 64 0xNN0000 # where NN is the unique minor number (in hex)
# vgcreate /dev/vgraid /dev/dsk/c4t0d1
# lvcreate -L
Remember to choose a unique minor number for 'mknod' by looking at what is already used with:
# ls -l /dev/*/group
Take a look at the man pages for each command and/or the HP-UX System Administration Tasks manual I cited in our earlier dialog for more details.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2001 01:41 AM
06-12-2001 01:41 AM
Re: More volume group problems
A vgexport leave the disk header on the disk that identify the disk is an lvm managed.
The long shot of this:
To reuse a disk already used by lvm, you must pvcreate -f /dev/rdsk/c?t?d?
Stick around with the forums anyway, you'll have fun!
Later,
Bill