- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Remove a SAN LUN device from Linux
Operating System - Linux
1752661
Members
5999
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО05-13-2009 11:09 PM
тАО05-13-2009 11:09 PM
Environment: EVA 6100 and 8000. Proliant DL580G5 and RedHat 5.2.
What we had to do: We had to resize a LUN for OracleASM.
What we did: We created a new LUN with the same LUN number a previous deleted LUN on the same host.
Added the new WWID to the multipath.conf.
Ran /opt/hp/hp_fibreutils/hp_rescan -a
and multipath -v2
What we've seen: after the multipath -v2 command we have seen, that the size of the LUN isn't the same as we configured on the EVA. It was the same size the LUN had before.
We had changed the LUN number on the EVA and after that the right size was recognized...
From my point of view there seems to be data stored in the devices somehow. I guess, that after a reboot this would work okay - but a reboot was not a option for us...
Is there a prooven way to remove the multipath, device mapper devices?
Thanks for your help in advance!
What we had to do: We had to resize a LUN for OracleASM.
What we did: We created a new LUN with the same LUN number a previous deleted LUN on the same host.
Added the new WWID to the multipath.conf.
Ran /opt/hp/hp_fibreutils/hp_rescan -a
and multipath -v2
What we've seen: after the multipath -v2 command we have seen, that the size of the LUN isn't the same as we configured on the EVA. It was the same size the LUN had before.
We had changed the LUN number on the EVA and after that the right size was recognized...
From my point of view there seems to be data stored in the devices somehow. I guess, that after a reboot this would work okay - but a reboot was not a option for us...
Is there a prooven way to remove the multipath, device mapper devices?
Thanks for your help in advance!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:34 AM
тАО05-14-2009 12:34 AM
Solution
The multipath devices can be removed with "multipath -f ", when the multipath device is unused, i.e. any filesystems on it are unmounted and VG deactivated.
To fully purge the system's information about a particular LUN, you should also remove the /dev/sd* devices underlying the multipath device.
Please see this RedHat Knowledge Base document:
http://kbase.redhat.com/faq/docs/DOC-3942
Summary: to remove a device:
echo 1 > /sys/block//device/delete
Of course, you should use the "multipath -l" listing to identify the correct /dev/sd* devices *before* removing the multipath device.
Then use hp_rescan or the methods listed in the above-mentioned RHKB document to re-scan the storage. That should re-create the /dev/sd* devices (but the device names are not guaranteed to be the same as before).
Then re-create the multipath device.
MK
To fully purge the system's information about a particular LUN, you should also remove the /dev/sd* devices underlying the multipath device.
Please see this RedHat Knowledge Base document:
http://kbase.redhat.com/faq/docs/DOC-3942
Summary: to remove a device:
echo 1 > /sys/block/
Of course, you should use the "multipath -l" listing to identify the correct /dev/sd* devices *before* removing the multipath device.
Then use hp_rescan or the methods listed in the above-mentioned RHKB document to re-scan the storage. That should re-create the /dev/sd* devices (but the device names are not guaranteed to be the same as before).
Then re-create the multipath device.
MK
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:49 AM
тАО05-14-2009 12:49 AM
Re: Remove a SAN LUN device from Linux
Thanks for your help! This works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2009 12:50 AM
тАО05-14-2009 12:50 AM
Re: Remove a SAN LUN device from Linux
Thanks again
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP