分页: 1 / 1

HP-UX使用U盘?

发表于 : 2012年 3月 14日 19:21 星期三
MUDBOY
U盘是否能够在HP-UX上使用?比如如何扫描U盘设备,如果mount到系统等。
我发现官方文档里面列出来的USB驱动支持说明,flash drive(这应该就是U盘吧)是支持的,但是USB移动硬盘是不支持的。

http://bizsupport2.austin.hp.com/bc/doc ... 914764.pdf
Supported Mass Storage Hardware
HP-UX is an enterprise operating system and is supported on enterprise servers. Accordingly,
HP-UX will limit support to those USB devices which are of use in such an environment. HP only
performs testing on a limited number of these devices.
Optical devices supported:
• Internal multibay inserts for rx2660, rx3600, and rx6600
• External multibay I and multibay II cradles with supported inserts
• HP dvd1040e 20x Super Multi DVD Writer
DVD drives are supported and most available drives should function correctly on HP-UX.
Flash drives are supported and most available drives should function correctly on HP-UX.
Remote access to drives and ISO files via the iLO system is supported.
HP-UX does not support USB hard drives or USB tape devices.

Re: HP-UX使用U盘?

发表于 : 2012年 3月 14日 19:24 星期三
MUDBOY
找专家帮助解答了一下,可以正常使用,而且USB的CDROM也可以。

实际命令测试如下:

# uname -a
HP-UX ia645 B.11.31 U ia64 2653657079 unlimited-user license

# swlist | egrep "\-OE"
HPUX11i-DC-OE B.11.31.1109 HP-UX Data Center Operating Environment

# ioscan -funNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/disk/disk4 /dev/disk/disk4_p2 /dev/rdisk/disk4 /dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/disk/disk4_p3 /dev/rdisk/disk4_p1 /dev/rdisk/disk4_p3
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/disk/disk5 /dev/disk/disk5_p2 /dev/rdisk/disk5 /dev/rdisk/disk5_p2
/dev/disk/disk5_p1 /dev/disk/disk5_p3 /dev/rdisk/disk5_p1 /dev/rdisk/disk5_p3
disk 6 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/disk/disk6 /dev/disk/disk6_p2 /dev/rdisk/disk6 /dev/rdisk/disk6_p2
/dev/disk/disk6_p1 /dev/disk/disk6_p3 /dev/rdisk/disk6_p1 /dev/rdisk/disk6_p3
disk 7 64000/0xfa00/0x3 esdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0xd esdisk CLAIMED DEVICE Lexar USB Flash Drive
/dev/disk/disk9 /dev/rdisk/disk9

# pvcreate /dev/rdisk/disk9
Physical volume "/dev/rdisk/disk9" has been successfully created.

# vgcreate -V 2.2 -S 1t -s 16 vgusb /dev/disk/disk9
Volume group "/dev/vgusb" has been successfully created.
Volume Group configuration for /dev/vgusb has been saved in /etc/lvmconf/vgusb.conf

# lvcreate -L 1024 -n lvusb1 /dev/vgusb
Logical volume "/dev/vgusb/lvusb1" has been successfully created with
character device "/dev/vgusb/rlvusb1".
Logical volume "/dev/vgusb/lvusb1" has been successfully extended.
Volume Group configuration for /dev/vgusb has been saved in /etc/lvmconf/vgusb.conf

# newfs /dev/vgusb/rlvusb1
newfs: /etc/default/fs is used for determining the file system type
version 7 layout
1048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported

# mkdir /DUSANTEST

# mount /dev/vgusb/lvusb1 /DUSANTEST

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 911808 1176096 44% /
/dev/vg00/lvol1 2097152 248424 1834344 12% /stand
/dev/vg00/lvol8 12288000 5126736 7127808 42% /var
/dev/vg00/lvol10 1048576 20481 966891 2% /var/tmp
/dev/vg00/lvol9 4194304 18008 3915285 0% /var/adm/crash
/dev/vg00/lvol7 12288000 3829616 8392424 31% /usr
/dev/vg00/lvol6 1048576 21024 1019656 2% /tmp
/dev/vg00/lvol5 15138816 8269472 6815728 55% /opt
/dev/vg00/lvol4 311296 5488 303424 2% /home
/dev/vgusb/lvusb1 1048576 17749 966408 2% /DUSANTEST

# cp *.depot /DUSANTEST

# ls /DUSANTEST
KerberosSvr_D.03.20.02_HP-UX_B.11.31_IA_PA.depot logrotate-3.7.9-ia64-11.31.depot
gcc-4.2.3-ia64-11.31.depot lost+found
gettext-0.18.1.1-ia64-11.31.depot pkgconfig-0.26-ia64-11.31.depot
glib2-2.28.7-ia64-11.31.depot popt-1.16-ia64-11.31.depot
hpuxtools.depot tusc-8.1-ia64-11.31.depot
libiconv-1.14-ia64-11.31.depot zlib-1.2.5-ia64-11.31.depot

