venerdì 21 novembre 2014

Remove disk with force !

After an alt_disk_copy operation , i want to remove the altinst_rootvg so I typed:


alt_rootvg_op -X

but:

root@lpar:/#rmdev -dl hdisk0
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.

I tried to remove it in any way , creating a new vg too ....

root@lpar:/#mkvg -y vg1 hdisk0
vg1

root@lpar:/#reducevg vg1 hdisk0
ldeletepv: Volume Group deleted since it contains no physical volumes.

root@lpar:/#bootinfo -s hdisk0
122892

root@lpar:/#rmdev -dl hdisk0
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.



but with no luck , so ....












 i decided to use The Force ..... 
cleaning odm from hdisk0















I did a backup of odm :

root@lpar:/#cd /etc/objrepos
root@lpar:/etc/objrepos#for i in CuAt CuDv CuDvDr CuDep
do                                                                                                                                                        
odmget $i  /tmp/$i.orig                                                                                                                              
done

and started cleaning ...                                                                                                                                                      
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuAt
0518-307 odmdelete: 2 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q value=hdisk0 -o CuAt
0518-307 odmdelete: 0 objects deleted.                                                                                                    
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuDv
0518-307 odmdelete: 1 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q value3=hdisk0 -o CuDvDr
0518-307 odmdelete: 1 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuDep
0518-307 odmdelete: 0 objects deleted.
root@lpar:/etc/objrepos#odmdelete -q name=hdisk0 -o CuVPD
0518-307 odmdelete: 0 objects deleted.

Now let's check :

root@lpar:/etc/objrepos#lspv
hdisk1          00c8bd0467e1050a                    rootvg          active    
hdisk7          00c8bd049491a3db                    oravg           active    
hdisk5          00c8bd249bf7550f                    op11vg          concurrent
hdisk2          00c8bd0403279410                    swapvg          active    
hdisk3          00c8bd0401261e5f                    swapvg          active    
hdisk4          00c8bd0404f5b0e5                    op11vg          concurrent
hdisk6          00c8bd044596507d                    volgrp02        concurrent
hdisk18         00c8bd0421497aae                    op11vg          concurrent
hdisk19         00c8bd0421497caa                    volgrp02        concurrent
hdisk20         00c8bd0421497e41                    op11vg          concurrent
hdisk22         00c8bd04214981ea                    op11vg          concurrent
hdisk23         00c8bd0421498366                    op11vg          concurrent
hdisk24         00c8bd242149856a                    volgrp02        concurrent
hdisk25         00c8bd24214986c3                    volgrp02        concurrent
hdisk26         00c8bd2421498896                    volgrp02        concurrent
hdisk27         00c8bd0421498ac9                    volgrp02        concurrent
hdisk8          00c8bd241b8843cb                    op11vg          concurrent


WIN ! , No more hdisk0...




Nessun commento: