- 论坛徽章:
- 0
|
在AIX中如何改变LTO设备的参数 \r\n 如果在AIX中需要改变默认的参数如压缩、块大小、缓冲区等,可以使用 \r\n smit工具。 \r\n 具体的方法如下: \r\n 1)确定AIX中要修改的设备 \r\n # lsdev -Cc tape \r\n smc0 Available 14-08-00-6,0 IBM 3583 Library Medium Changer \r\n rmt0 Available 14-08-00-0,0 IBM 3580 Ultrium Tape Drive \r\n rmt1 Available 14-08-00-1,0 IBM 3580 Ultrium Tape Drive \r\n rmt2 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc1 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n rmt3 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc2 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n rmt4 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc3 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n 通过上面的信息我们可以知道系统连接了两个磁带库: \r\n a)用SCSI连接的3583,smc0带两个驱动器rmt0,rmt1。 \r\n smc0 Available 14-08-00-6,0 IBM 3583 Library Medium Changer \r\n rmt0 Available 14-08-00-0,0 IBM 3580 Ultrium Tape Drive \r\n rmt1 Available 14-08-00-1,0 IBM 3580 Ultrium Tape Drive \r\n \r\n b)用光纤连接的3584,三个驱动器各自的control path都被使能。 \r\n rmt2 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc1 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n rmt3 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc2 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n rmt4 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n smc3 Available 30-68-01 IBM 3584 Library Medium Changer (FCP) \r\n \r\n 1.1)假设我们要修改SCSI连接的3583上的SCSI ID=2的驱动器的参数: \r\n 通过分析我们可以确定rmt1的SCSI ID是1,正是我们要修改的对象。 \r\n \r\n 1.2)假设我们要修改光纤连接的3584上的驱动器的参数: \r\n 我们还要通过三个驱动器的WWN来区分他们。首先驱动器的WWN可以 \r\n 通过驱动器上面的标签得到,然后你可以使用lsattr命令得到WWN和 \r\n 设备名的对应关系: \r\n #lsattr -El rmt2 \r\n block_size 0 Block Size (0=Variable Length) True \r\n compress yes Use Hardware Compression on Tape True \r\n autoload no Use Autoloading Feature at End-of-Tape True \r\n logging no Activate volume information logging True \r\n max_log_size 500 Maximum size of log file (in # of entries) True \r\n space_mode SCSI Backward Space/Forward Space Record Mode True \r\n rew_immediate no Use Immediate Bit in Rewind Commands True \r\n trailer_labels no Trailer Label Processing True \r\n retain_reserve no Retain Reservation False \r\n devtype ULT3580- Device Type False \r\n scsi_id 0x213ca SCSI Target ID True \r\n lun_id 0x0 Logical Unit Number True \r\n location Location True \r\n ww_name 0x5005076300410803 World Wide Name False \r\n new_name New Logical Name True \r\n \r\n 1.3)如果驱动器上没有WWN标签,或复杂的SAN环境,或使用FC-SCSI-GATAWAY \r\n 的情况我们可以通过SAN交换机来确定,限于篇幅这里不做介绍。 \r\n \r\n 2)参数: \r\n 3.1)显示现有参数的命令: \r\n # lscfg -vl rmt1 \r\n DEVICE LOCATION DESCRIPTION \r\n rmt7 30-68-01 IBM 3580 Ultrium Tape Drive (FCP) \r\n Manufacturer................IBM \r\n Machine Type and Model......ULT3580-TD1 \r\n Serial Number...............6811288675 \r\n Device Specific.(FW)........25D4 \r\n \r\n #lsattr -El rmt2 \r\n block_size 0 Block Size (0=Variable Length) True \r\n compress yes Use Hardware Compression on Tape True \r\n autoload no Use Autoloading Feature at End-of-Tape True \r\n logging no Activate volume information logging True \r\n max_log_size 500 Maximum size of log file (in # of entries) True \r\n space_mode SCSI Backward Space/Forward Space Record Mode True \r\n rew_immediate no Use Immediate Bit in Rewind Commands True \r\n trailer_labels no Trailer Label Processing True \r\n retain_reserve no Retain Reservation False \r\n devtype ULT3580- Device Type False \r\n scsi_id 0x213ca SCSI Target ID True \r\n lun_id 0x0 Logical Unit Number True \r\n location Location True \r\n ww_name 0x5005076300410803 World Wide Name False \r\n new_name New Logical Name True \r\n \r\n 3.2)设置参数的方法: \r\n 我们可以使用SMIT工具修改某一个指定的LTO设备。 \r\n 具体方法是: \r\n 3.2.1)#SMITTY \r\n 3.2.2)选择菜单Devices -> Tape Drive -> Change/Show \r\n Characteristics of a Tape Drive. \r\n 3.2.3)选择我们指定的设备 \r\n 3.2.4)修改参数: \r\n Change / Show Characteristics of a Tape Drive \r\n Type or select values in entry fields. \r\n Press Enter AFTER making all desired changes. \r\n \r\n [Entry Fields] \r\n Tape Drive rmt0 \r\n Tape Drive type 3580 \r\n Tape Drive interface scsi \r\n Description IBM 3580 Ultrium Tape \r\n Status Available \r\n Location 14-08-00-0,0 \r\n Parent adapter scsi1 \r\n Connection address 0,0 \r\n Block Size (0=Variable Length) [0] \r\n Use Hardware Compression on Tape yes \r\n Activate volume information logging no \r\n Maximum size of log file (in # of entries) [500] \r\n Backward Space/Forward Space Record Mode SCSI \r\n Use Immediate Bit in Rewind Commands no \r\n Trailer Label Processing no \r\n \r\n 比如我们可以修改不使用硬件压缩 \r\n Use Hardware Compression on Tape no \r\n \r\n 这种修改是永久生效的。 \r\n |
|