Solved

USB drive on AIX based system

Posted on 2014-03-26
4
1,673 Views
Last Modified: 2014-03-31
Does anyone use or know if it is possible to connect and use an external USB drive on an AIX based system? I am not referring to a thumb drive or usb stick, but rather a real disk enclosure  (of the 1-2 TB type) that you might otherwise connect to a Windows system.
0
Comment
Question by:carlmd
  • 2
  • 2
4 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39956200
This should work with the newer AIX versions (5.3 TL 9 and up - check with "oslevel -r").

You must have these filesets installed - check with "lslpp -l  |grep usb":

devices.usbif.08025002.rte
devices.usbif.08025002.diag
devices.common.IBM.usb.rte
devices.common.IBM.usb.diag


Get them from the original OS installation DVD if required.

If you're on an LPAR you must use the HMC to attach the "USB UHC spec" adapter to the LPAR in question.

Once you plugged in the USB drive run "cfgmgr" to detect it.
The device should show up as "usbms0" (maybe "usbms1" or higher if it's not your first USB mass storage device) in the device list:

lsdev | grep usb

Now make a mountpoint in your directory tree, e. g. "mkdir /usb_drive0" and try to mount the device:

mount -o log=NULL /dev/usbms0 /usb_drive0

If this fails with an error message the device needs to be preformatted with a JFS2 file system:

mkfs -V jfs2 -o ea=v2 /dev/usbms0

You will be asked for confirmation to destroy any data possibly present on the device. Answer with "yes".

After successful creation of the FS you should now be able to mount it (see above).
0
 
LVL 20

Author Comment

by:carlmd
ID: 39956637
Just to confirm, you are of the opinion that I can use any "real" usb drive, and not just a flash drive. Is that correct?
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 39956682
Yes, that's correct. Since AIX 5.3 TL 9 you can use USB mass storage devices.

I' not sure if "any" USB disk can be used, however. There might well exist incompatible ones out there.
0
 
LVL 20

Author Closing Comment

by:carlmd
ID: 39966206
Thanks, will give it a try soon.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question