Tuesday, October 16, 2007

AIX: odmget examples


odmget -q"name=hdisk0" CuDv # get ODM object in the CuDv that describes hdisk0 disk device

odmget -q"name=hdisk0 and attribute=pvid" CuAt # get ODM object that stores the PVID

odmget -q"value3=hdisk0" CuDvDr # get major,minor number of special file for hdisk0

odmget -q"name=rootvg" CuDep # query ODM class to identify all LVs that belong to rootvg

odmget -q"parent=rootvg" CuDv # the same as previous command

Can be usefull when troubleshooting LVM related problems

No comments: