• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 918
  • Last Modified:

AIX LVM command

Hi expert i m shiva ,

In AIX box i m trying to take out faulty hdisk45! But its not reducing i have used force and delete option also.

#reducevg -f -d oravg hdisk45

i have deleted all the lv's also ? can any one give me best possible way of reducing pv .
its very urgent..

thanks lots

shiva.
 
0
Maddy
Asked:
Maddy
  • 4
  • 4
  • 2
  • +1
2 Solutions
 
agriesserCommented:
Have you tried to run `rmlv` to destroy the logical volumes before `reducevg`?
What exactly is the error message you're getting?
What does your VG look like currently?`

Please post the output of:

lsvg -l oravg

You will then see logical volumes that are part of this volume group. For each lv, post the output of:

lslv -l LVNAME

0
 
MaddyUNIXAuthor Commented:
Hi agriesser:

Thanks lot for u r replay!

yes i ran #rmlv

lsvg -l oravg is empty

lslv -l lvname ( no lv's present in hdisk45)

regards,

siva
0
 
agriesserCommented:
ok, and what does:

lspv hdisk45

say?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
MaddyUNIXAuthor Commented:
if i ran

#lspv hdisk45  ( i m getting out put all the field ??????????? ?????? question mark symbol)
0
 
agriesserCommented:
It seems as if something is pretty wrong with your hdisk45. Have you tried to remove the device from the database?

rmdev -d hdisk45
0
 
MaddyUNIXAuthor Commented:
yes sir !

it says device is busy !
0
 
woolmilkporcCommented:
Seems your odm is out of sync. Use synclvodm oravg
 
0
 
agriesserCommented:
To find out what process blocks /dev/hdisk45 use:

fuser /dev/hdisk45

This will get you a list of process IDs that currently are busy on this device.
0
 
gheistCommented:
try smitty lvm for first time and press F8 to see command to be executed. Then read its manual.
0
 
woolmilkporcCommented:
Hi shiva,

you can't delete a hdisk which is part of an online VG. Don't try it, it's not possible - fortunately.
Use synclvodm oravg, as I said above, then try again reducevg oravg hdisk45.

Btw., what did you mean with "lsvg -l oravg is empty" ? Really? No more LVs in the whole VG?
If this was really so (I don't believe it), you could do something very simple to get rid of your hdisk problems.

But first, try the synclvodm and post the output of lsvg -l oravg and lsvg -p oravg, if you like, so we can see a bit clearer whats going on.

Cheers

wmp


0
 
MaddyUNIXAuthor Commented:
hi agriesser,woolmilkporc

Thanks lots u both
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now