- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Finding free disk to use with pvcreate
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
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
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-27-2011 12:45 PM
06-27-2011 12:45 PM
Finding free disk to use with pvcreate
When I try to use pvcreate on some disks I want to use, I get:
#pvcreate /dev/rdsk/c2t1d1
pvcreate: The physical volume already belongs to a volume group
I was told to not use pvcreate -f in case it is being used by another server. How can I really tell if it's being used
by another server for data. The disk in not in the /etc/lvmtab of any VG also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2011 01:00 PM
06-27-2011 01:00 PM
Re: Finding free disk to use with pvcreate
The VG name can be determined with pvdisplay:
pvdisplay /dev/dsk/c2t1d1
If you want to additionall see what extentss are allocated to which LVs, you can use the -v option:
pvdisplay -v /dev/dsk/c2t1d1
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2011 02:24 PM
06-27-2011 02:24 PM
Re: Finding free disk to use with pvcreate
Shalom,
:smileysurprised:
If the disk is already part of a volume group:
vgdisplay -v vg_name
pvdisplay -v is a good idea before using pvcreate -f
The advice not to use -f which stands for force is very good advice.
You may need to post the output to see if any logical volumes are current.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2011 03:46 PM
06-27-2011 03:46 PM
Re: Finding free disk to use with pvcreate
Don't forget in my post: The disk in not in the /etc/lvmtab of any VG also.
I had our sr. admin here show me how to look at the EMC, etc... , was not easy, and look at what is being used by what host.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2011 12:48 PM
06-28-2011 12:48 PM
Re: Finding free disk to use with pvcreate
All the disks are free. Does anyone know how to make the really free so when someone does a pvcreate in the
future it will not bark about it being in use?
Hello Steven, it's been a while since I was on. Good to see you are still around on the forums.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2011 07:01 AM
07-04-2011 07:01 AM
Re: Finding free disk to use with pvcreate
If those LUNs were used under LVM, then pvremove on character device should make the header clean.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2011 10:20 AM
07-08-2011 10:20 AM
Re: Finding free disk to use with pvcreate
pvremove does not clear disk. I know for sure c2t1d5 is not being used anywhere. Any other ideas.
#pvremove /dev/rdsk/c2t1d5
pvremove: The physical volume "/dev/rdsk/c2t1d5" belongs to an exported volume group.
pvremove: Couldn't remove physical volume "/dev/rdsk/c2t1d5".
- Tags:
- pvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2011 10:45 AM
07-08-2011 10:45 AM
Re: Finding free disk to use with pvcreate
I believe you need to use vgreduce -f once you know which vg it originally belonged to. The fact that it says the vg is exported makes me wonder if you have to import it first. Sounds potentially messy but it might be the only way.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2011 12:21 PM
07-08-2011 12:21 PM
Re: Finding free disk to use with pvcreate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2011 08:09 AM
07-11-2011 08:09 AM
Re: Finding free disk to use with pvcreate
Karol, pvcreate -f and pvremove works. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2011 08:18 AM
07-11-2011 08:18 AM
Re: Finding free disk to use with pvcreate
Well of course pvcreate -f works! But you said you didn't want to use it!!
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2011 03:10 PM
07-11-2011 03:10 PM
Re: Finding free disk to use with pvcreate
No Pete. I was told not to use -f by the guys here. Not that I did not want to use it.
But since we identified that the disks the server sees is not being used by another server.
They are free to be cleaned. And so they were. Never more, never more.