- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find the unused Lun.
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
08-02-2007 10:03 PM
08-02-2007 10:03 PM
I have about 100 Luns in the servers and i just got new Lun of 50GB from the EVA. How do i find the unused Lun in the server . Is there a way to find it.
Answers are welcome with High Points.. Pls Help in this regards.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:08 PM
08-02-2007 10:08 PM
Re: How to find the unused Lun.
#ioscan -funCdisk > /tmp/used_disk_list
#ioscan -fnCdisk
#insf -eCdisk > /tmp/unused_disk_list
#diff /tmp/unused_disk_list /tmp/used_disk_list
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 10:51 PM
08-02-2007 10:51 PM
Re: How to find the unused Lun.
so check for each disk if it contains VG information
vgdisplay /dev/dsk/cxtydz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:08 PM
08-02-2007 11:08 PM
Re: How to find the unused Lun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:12 PM
08-02-2007 11:12 PM
Re: How to find the unused Lun.
Thanks for that solution. But what if the installation the spl file is done before capturing the Used Disk info ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:14 PM
08-02-2007 11:14 PM
Re: How to find the unused Lun.
Another way is to list the disk device files by date order (date of creation). Use this command:
ll -t /dev/dsk/ | head -5
The most 5 recently created disk devices will be displayed at the top. You can use pvdisplay on the most recent device file to confirm that it is unused.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:48 PM
08-02-2007 11:48 PM
Re: How to find the unused Lun.
in case of LVM you can do
# for vg in `vgdisplay|grep "VG Name"|awk '{print $3}'`
> do
> vgdisplay -v $vg |grep "PV Name"
> done
PV Name /dev/dsk/c1t15d0
PV Name /dev/dsk/c3t15d0
PV Name /dev/dsk/c13t0d0
PV Name /dev/dsk/c12t5d5
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 12:08 AM
08-03-2007 12:08 AM
Re: How to find the unused Lun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 01:33 AM
08-03-2007 01:33 AM
Re: How to find the unused Lun.
You can try this script. it is simple for and awk combination.
Your output will something like this
./ioscan.sh
Checking 0/3/1/0/4/0
/dev/rdsk/c6t0d7: 0.54GB /dev/vg03
/dev/rdsk/c6t1d0: 0.54GB /dev/vg04
/dev/rdsk/c6t0d0: 9.77GB /dev/vg01
/dev/rdsk/c6t0d1: 9.77GB /dev/vg01
/dev/rdsk/c6t0d2: 9.77GB /dev/vg01
/dev/rdsk/c6t0d3: 9.77GB /dev/vg01
/dev/rdsk/c6t0d4: 9.77GB /dev/vg01
/dev/rdsk/c6t0d5: 9.77GB /dev/vg01
/dev/rdsk/c6t1d1: 9.77GB /dev/vg01
/dev/rdsk/c6t1d2: 9.77GB /dev/vg01
/dev/rdsk/c6t0d6: 11.24GB /dev/vg02
Checking 0/4/1/0/4/0
/dev/rdsk/c4t0d7: 0.54GB /dev/vg03
/dev/rdsk/c4t1d0: 0.54GB /dev/vg04
/dev/rdsk/c4t0d0: 9.77GB /dev/vg01
/dev/rdsk/c4t0d1: 9.77GB /dev/vg01
/dev/rdsk/c4t0d2: 9.77GB /dev/vg01
/dev/rdsk/c4t0d3: 9.77GB /dev/vg01
/dev/rdsk/c4t0d4: 9.77GB /dev/vg01
/dev/rdsk/c4t0d5: 9.77GB /dev/vg01
/dev/rdsk/c4t1d1: 9.77GB /dev/vg01
/dev/rdsk/c4t1d2: 9.77GB /dev/vg01
/dev/rdsk/c4t0d6: 11.24GB /dev/vg02
Let me know if you like it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2007 02:41 AM
08-03-2007 02:41 AM
Re: How to find the unused Lun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2007 11:58 PM
08-06-2007 11:58 PM
Re: How to find the unused Lun.
for dsk in /dev/dsk/c*
do
if ! pvdisplay $dsk > /dev/null 2>&1
then
echo "$dsk NOT IN USE"
diskinfo `echo $dsk|sed 's/dsk/rdsk/g'`
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2007 12:07 AM
08-07-2007 12:07 AM
Re: How to find the unused Lun.
a bit too late but if you have hpux 11.31 you can use this:
#scsimgr -p get_attr all_lun -a device_file -a wwid
then you can compare the WWID with the EVA.
Regards