I’d like to thank Jim Tilbury who is the lead of the IBM i removable media team for writing this blog article.
Last October, IBM i introduced Removable Mass Storage (RMS) technology with the RDX removable disk cartridge. The blog “Removable Mass Storage” reviewed that capability. Today, IBM is adding support to use USB Flash Drives as a second type of RMS technology. Flash drives can hold as much data as multiple DVDs and can typically access the data much faster. This allows a much more convenient way to move data (either IFS or save data) to another machine. IBM does not qualify nor recommended any particular device, but typical USB 2.0 devices from 2 to 32GB have been used in our testing. Performance varies from device to device, but ranges of 1 to 4 MB/S for IFS writes are typical. If a particular flash drive does not work, it may not comply with the USB interface specifications, and a different drive should be used.
The device appears to the system when plugged into a USB port that is configured to be in an i partition. Like RDX, it is an optical class device, and may be used with save/restore or with the QOPT file system in IFS. Because there is no eject button to remove media, users should be careful to not unplug the device when it is in use. The file system expects safe removal of media; for Flash Drives, this is done by varying off the device description, or logically removing the media with the RMVOPTCTG command (option 4 on WRKOPTVOL) prior to unplugging the device.
Once a configuration is active, the operating system will allow the same operations to change media as devices that remain operational when the media is removed. This means the configuration may be varied off and on when the media is removed, and the device will remain operational but report “no media”.
If a flash drive is inserted that has files on it, but displays on the system as unknown format, it is probably formatted with a file system that IBM i does not recognize (Microsoft NTFS, for example). When it is initialized on IBM i, it is initialized with the UDF file system. This file system is supported on Microsoft Windows-7, and files can be moved between i and Windows using this format.
If an IBM i 7.1 TR 6 partition owns the device it will have a device type of 63BC. An IBM i 7.1 partition is capable of hosting this device to another i partition that is at 6.1.1 or 7.1. On a client partition running IBM i 6.1.1 with current PTFs a flash drive will be detected as a device type 632C. On an IBM i client partition running 7.1 a Flash Drive will be detected as device type 63BC. There is no VIOS support for Flash Drives.
Save/restore operations are done just as with a DVD, for example SAVLIB DEV(RMS01).... Because it is an optical class device, you can also use IFS to manage data, e.g. WRKLNK OBJ('/QOPT/RDXVOL'). Commands are the normal optical storage commands (WRKOPTVOL, INZOPT, etc). See this article in the IBM i Information Center.
This is just great. I'm looking forward to trying it. I haven't read any further, so the question that comes to mind is how does IBM i detect when flash media has been inserted into a USB port?
Posted by: Nathan M. Andelin | February 05, 2013 at 10:57 AM
Hurray! My only concern is if UDF can be read on Apple MAC OS X systems in addition to Windows. Don't know that right now, but it is a requirement to make this usable by our shops/customers who use MacBook Pro's.
Posted by: Bob Cozzi | February 05, 2013 at 11:34 AM
re detecting flash insertion: USB fabric architects how new devices are discovered and reported. The only unique implementation for flash is that when it is removed we do not mark the hardware as missing or failed.
re Apple MAC OS X. Apple is an active member of the Optical Storage Technology Association, which brought us UDF. I would expect it to work fine, but we have not done testing on Apple products.
Posted by: Jim Tilbury | February 05, 2013 at 04:04 PM
Thanks Jim, I think so as well (re Apple).
One more thing, we carry around a 64GB USB flash drive with the current CUM and Hyper PTFs on it to install at clients. Currently we use (obviously) a PC/Macbook Pro to FTP the images to the IFS and load them into a catalog. Will this new USB capability allow us to install PTFs from the USB device directly or will we need to copy them from the drive to the IFS and proceed from there? (NOTE: we only purchase 64GB USB flash devices today, so if you could test that too, that would be great.) Thank you!
Posted by: Bob Cozzi | February 06, 2013 at 10:17 AM
If you have IMGCLG media images, they are "just files" to us, and you can copy them to the flash, and then copy them to IFS. If you SAV to the flash, then you can install directly from the flash drive. (Like you would from a DVD-RAM). Your 64GB flash may work, we have no blocks to prevent it, but we also have no bandwidth at this time to test larger flash media.
Posted by: Jim Tilbury | February 06, 2013 at 07:20 PM