- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Remove SAN Tape Device From RHEL System
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
03-01-2011 08:12 AM
03-01-2011 08:12 AM
Remove SAN Tape Device From RHEL System
echo 1 > /sys/block/sdY/device/delete
Is there a similar trick for Tape Drives?
We are in a situation wherein 2 FC Tape HBAs for SAN Tape Devices are being reused for SAN Disk Devices.
The SAN Tape devices have alerady been depresented and SAN disks present. Scan and lip were issued but the Tape Devices remain and no sign of the SAN Disk devices.
TIA!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2011 08:32 AM
03-01-2011 08:32 AM
Re: Remove SAN Tape Device From RHEL System
lsscsi and find the H:B:T:L for each Tape Device.
Then, for each H:B:T:L do:
echo 1 > /sys/bus/scsi/devices/H:B:T:L/delete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2011 11:06 PM
03-01-2011 11:06 PM
Re: Remove SAN Tape Device From RHEL System
Tapes can be found under /sys/class/scsi_tape.
To delete a tape device use:
echo 1 > /sys/class/scsi_tape/nst0/device/delete
cheers
Reto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2011 06:11 AM
03-02-2011 06:11 AM
Re: Remove SAN Tape Device From RHEL System
Thanks nonetheless but on our system:
echo 1 > /sys/bus/scsi/devices/H:B:T:L/delete
did the trick.
There was no dir structure for scsi_tape on our system under /sys/class.
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2011 06:36 AM
03-02-2011 06:36 AM
Re: Remove SAN Tape Device From RHEL System
This was another fine example about why it's important to state your OS version when asking a technical question.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2011 10:45 AM
03-02-2011 10:45 AM
Re: Remove SAN Tape Device From RHEL System
But in the absence of a version -- I always deem it as a general question.
Version is RHEL 5.3/4/5/6.
No /sys/class/scsi_tape.
I did due diligence and simply sought out the device path for the tape drives. And bingo - there was a "delete" file in the structure. And it worked.
Beauty of Linux (and danger too?) -- everything seems to be dynamic and controllable via file switches.