- 論壇徽章:
- 0
|
在AIX中如何改變LTO設(shè)備的參數(shù)
如果在AIX中需要改變默認(rèn)的參數(shù)如壓縮、塊大小、緩沖區(qū)等,可以使用
smit工具。
具體的方法如下:
1)確定AIX中要修改的設(shè)備
# lsdev -Cc tape
smc0 Available 14-08-00-6,0 IBM 3583 Library Medium Changer
rmt0 Available 14-08-00-0,0 IBM 3580 Ultrium Tape Drive
rmt1 Available 14-08-00-1,0 IBM 3580 Ultrium Tape Drive
rmt2 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc1 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
rmt3 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc2 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
rmt4 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc3 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
通過上面的信息我們可以知道系統(tǒng)連接了兩個(gè)磁帶庫:
a)用SCSI連接的3583,smc0帶兩個(gè)驅(qū)動(dòng)器rmt0,rmt1。
smc0 Available 14-08-00-6,0 IBM 3583 Library Medium Changer
rmt0 Available 14-08-00-0,0 IBM 3580 Ultrium Tape Drive
rmt1 Available 14-08-00-1,0 IBM 3580 Ultrium Tape Drive
b)用光纖連接的3584,三個(gè)驅(qū)動(dòng)器各自的control path都被使能。
rmt2 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc1 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
rmt3 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc2 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
rmt4 Available 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
smc3 Available 30-68-01 IBM 3584 Library Medium Changer (FCP)
1.1)假設(shè)我們要修改SCSI連接的3583上的SCSI ID=2的驅(qū)動(dòng)器的參數(shù):
通過分析我們可以確定rmt1的SCSI ID是1,正是我們要修改的對(duì)象。
1.2)假設(shè)我們要修改光纖連接的3584上的驅(qū)動(dòng)器的參數(shù):
我們還要通過三個(gè)驅(qū)動(dòng)器的WWN來區(qū)分他們。首先驅(qū)動(dòng)器的WWN可以
通過驅(qū)動(dòng)器上面的標(biāo)簽得到,然后你可以使用lsattr命令得到WWN和
設(shè)備名的對(duì)應(yīng)關(guān)系:
#lsattr -El rmt2
block_size 0 Block Size (0=Variable Length) True
compress yes Use Hardware Compression on Tape True
autoload no Use Autoloading Feature at End-of-Tape True
logging no Activate volume information logging True
max_log_size 500 Maximum size of log file (in # of entries) True
space_mode SCSI Backward Space/Forward Space Record Mode True
rew_immediate no Use Immediate Bit in Rewind Commands True
trailer_labels no Trailer Label Processing True
retain_reserve no Retain Reservation False
devtype ULT3580- Device Type False
scsi_id 0x213ca SCSI Target ID True
lun_id 0x0 Logical Unit Number True
location Location True
ww_name 0x5005076300410803 World Wide Name False
new_name New Logical Name True
1.3)如果驅(qū)動(dòng)器上沒有WWN標(biāo)簽,或復(fù)雜的SAN環(huán)境,或使用FC-SCSI-GATAWAY
的情況我們可以通過SAN交換機(jī)來確定,限于篇幅這里不做介紹。
2)參數(shù):
3.1)顯示現(xiàn)有參數(shù)的命令:
# lscfg -vl rmt1
DEVICE LOCATION DESCRIPTION
rmt7 30-68-01 IBM 3580 Ultrium Tape Drive (FCP)
Manufacturer................IBM
Machine Type and Model......ULT3580-TD1
Serial Number...............6811288675
Device Specific.(FW)........25D4
#lsattr -El rmt2
block_size 0 Block Size (0=Variable Length) True
compress yes Use Hardware Compression on Tape True
autoload no Use Autoloading Feature at End-of-Tape True
logging no Activate volume information logging True
max_log_size 500 Maximum size of log file (in # of entries) True
space_mode SCSI Backward Space/Forward Space Record Mode True
rew_immediate no Use Immediate Bit in Rewind Commands True
trailer_labels no Trailer Label Processing True
retain_reserve no Retain Reservation False
devtype ULT3580- Device Type False
scsi_id 0x213ca SCSI Target ID True
lun_id 0x0 Logical Unit Number True
location Location True
ww_name 0x5005076300410803 World Wide Name False
new_name New Logical Name True
3.2)設(shè)置參數(shù)的方法:
我們可以使用SMIT工具修改某一個(gè)指定的LTO設(shè)備。
具體方法是:
3.2.1)#SMITTY
3.2.2)選擇菜單Devices -> Tape Drive -> Change/Show
Characteristics of a Tape Drive.
3.2.3)選擇我們指定的設(shè)備
3.2.4)修改參數(shù):
Change / Show Characteristics of a Tape Drive
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Tape Drive rmt0
Tape Drive type 3580
Tape Drive interface scsi
Description IBM 3580 Ultrium Tape
Status Available
Location 14-08-00-0,0
Parent adapter scsi1
Connection address 0,0
Block Size (0=Variable Length) [0]
Use Hardware Compression on Tape yes
Activate volume information logging no
Maximum size of log file (in # of entries) [500]
Backward Space/Forward Space Record Mode SCSI
Use Immediate Bit in Rewind Commands no
Trailer Label Processing no
比如我們可以修改不使用硬件壓縮
Use Hardware Compression on Tape no
這種修改是永久生效的。
|
|