The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
google unix.com



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change $HOST in /etc/hosts figaro Shell Programming and Scripting 5 04-05-2009 01:27 PM
NIM host name change kimyo AIX 2 11-12-2008 07:29 AM
Deployment Example: Sun Java Communications Suite 6 on a Single Host iBot Solaris BigAdmin RSS 0 10-07-2008 10:10 PM
Vi single character change Brett Taylor Shell Programming and Scripting 6 08-30-2006 03:07 PM
using: ssh host command majo UNIX for Advanced & Expert Users 3 03-02-2006 11:16 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 4 Weeks Ago
kanna_geekworkz kanna_geekworkz is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 4
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 (permalink)  
Old 4 Weeks Ago
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,633
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
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0