Single command to change the attributes of all luns presented to an AIX host


 
Thread Tools Search this Thread
Operating Systems AIX Single command to change the attributes of all luns presented to an AIX host
# 1  
Old 11-02-2009
Single command to change the attributes of all luns presented to an AIX host

Hi,

I would like to know if there is a command similar to scsimgr in HP-UX that
can help me change the algorithm and reserve_policy attributes of all luns presented to an AIX host.

Otherwise I would have to use,

chdev -l hdiskX -a algorithm=round_robin reserve_policy=no_reserve

in a loop to achieve this.

Is there a less time consuming way to do this?

Thanks,
Kanna_GeekWorkz
# 2  
Old 11-02-2009
I don't know scsimgr, but i know korn shell:

Code:
lsdev -Cc disk | cut -d' ' -f1 | while read chLun ; do
     chdev -l "$chLun" -a algorithm=round_robin reserve_policy=no_reserve
done

You might have to trim the list out of lsdev a bit to filter out local hdisks.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Single LUN or multiple smaller LUNs for NFS sharing

We are using Solaris 11 Logical Domains. We NFS share a disk backup area from one LDom to other servers. The share is on a single 1.5 Tb LUN presented to the Control Domain, and as a virtual disk on the NFS server LDom. A 1.5 Tb zpool has been created on the LDom. We now need to provide more disk... (2 Replies)
Discussion started by: SallyB
2 Replies

2. Homework & Coursework Questions

Attributes value substitution with sed command

1. The problem statement, all variables and given/known data: Hi, I am trying to substitute an attributes value using sed command but it is only possible to substitute the value without space. 2. Relevant commands, code, scripts, algorithms: input xml <BillingAddress11300000... (13 Replies)
Discussion started by: Bijayan Sarkar
13 Replies

3. Shell Programming and Scripting

Attributes value substitution with sed command

Hi, I am trying to substitute an attributes value using sed command but it is only possible to substitute the value without space. input xml <BillingAddress11300000 Tag="11300000" SectionID="BLA" CustAddrName="CLAUDIA LUCIA DE ALMEIDA" CustAddrStreet="AV ENGENHEIRO RICHARD" CustAddrState="RJ"... (3 Replies)
Discussion started by: Bijayan Sarkar
3 Replies

4. AIX

StorWize v3700 and Power8 (S822) AIX, configuration best practice for LUNs?

Hello, We have an Power8 System (S822) and a IBM StorWize v3700 SAN. The OS is AIX 7.1. With this hardware from what I read I need to download/install special SDDPCM drivers, so I did (SDDPCM VERSION 2.6.6.0 (devices.sddpcm.71.rte). I carved my volumes in the StorWize and presented to... (3 Replies)
Discussion started by: c3rb3rus
3 Replies

5. AIX

How change attributes listed in lsnim?

How do I change the attributes in what lsnim lists using nim (without smit) to either clear them, remove them or modify them? nim -o change -a attribute_name=some_value host01 doesn't always work. Are there variations to change different attribute types as well? Cheers, DH (3 Replies)
Discussion started by: Devyn
3 Replies

6. Shell Programming and Scripting

Change to directory and search some file in that directory in single command

I am trying to do the following task : export ENV=aaa export ENV_PATH=$(cd /apps | ls | grep $ENV) However, it's not working. What's the way to change to directory and search some file in that directory in single command Please help. (2 Replies)
Discussion started by: saurau
2 Replies

7. Emergency UNIX and Linux Support

Change the display format for ls -l command in AIX

Hi, I am using AIX 5.3. In my server if I list the file , I got the below result in below format. ********************************************* -rw-rw--w- 1 letapp1 staff 0 Jun 8 02:53 CC00030710.cntrl ********************************************* But now I am seeing... (22 Replies)
Discussion started by: puni
22 Replies

8. Red Hat

Grow LUN presented on Linux host

Hi, I have a SAN LUN of 550 GB created as an ext3 partition of the entire lun and need to make the lun and partition larger... 600 GB # fdisk -l /dev/sdj Disk /dev/sdj: 590.5 GB, 590558003200 bytes 255 heads, 63 sectors/track, 71797 cylinders Units = cylinders of 16065 * 512 = 8225280... (3 Replies)
Discussion started by: jamba1
3 Replies

9. Shell Programming and Scripting

Multiple file rename (change in filename in unix with single command

Dear All, Please help ! i ham having 300 file with E.G. PMC1_4567.arc in seq. like PMC1_4568.arc,PMC1_4569.arc ...n and so on.. i want all those file to be rename like PMC_4567.arc ,PMC_4568.arc .. mean i want to remove 1 from first file name .. pls help.. (6 Replies)
Discussion started by: moon_22
6 Replies

10. AIX

LUNS in AIX

Hi team, 2E493F13 0612155010 P H dac0 ARRAY OPERATION ERROR 2E493F13 0612155010 P H dac0 ARRAY OPERATION ERROR 2E493F13 0612155010 P H dac0 ARRAY OPERATION ERROR 2E493F13 0612154910 P H dac0 ARRAY OPERATION ERROR 2E493F13 0612154910 P H dac0 ... (4 Replies)
Discussion started by: kkeng808
4 Replies
Login or Register to Ask a Question