- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- finding unused disk
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
01-07-2002 02:33 AM
01-07-2002 02:33 AM
finding unused disk
I'm having problem in finding unused physical disk from my EMC disk which is around 200.
I need to identify the disk for me to be able to add it on my volume group which it almost full.
Hope an export can help me on this.
thanks in advance.
bernard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 02:49 AM
01-07-2002 02:49 AM
Re: finding unused disk
I known that it can be hard, but two commands:
#ioscan -fnCdisk
and output of
#strings /etc/lvmtab
can resolve Your problem.
regards Seba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 03:10 AM
01-07-2002 03:10 AM
Re: finding unused disk
Will show all disks and the vg's they are in.
you will be able to find the unassigned disk here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 03:15 AM
01-07-2002 03:15 AM
Re: finding unused disk
Run the following commands.
1. *** All the disks on the system ***
ioscan -fnC disk |grep dsk|awk '{print $1} > alldisks.out
2. *** Disks that are currently used ****
vgdisplay -v |grep dsk |awk '{print $3}' > currentdisks.out
3. Now it it easy to find out the disks that are unused. using a combination of sort, uniq or even by a small shell script like this
for i in `cat alldisks.out`
do
grep $i currentdisks.out > /dev/null
if [ $? != 0 ]
then
echo $i >> unused.out
fi
done
This unused.out will contain all the unused disks. Also you need to make sure that this disk is literally unused before adding it. Do a pvdisplay on the disk. Sometimes the alternate links are not configured and they may be mistaken as unused disks. You can use inq command to find this also.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 03:18 AM
01-07-2002 03:18 AM
Re: finding unused disk
Try something like:
ioscan -fnCdisk | sed -n 's+.*\(/dev/dsk/[^ ]*\).*+\1+p' | sort > /tmp/ioscan.out
strings /etc/lvmtab | grep dsk | sort | comm -3 - /tmp/ioscan.out
This will give you a list of devices in ioscan output but not in /etc/lvmtab and vice versa (in different columns). Obviously the CD will be one of the missing devices if you have one.
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 04:03 AM
01-07-2002 04:03 AM
Re: finding unused disk
this is a tough question.
# strings /etc/lvmtab
#vgdisplay -v |grep dsk .....
shows the vg's and lv's for the current OS.
if you looked thru SAM, even though other disks had data(disks belonging another OS) shows disk unused. If you had information(written) about the disks will be useful in situations like this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 07:02 AM
01-07-2002 07:02 AM
Re: finding unused disk
If you have luns on the EMC allocated to your HP that are not in a volume group then you can see those as unused in SAM (Disks and File Systems -> Disk Devices). ioscan will also show all EMC luns available to the HP.
On my systems (with an EMC Symmetrix), we only allocate EMC luns when needed using SDR. Until that is done, ioscan will not see the "disks" on the HP.
If you don't find unused disks with SAM and / or ioscan, you need to determine if you have luns on the EMC that could be allocated to your HP. If you have EMC's Control Center you can find that info.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:02 AM
01-07-2002 08:02 AM
Re: finding unused disk
If you have multiple servers connected to the same EMC, you can include all your server names so you get one big picture.
Check on your server and see if this utility is there..if it is not than check with your EMC SE. Or if you really need
it .. I could email you a copy of mine. Just post your email.
I'll try to check back later to see.
TIP: If you run any raw devices..than the inq utility will not reflect them..so be careful.
Rgrds,
Rit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:24 AM
01-07-2002 08:24 AM
Re: finding unused disk
#!/bin/ksh
#
PVLIST=`vgdisplay -v | grep "PV Name" | awk '{print $3}'`
for disk in $PVLIST
do
free=`pvdisplay $disk | grep "Free PE" | awk '{print $3}'`
integer EXPR
((EXPR=${free}*4))
((TOTAL=${TOTAL}+${EXPR}))
print $disk = $EXPR MB Free
done
print Total Free space = $TOTAL MB
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:30 AM
01-07-2002 08:30 AM
Re: finding unused disk
Good Luck...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 08:48 AM
01-07-2002 08:48 AM
Re: finding unused disk
be VERY careful here:
even if you find some *unused* LUNs (read: drives), they might be in use by another SYSTEM!!!
I had some very long nights in the past, cleaning up from that having happened at a customer's site :-(
I would NEVER use SAM in a multi-host-on-one-RAID or -SAN environment...
Hence, check all those *candidate* LUNs, wether
- they are in the output of
vgdisplay -v | grep /dsk/
on ALL systems connected to that EMC box
- some other OS (read: Windows, Solaris...) uses them
- they contain "vgexport"ed VGs!
- somebody else has those kept as "reserve" for your or another system
- EMC does itself use those for something like "AutoLUN XP" does for the Hp SureStore XPs
Just my ???0.02,
Wodisc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2002 09:12 AM
01-07-2002 09:12 AM
Re: finding unused disk
One note about inq. On my HPs, inq doesn't show luns that are not allocated by the EMC to that server. I only know about them by using Control Center.
Darrell