Removing devices from ODM


 
Thread Tools Search this Thread
Operating Systems AIX Removing devices from ODM
# 1  
Old 06-13-2006
Removing devices from ODM

I have replace a couple of hdisks in and old AIX 4 system. I have them assigned to the hdisk numbers previously in the system. When I don an lsvg -p vgname, i see them old devices by device number still come up as missing. I think they are still in the ODM,, how can I remove them?

Thanks
Mike
# 2  
Old 06-14-2006
To remove a disk:
rmdev -dl hdiskX
Is this what you want?
Could you post lspv/lsvg/lsdev -Cc disk output?
# 3  
Old 06-14-2006
Computer handy script

#set -vx
echo "What do you wish to delete?"
read ITEM
>/tmp/odmdel.ksh
CLASS="CuAt CuDep CuDv CuDvDr CuVPD"
for i in $CLASS
do
odmget $i | grep $ITEM >/dev/null
if [ $? -eq 0 ];then
ATTR=`odmget $i | grep $ITEM | sort -n | uniq`
echo odmdelete -o $i -q `echo \"$ATTR\"| awk '{print $0}'` >> /tmp/odmdel.ksh
fi
done
chmod 700 /tmp/odmdel.ksh
# 4  
Old 06-14-2006
Here is the lspv. hdisk 2 and 3 were replaced and discovered.
---------------------------------------------------------------
hdisk0 00004044f15c9063 rootvg
hdisk1 0002430911ced77c rootvg
hdisk2 00024309cf54760e rootvg
hdisk3 00024309cf560ba8 ascentvg
hdisk4 000243090181befa ascentvg
hdisk5 000243099ff4b502 ascentvg
hdisk6 000243099ff4c2a4 plcvg
hdisk7 0002430901949cf6 hcsjbvg
hdisk8 0002430901885cca hcsjbvg
hdisk9 00024309018912ad hcsjbvg
hdisk10 00024309ee64a17e plcvg
hdisk11 00024309fb394830 sjbvg
hdisk12 000243090d34d131 sjbvg
hdisk13 00007628aeef81c1 sjbvg
hdisk14 00007628aef20f1e sjbvg
hdisk15 00007628aef27c23 sjbvg
hdisk16 00007628aef2d570 ascentvg
---------------------------------------------------------------


but when I do a lsvg -p rootvg I see:
---------------------------------------------------------------
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 268 7 00..07..00..00..00
hdisk1 active 268 10 00..10..00..00..00
0516-304 lsvg: Unable to find device id 0000404414206652 in the Device
Configuration Database.
0000404414206652 missing 268 129 54..38..00..00..37
hdisk2 active 537 537 108..107..107..107..108
---------------------------------------------------------------

the new hdisk2 is part of the vg, but the old device is still somewhere. I need to get rid of it.

This happens in both of the vg's I added a new disk

Thanks
Mike
# 5  
Old 06-14-2006
Seems that you didn't do the replacement in the right way... You should have done
a reducevg before. If you did not, then try:

Code:
reducevg rootvg 0000404414206652

good luck Smilie
# 6  
Old 06-14-2006
I had to use the -d option to force the deletion of partitions, but it worked.

Thanks
Mike
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX Migration issue with EMC ODM sets

Hi Experts , I want to start migrating our AIX 6.1 to AIX 7.1 . I am planning to use alt_disk_migration . Chris gibson has awesome documentation in the internet. However I am running into an issue with EMC odm filesets . So my current OS is AIX 6.1. and I have this : lslpp -l | grep EMC ... (7 Replies)
Discussion started by: JME2015
7 Replies

2. AIX

How to add the attribute to odm if it contains negative value?

Hi All, I am trying to add odm_wait attribute to CuAt programatically using putattr(&pCuAt). I was able to add when the odm_wait has positive value . But, I am facing issues when the odm_wait has negative value As per IBM, these are the odm_wait possible values #define ODM_WAIT -1 /*... (3 Replies)
Discussion started by: Sachin1987
3 Replies

3. AIX

Removing object from ODM base

Hello! I did a big mistake and now I have to change the ODM base manually :wall: I had a server of test with 2 VG (rootvg and datavg). I had to test something on it with an other AIX version. So, to be sure to restore it, i did a mksysb before but I had completly forgotten the second vg and... (1 Reply)
Discussion started by: Castelior
1 Replies

4. AIX

Problem with the ODM base

Hi, I gonna try to explain my problem. When I list my tty I have something like that: sa3 is the RAN where the tty are connected. Yesterday I tried to delete every tty from the RAN I had a problem with a tty which was not possible to delete with rmdev -dl, so I had to : - delete it... (0 Replies)
Discussion started by: Castelior
0 Replies

5. AIX

remove default gateway on ODM

Hi All, I remove the default gateway by using a command line but I need also to remove it from ODM so that reboot will not trigger it back. How do I remove it from ODM of AIX 5.3? Thanks for any comment you may add. (4 Replies)
Discussion started by: itik
4 Replies

6. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

7. AIX

Odm & Lvm

Can i have BIG help on ODM and LVM??? I m new to AIX..... Devang (2 Replies)
Discussion started by: 10aix
2 Replies

8. AIX

Script for Comparing VGDA and ODM

Hi there guys, if you have already this script as this will help us in determining of the two are consistent, and if it is not, which is the one correct. Hope you also have for this one.:) (1 Reply)
Discussion started by: sky_lark02
1 Replies

9. UNIX Benchmarks

ocs_vtsup: error locking odm database

Someone know something about this error ? We have 5.2 and HACMP Cluster. (1 Reply)
Discussion started by: hjara
1 Replies

10. UNIX for Advanced & Expert Users

Clean an LV out of the ODM

I recently had a disk crash and was not able to clean the dump lv off the disk. Now trying to create new lvdump I am running into errors. My question is how do I remove the old lv out of the ODM? I have tried going through smit and also just rmlv and it cannot find the lv. Yet when I run lslv on... (0 Replies)
Discussion started by: Wamland
0 Replies
Login or Register to Ask a Question