- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Figure out unused disk on the Server.
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
11-15-2001 06:30 AM
11-15-2001 06:30 AM
We are using LVM/Logical Volume filesystem on the server, but recently we removed and added lots of disk on this server. This was done by different persons. There may be a chance that one of disk is not configure and left unused.
Sever: N4000 HP-UX 11.0
Thanks,
Gulam.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:34 AM
11-15-2001 06:34 AM
Re: Figure out unused disk on the Server.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:35 AM
11-15-2001 06:35 AM
Re: Figure out unused disk on the Server.
ioscan -fnC disk will give you the list of all the disks claimed /unclaimed.
Then you can use pvdisplay to check whether these disks are being used or not.
Goodluck,
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:38 AM
11-15-2001 06:38 AM
Re: Figure out unused disk on the Server.
Use ioscan -fnkCdisk to find out what disks you have installed. Then compare the result with
# strings /etc/lvmtab
/etc/lvmtab contains LVM configuration: volume groups and configured phisical volumes.
Later,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:45 AM
11-15-2001 06:45 AM
Solutionfor pv in /dev/dsk/c*
do
if pvdisplay $pv >/dev/null 2>&1
then
echo "$pv: in use"
else
echo "$pv: not in use"
fi
done
This script will always tell you that your CDROM is not being used. :) That's a side effect of its simplicity. Also, check with pvdisplay -v every volume it tells you is not being used.
Make sure you have no raw devices being used outside LVM on those devices before you use them.
Regards,
Paga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:46 AM
11-15-2001 06:46 AM
Re: Figure out unused disk on the Server.
The command "#ioscan -fnC disk" will give you the all the disks on server.
Use pvdisplay to check whether these disks are being used or not.
If the disks are on EMC frame with multiple path, use the emc utility "#inq" to find out all EMC disks and alternate paths.
Thaks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:49 AM
11-15-2001 06:49 AM
Re: Figure out unused disk on the Server.
If you are sure you are *not* using raw devices (see Harry's response) then SAM -> Disks and File Systems -> Disk Devices will show any unused disk(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 06:49 AM
11-15-2001 06:49 AM
Re: Figure out unused disk on the Server.
Do vgdisplay -v |grep "/dev/dsk" >/tmp/used_disks
ioscan -nfCdisk >/tmp/total_disks
Now, check what is missing between the total_disks and used_disks. That should possibly be the unused disks.
But, one IMP note-- there could be pv links which are not configured in the LV''s. Pv links are two or more paths connected to the same disk. So, you need to make absolutely sure the "unused disks" are not really being usd. To do this: run
pvdisplay
If it doesn''t return anything, than you can be sure that is not used.
(Btw, did you look up your oracle restore thread?)
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 07:00 AM
11-15-2001 07:00 AM
Re: Figure out unused disk on the Server.
Use the Sam disk screen and look for unused drives.
You can also use this screen to find dead drives, they will show up as having 0 bytes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 07:39 AM
11-15-2001 07:39 AM
Re: Figure out unused disk on the Server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2001 07:45 AM
11-15-2001 07:45 AM
Re: Figure out unused disk on the Server.
A way to check the unused disk is to try and add a new VG in sam. It lists all the disk which are not used by any VG. The other way is to take a ioscan output and then do a vgdisplay for all the VG's and then locate the unused disk.
Hope this helps.
Regds