- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to use mc command to control 1/8 autoloader
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
05-19-2005 04:58 PM
05-19-2005 04:58 PM
how to use mc command to control 1/8 autoloader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 05:35 PM
05-19-2005 05:35 PM
Re: how to use mc command to control 1/8 autoloader
These commands might help you :
mc -p /dev/changer -r S ( shows empty slots )
mc -p /dev/changer -sS1 -dD1
transports tape from slot 1 to drive 1
mt-t /dev/rmt/drive rew
rewinds the tape
mt-t /dev/rmt/drive offline
takes the drive offline, so that you can take the tape out also called unmount tape.
mc -p /dev/changer -sD1 -dS1 transports the tape from drive 1 to slot 1.
Hope i could help.
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 05:40 PM
05-19-2005 05:40 PM
Re: how to use mc command to control 1/8 autoloader
This is how you use mc (media changer manipulation utility) to move a media between tape drives and tape library slots.
For Eg:-
To move tape from slot to tape drive use like this
/usr/sbin/mc -p /dev/picker -s S$SNUM -d D$TNUM;
where /dev/picker is the robotic arm and SNUM is the slot number and TNUM is the Drive number.
To move tape from slot to mail-slot
/usr/sbin/mc -p /dev/picker -s S$SNUM -d I1;
Where SNUM is the slot number and I1 is the mail-slot or the cap.
See man mc for more details.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:00 PM
05-19-2005 08:00 PM
Re: how to use mc command to control 1/8 autoloader
but it does not work
# mc -p /dev/changer -r S
ERROR: No such file or directory
# mt -t /dev/rmt/c12t5d0BESTnb offline
/dev/rmt/c12t5d0BESTnb: No such device or address
# mt -t /dev/rmt/c12t5d0BEST offline
/dev/rmt/c12t5d0BEST: No such device or address
# ioscan -fnC tape
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
tape 0 0/5/1/0.5.0 stape CLAIMED DEVICE HP Ultrium 1-SCSI
/dev/rmt/0m /dev/rmt/c12t5d0BEST
/dev/rmt/0mb /dev/rmt/c12t5d0BESTb
/dev/rmt/0mn /dev/rmt/c12t5d0BESTn
/dev/rmt/0mnb /dev/rmt/c12t5d0BESTnb
what is wrong?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2005 08:08 PM
05-19-2005 08:08 PM
Re: how to use mc command to control 1/8 autoloader
After you had connected the Ultrium Autoloader to the server rp4440,
Did you do an ioscan (ioscan â fnC) to see that the hardware part is claimed,
Then did you do the insf -e to install special device files.
When you do ll /dev/changer is the device file there.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 02:38 AM
05-21-2005 02:38 AM
Re: how to use mc command to control 1/8 autoloader
# ioscan
# insf -e
# ioscan -fn
Look in /dev/rac for the changer device.
in the 'ioscan -fn', look for "tape" and you should see something like:
... ...
... target 15 0/2/1/0.1.6.255.0.0 tgt CLAIMED DEVICE
... autoch 1 0/2/1/0.1.6.255.0.0.0 schgr CLAIMED DEVICE COMPAQ MSL
........... /dev/rac/c8t0d0
... tape 1 0/2/1/0.1.6.255.0.0.1 stape CLAIMED DEVICE HP Ultrium 1-SCSI
........... /dev/rmt/0m
The "autoch" class and driver "schgr" are what you're looking for. Be sure that the S/W State (software state) is "CLAIMED". If not go into SAM/Kernel/Drivers and add "schgr" driver to kernel.
The default device that 'mc' uses is /dev/scsi/3. I often create a link for that to the actual device and then I don't need the "-p" option on the 'mc' command:
# mkdir /dev/scsi
# ln -s /dev/rac/c8t0d0 /dev/scsi/3
# mc -r DIMS
### which would be equivalent to
# mc -r -p /dev/rac/c8t0d0 DIMS
hth
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 09:48 AM
05-21-2005 09:48 AM
Re: how to use mc command to control 1/8 autoloader
You may need the "schgr" device driver configured into the kernel to manipulate the SCSI autoloader.
Here is a link on how to use the "mc" command.
When you have enabled the "schgr" driver in the kernel (& rebooted), you should see the /dev/rac device which is the robotic arm for the autoloader. You use this to move the media from the slot to the drive and vice versa.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2005 11:11 AM
05-21-2005 11:11 AM
Re: how to use mc command to control 1/8 autoloader
ioscan -knfC autoch
It should look something like this:
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
autoch 0 0/2/0/0.0.0 schgr CLAIMED DEVICE HP C7200-8000
/dev/rac/c4t0d0
The device file /dev/rac/c4t0d0 is the robotic arm. Once you see something like the above, then do a quick status:
mc -p /dev/rac/c4t0d0 -r ISDN
That will show all the slots, the tape drives, mailslots, etc. mc will not function until the robotic arm has a correct device file.
Bill Hassell, sysadmin