# bdf /DUSANTEST
Filesystem kbytes used avail %used Mounted on
/dev/vgusb/lvusb1 1048576 406090 602335 40% /DUSANTEST

针对外置的USB DVD驱动器这种情况,也可以在HP-UX 11.31上使用。
测试如下:

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description ===============================================================================
disk 7 0/0/2/1.0.16 UsbScsiAdaptor CLAIMED DEVICE USB SCSI Stack Adaptor
/dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008+797=HH66MC032VE1
/dev/deviceFileSystem/Usb/MassStorage/rdsk/disk@hp-1008+797=HH66MC032VE1

Option 1:

# mkdir /cdrom
# mount /dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008+797=HH66MC032VE1 /cdrom

Option 2:

# ln -s /dev/deviceFileSystem/Usb/MassStorage/dsk/disk@hp-1008+797=HH66MC032VE1 /dev/cdrom
# mkdir /cdrom
# mount /dev/cdrom /cdrom

Re: HP-UX使用U盘?

发表于 : 2012年 3月 14日 19:27 星期三
MUDBOY
2楼的说明是针对空白U盘的,也就是说要创建hpux的文件系统。

那么针对已经有文件系统的u盘呢? 比如FAT32格式的,如果要从U盘上拷贝一个文件到HPUX机器上,这样的实际意义估计更大。

有人说可以使用EFI的命令例如efi_ls, efi_cp等,应为EFI也是基于FAT文件系统的。
没有验证过,不知道是否能够支持?

Re: HP-UX使用U盘?

发表于 : 2012年 3月 14日 19:29 星期三
HONG
有个开源的工具mtool估计可以使用,没有亲自验证过

mtool可以支持访问MS-DOS的文件系统,就是不确定FAT32的是否也行。
可以尝试一下

http://hpux.connect.org.uk/hppd/hpux/De ... ls-4.0.17/

Re: HP-UX使用U盘?

发表于 : 2012年 3月 15日 12:07 星期四
MUDBOY
MUDBOY 写了:2楼的说明是针对空白U盘的,也就是说要创建hpux的文件系统。

那么针对已经有文件系统的u盘呢? 比如FAT32格式的,如果要从U盘上拷贝一个文件到HPUX机器上,这样的实际意义估计更大。

有人说可以使用EFI的命令例如efi_ls, efi_cp等,应为EFI也是基于FAT文件系统的。
没有验证过,不知道是否能够支持?
efi的确可以,已验证
# ioscan -funNC disk
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
disk 4 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/disk/disk4 /dev/disk/disk4_p3 /dev/rdisk/disk4_p2
/dev/disk/disk4_p1 /dev/rdisk/disk4 /dev/rdisk/disk4_p3
/dev/disk/disk4_p2 /dev/rdisk/disk4_p1
disk 5 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/disk/disk5 /dev/disk/disk5_p3 /dev/rdisk/disk5_p2
/dev/disk/disk5_p1 /dev/rdisk/disk5 /dev/rdisk/disk5_p3
/dev/disk/disk5_p2 /dev/rdisk/disk5_p1
disk 6 64000/0xfa00/0x2 esdisk CLAIMED DEVICE HP 73.4GMAU3073NC
/dev/disk/disk6 /dev/disk/disk6_p3 /dev/rdisk/disk6_p2
/dev/disk/disk6_p1 /dev/rdisk/disk6 /dev/rdisk/disk6_p3
/dev/disk/disk6_p2 /dev/rdisk/disk6_p1
disk 7 64000/0xfa00/0x3 esdisk CLAIMED DEVICE TEAC DV-28E-N
/dev/disk/disk7 /dev/rdisk/disk7
disk 9 64000/0xfa00/0xd esdisk CLAIMED DEVICE Lexar USB Flash Drive
/dev/disk/disk9 /dev/rdisk/disk9

# efi_ls -d /dev/rdisk/disk9
FileName Last Modified Size
FINAL-ORACLE-UNSEALED-CUSTOMERLETTER.pdf
3/13/2012 105250
EVA-Design-with-some-link-estimates-2003.pdf
3/14/2012 1201326
cacti-evaperf-2010-03-15.tar.gz 3/13/2012 1832761
HP-IP-Distance-Gateway-User-Guide-2011.pdf
3/13/2012 7147231
Understanding-HP-EVA-leveling-Jan2012-4AA3-8964ENW.pdf
3/14/2012 629259
P6000-Command-View-Mar-2012.pdf 3/13/2012 4027734

total space 3565162496 bytes, free space 3550187520 bytes

# efi_cp –d /dev/rdisk/disk9 –u cacti-evaperf-2010-03-15.tar.gz /tmp/cacti-evaperf-2010-03-15.tar.gz

# ls -als /tmp/cacti-evaperf-2010-03-15.tar.gz
3584 -rw-r--r-- 1 root sys 1832761 Mar 15 08:24 /tmp/cacti-evaperf-2010-03-15.tar.gz