Solved

How can i change attribute settings on AIX and remove dead paths from vio server

Posted on 2010-08-14
2
1,273 Views
Last Modified: 2013-11-17
EMC says configuration of reserver_lock attribute  to be set “NO”  for all the disk instead of “yes”  and there is dead paths also need to be removed on a vio server

1) how can i change the configuration of reserver_lock attribute  to be set “NO”  for all the disk instead of “yes”  . please give step by step process in doing that.

2) how can i remove dead paths from a vio server.

thank you.
0
Comment
Question by:assistunix
2 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 400 total points
ID: 33439994
Hi,

1)  
Check disk attributes with "lsdev -dev diskname -attr"
Replace diskname with the actual name of the disk.

Change the reserve_lock attribute, if present, with "chdev -dev hdiskname -attr reserve_lock=no"
Again, replace diskname with the actual name of the disk.

Please take note that the disk in question must not be mapped to an active vdev (i.e. it must not be "busy").
If you can't remove the mapping to recreate it after "chdev", you could add the flag "-perm" to the "chdev" command. This will apply changes to the ODM database only. They will be applied to the device on reboot.

The above describes IOSCLI (VIO) commands. You can achieve the same by issuing "oem_setup_env" to get a root shell and then use the standard AIX commands "lsattr -El diskname" and "chdev -a reserve_lock=no -l diskname". The "Apply to Database Only" flag is "-P" here.

"reserve_lock" is specific for EMC disks. For standard MPIO disks the respective attribute is "reserve_policy", which must be changed from "single_path" to "no_reserve", if applicable.

2)
What do you mean with "dead paths"?

Anyway, the simplest method to remove a path is to issue "oem_setup_env" to then use
"smitty mpiopath_remove_path". Select the path you'd like to remove with <F4> and Go.

Of course you can also use "lspath" and "rmpath" in the IOSCLI (VIO) environment, syntax is:

lspath [-dev DeviceName] [-pdev Parent] [-status Status] [-conn Connection] [-field FieldName ...] [-fmt delimiter]

rmpath {[-dev Name] [-pdev Parent] [-conn Connection]} [-rm]

wmp
0
 
LVL 5

Assisted Solution

by:balasundaram_s
balasundaram_s earned 100 total points
ID: 33448658
May be Powerpath in use, because you said EMC.   Run the "Powermt check" as a root user, and then reply the prompted questions.
You may consider running "powermt config" and then "powermt display".
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question