- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM - zoned but unused disks
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
Forums
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
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
тАО02-13-2007 07:35 AM
тАО02-13-2007 07:35 AM
LVM - zoned but unused disks
I tried syminq output matching against vgdisplay -v | grep "PV name" but is not right as some VGs do not have alt links added to them. Tried vgscan, somewhat ok but not convinced. IS there any easy way to find it?
Thanks you all for your replies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2007 08:12 AM
тАО02-13-2007 08:12 AM
Re: LVM - zoned but unused disks
When it gets really confusing, I run a long dd command against the disk device and see which disk light lights up.
But that probably won't work here so.
ioscan -fnC disk
That shows active disks. Any other old device files can be safely removed with rmsf.
Its important to clean up systems once in a while.
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
тАО02-13-2007 08:49 AM
тАО02-13-2007 08:49 AM
Re: LVM - zoned but unused disks
Here is one you could use.
# for DSK in $(ls /dev/dsk)
do
echo "$DSK: $(echo '0x2008?4D' | adb $DSK)"
done | sort -nbk 7
This will sort out all the disks based on the LVM header.
Things you need to be aware of to interpret the output
* This works best when there is no clustering involved
* The disks with all 0's in the output means the disk was never used as a PV
* This will not identify the disks used by other volume managers (like VXVM)
* If you had some old volume groups that were "released" by just "vgexporting", then the disks that were part of that VG will still have LVM header on it.
If this is applicable to your
environment, then you will need to identify the active/valid volume groups VGID with the VGID displayed by adb.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2007 02:22 PM
тАО02-13-2007 02:22 PM
Re: LVM - zoned but unused disks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2007 01:39 AM
тАО02-14-2007 01:39 AM
Re: LVM - zoned but unused disks
Jo