How to take a backup of the ODM

cd /etc/objrepos
for i in CuAt CuDv CuDvDr CuDep
do
odmget $i > /tmp/$i.orig
done

CuAt = Customized Attribute
CuDv = Customized Device
CuDvDr = Customized Device Driver
CuDep = Customized Dependency
CuVPD = Customized Vital Product Database

 

 

How to find and remove a disk from ODM

First, take a backup of the ODM files

cd /etc/objrepos
for i in CuAt CuDv CuDvDr CuDep
do
odmget $i > /tmp/$i.orig
done

CuAt = Customized Attribute
CuDv = Customized Device
CuDvDr = Customized Device Driver
CuDep = Customized Dependency
CuVPD = Customized Vital Product Database

 

1. Find disk entries in ODM database:
odmget -q name=hdisk# CuAt
odmget -q value=hdisk# CuAt
odmget -q name=hdisk# CuDv
odmget -q value3=hdisk# CuDvDr
odmget -q name=hdisk# CuDep
odmget -q name=hdisk# CuVPD
odmget -q name=hdisk# CuPath
odmget -q name=hdisk# CuPathAt

2. Remove disk entries from ODM database:
odmdelete -q name=hdisk# -o CuAt
odmdelete -q value=hdisk# -o CuAt
odmdelete -q name=hdisk# -o CuDv
odmdelete -q value3=hdisk# -o CuDvDr
odmdelete -q name=hdisk# -o CuDep
odmdelete -q name=hdisk# -o CuVPD
odmdelete -q name=hdisk# -o CuPath
odmdelete -q name=hdisk# -o CuPathAt

 

How to find VG from ODM

First, take a backup of the ODM files

cd /etc/objrepos
for i in CuAt CuDv CuDvDr CuDep
do
odmget $i > /tmp/$i.orig
done
CuAt = Customized Attribute
CuDv = Customized Device
CuDvDr = Customized Device Driver
CuDep = Customized Dependency
CuVPD = Customized Vital Product Database

1. How to find VG (rootvg) in ODM database:
odmget -q name=rootvg CuAt
odmget -q name=rootvg CuDv
odmget -q parent=rootvg CuDv
odmget -q value1=rootvg CuDvDr
odmget -q value3=rootvg CuDvDr
odmget -q name=rootvg CuDep

 

How to find and remove a LV from ODM

First, take a backup of the ODM files

cd /etc/objrepos
for i in CuAt CuDv CuDvDr CuDep
do
odmget $i > /tmp/$i.orig
done

CuAt = Customized Attribute
CuDv = Customized Device
CuDvDr = Customized Device Driver
CuDep = Customized Dependency
CuVPD = Customized Vital Product Database

 

1. Find LV entries in ODM database:
odmget -q name=LV CuAt
odmget -q name=LV CuDv
odmget -q value3=LV CuDvDr
odmget -q dependency=LV CuDep

2. Remove LV entries in ODM database:
odmdelete -q name=LV CuAt
odmdelete -q name=LV CuDv
odmdelete -q value3=LV CuDvDr
odmdelete -q dependency=LV CuDep

Advertisements