Solved

USB drive on AIX based system

Posted on 2014-03-26
4
1,586 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Having issues meeting security compliance criteria because of those pesky USB drives? Then I can help you! This article will explain how to disable USB Mass Storage devices in Windows Server 2008 R2.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now