Wednesday 4 January 2012

AIX - LVM - Change Logical Volume

In this change LV option we can change LV name and permissions for the LV using chlv command.
#chlv –n newlvname oldlvname
#lslv testlv


Output is some details about testlv
#chlv –n newlv testlv

After executing the above command the testlv renamed to newlv
#lslv testlv
Some error message will come i.e. testlv is not found
#lslv newlv

It will show newlv details, because testlv is renamed as newlv.


Changing the LV permissions: If we want to change LV permissions to read only then the command will be
#chlv –p r testlv

After executing the above command testlv permissions changed as read only , so we can only read the LV, we can not copy new files into this LV.

No comments:

Post a Comment