Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Ghost Volume Group

Status
Not open for further replies.

normntwrk

MIS
Aug 12, 2002
336
US
We have an F80 that to make a long story short one of the power supplies failed and that seemed to have nuked the Raid 5 arrays. We were able to get one of the Raid Arrays back intact but we can't get the other Array back so it will stay configured after the machine reboots (it comes up either dead or the drives come up as failed or it just refuses to rebuild after I revive the drives.)

Anyway for now we are going to run with one Raid array as it is big enough for what we need for now. My issue is that I have a "Ghost" array sitting out there and I can't remove it. The documentation says that to do a reducevg it needs to be varied on which of course I can't do as it doesn't exist.

Any Ideas?

Norm
 
Here is the output requested: hdisk0 and 1 are mirrored, hdisk3 is my good remaining array

# lspv
hdisk0 0000f04f7fee9b72 rootvg
hdisk1 0000f04f7ce6271d rootvg
hdisk3 0000f04fbbf0c7d1 raidvg3

# lsvg -l `lsvg`
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 64 128 2 open/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 1 2 2 open/syncd /
hd2 jfs 33 66 2 open/syncd /usr
hd9varjfs 2 4 2 open/syncd /var
hd3 jfs 1 2 2 open/syncd /tmp
hd1 jfs 1 2 2 open/syncd /home
lv00 jfs 19 38 2 open/syncd /sybase
lv01 jfs 25 50 2 open/syncd /marc2000
lv02 jfs 205 410 2 open/syncd /database
0516-010 lsvg: Volume group must be varied on; use varyonvg command.

rmt0 Available 11-08-00-0,0 SCSI 4mm Tape Drive
cd0 Available 11-08-00-1,0 16 Bit SCSI Multimedia CD-ROM Drive
hdisk0 Available 11-08-00-2,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 11-08-00-4,0 16 Bit LVD SCSI Disk Drive

# lsdev -Ccdisk
hdisk0 Available 11-08-00-2,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 11-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk3 Available 3A-08-00-1,0 SCSI Disk Array RAID 5

# df
Filesystem 512-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 32768 14504 56% 1459 18% /
/dev/hd2 1081344 392112 64% 12380 10% /usr
/dev/hd9var 65536 46648 29% 233 3% /var
/dev/hd3 32768 8288 75% 139 4% /tmp
/dev/hd1 32768 1544 96% 400 10% /home
/dev/lv00 622592 94976 85% 1630 3% /sybase
/dev/lv01 819200 687496 17% 1555 2% /marc2000
/dev/lv02 6717440 3089344 55% 32 1% /database
/dev/lv04 419430400 172758384 59% 15171 1% /lfs2
/dev/lv05 27262976 3324536 88% 9626 1% /lfs
/dev/lv07 8388608 4247480 50% 9773 1% /work





 
Here is lsvg, I see I actually have 2 "Ghosts",... raidvg1 and raidvg2 are not there

# lsvg
rootvg
raidvg1
raidvg3
raidvg2


thanks
 
#varyoffvg raidvg2
0516-010 lqueryvg: Volume group must be varied on; use varyonvg command.
0516-010 lqueryvg: Volume group must be varied on; use varyonvg command.
0516-010 lvaryoffvg: Volume group must be varied on; use varyonvg command.
0516-942 varyoffvg: Unable to vary off volume group raidvg2.
#
 
Did that, also tried this

# varyonvg raidvg1
PV Status: 0000f04fb413f7fd PVNOTFND
0516-013 varyonvg: The volume group cannot be varied on because
there are no good copies of the descriptor area.
# reducevg raidvg1 0000f04fb413f7fd
0516-010 lqueryvg: Volume group must be varied on; use varyonvg command.
0516-882 reducevg: Unable to reduce volume group.
#
 

What does 'odmget CuDv | grep -p raidvg2' say?

Try 'odmdelete -o CuDv -q "name = raidvg2"'
and 'odmdelete -o CuDv -q "parent = raidvg2"'

P.S. Take a backup first.

Cheers
 
# odmget CuDv | grep -p raidvg2
CuDv:
name = "raidvg2"
status = 0
chgstatus = 1
ddins = ""
location = ""
parent = ""
connwhere = ""
PdDvLn = "logical_volume/vgsubclass/vgtype"

 
I don't really have any experience with the ODM and I don't think anyone else here does either. We are just getting this machine restored from Tape to the good array so I think I will live with the Ghosts for the time being and tackle them later.

I think you've got me going in the right direction

Thanks a million

Norm
 
I see you posted a few logs from running other vg-related commands, but nothing that indicates you tried exportvg.
 
I tried the exportvg and it didn't return anything.....no errors or any information. Did it for raidvg1 and raidvg2
 
exportvg generally won't return anything. do an lsvg now and see if they are gone.
 
hmmm. At this point it looks like odm hacking time. Sorry 'bout that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top