- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find unused disk devices in hpunix
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-02-2008 03:32 AM
06-02-2008 03:32 AM
how to find unused disk devices in hpunix
How to find the unused disk devices in hpunix.
My requirement is something like i hav to create a new VG with the unused disks available.
Please help me with your comments.
regards,
sanwin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 03:45 AM
06-02-2008 03:45 AM
Re: how to find unused disk devices in hpunix
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 03:46 AM
06-02-2008 03:46 AM
Re: how to find unused disk devices in hpunix
check all disks are used or not.
#pvdisplay /dev/dsk/cXtXdX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 03:48 AM
06-02-2008 03:48 AM
Re: how to find unused disk devices in hpunix
# strings /etc/lvmtab | grep dsk > used.txt
Get all devices, presented to system
#ioscan -fnC disk > all.txt
See what is not used:
#grep -vf used.txt all.txt > new.txt
regards,
ivan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 04:16 AM
06-02-2008 04:16 AM
Re: how to find unused disk devices in hpunix
In HP-UX, it is generally recommended to setup LVs for raw databases too, so that the databases will refer to the disks using /dev/vg*/rlvol*, not /dev/rdsk/c*t*d*. However, this is just a recommendation: someone MAY have set up a raw database to use a plain raw disk, bypassing the LVM layer entirely.
To identify the VGs used by various mounted filesystems, use the command "bdf" or "mount".
To see the PVs used by the VGs, use "vgdisplay -v
Using the information produced by these commands, you can create a list of PVs (=disk devices) that *are* in use. The command "ioscan -fnCdisk" lists all the disks detected by the system: comparing this output to your list you can identify the disks that are not used by currently active VGs.
To see whether or not a disk is currently used by something other than a filesystem, you could use the "fuser" command.
"fuser /dev/rdsk/*" should reveal if e.g. a database engine is currently accessing a disk as a raw database.
(WARNING: this won't detect databases that are currently shutdown.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 06:12 AM
06-02-2008 06:12 AM
Re: how to find unused disk devices in hpunix
What is your disk environment?
Because, if it's some direct connected disk to the host/server (good old JBOD), then you will see the disk, and all the commands folks have just given you will help.
But, if your disk is presented from a SAN, then you may have tons of disk that are not mapped and/or not masked to your host/server. In this case...you won't see them until they are !!
Just a thought,
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2008 08:01 AM
06-02-2008 08:01 AM
Re: how to find unused disk devices in hpunix
u have to identify which is lun number
for example some disk present from storage has same lun ( consider c0t6d0 and c0t7d0)
both we will consider as the one disk
so u are using only one time pvcreate it will effect second one also
in strings /etc/lvmtab file u are seeing c0t6d0 not c0t7d0
i mean u can't use second one. because it is already used through c0t6d0, if u are using second one it will effect first one also
because both are considering as one disk
sajjad