Remove volume group it's lvs and filesystems after vg's pv was deleted ?


 
Thread Tools Search this Thread
Operating Systems AIX Remove volume group it's lvs and filesystems after vg's pv was deleted ?
# 1  
Old 12-10-2008
Remove volume group it's lvs and filesystems after vg's pv was deleted ?

Hi,

Physical volume of vg was removed permanently by acident. What I need right now is to remove all vg's objects(vg itself, vg's lvs, vg's filesystems) to prepare to add new pv and create new volume group and it's objects.
This is from reducevg manual:
"Sometimes a disk is removed from the system without first running reducevg VolumeGroup PhysicalVolume. The VGDA still has this removed disk in it's memory, but the PhysicalVolume name no longer exists or has been reassigned. To remove references to this missing disk you can still use reducevg, but with the Physical Volume ID (PVID) instead of the disk name: reducevg VolumeGroup PVID"

I executed the following:
-bash-2.05b# reducevg vglgpaps 000304cb68e16728
0516-010 lqueryvg: Volume group must be varied on; use varyonvg command.
0516-882 reducevg: Unable to reduce volume group.
-bash-2.05b#

How can I do varyonvg if there is no pv ?
Acording to manual it should work - but it doesn't !
What am I donig wrong ?
(maybe I should remove vg's lvs and filesystems before - but how ?)

thank you in advance
Vilius
# 2  
Old 12-10-2008
exportvg vgname will get rid of the volume group completely.
# 3  
Old 12-10-2008
Quote:
Originally Posted by vilius
Hi,

Physical volume of vg was removed permanently by acident. What I need right now is to remove all vg's objects(vg itself, vg's lvs, vg's filesystems) to prepare to add new pv and create new volume group and it's objects.
Want to remove the complete VG information from the server and/or was that a VG consisting of one hdisk only? In both cases read the exportvg manpage.
To remove information of the removed hdisk device use rmdev -dl.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

2. Solaris

How to recover wrongly deleted volume in VxVM?

Hi On solaris 10 system my one veritas volume got accidently deleted. Now could any one tell me how to recover it. If I am taking regular backup of disk group of that volume through vxconfigbackup as I want to recover only particular volume only. (1 Reply)
Discussion started by: amity
1 Replies

3. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

4. UNIX for Dummies Questions & Answers

Confusion Regarding Physical Volume,Volume Group,Logical Volume,Physical partition

Hi, I am new to unix. I am working on Red Hat Linux and side by side on AIX also. After reading the concepts of Storage, I am now really confused regarding the terminologies 1)Physical Volume 2)Volume Group 3)Logical Volume 4)Physical Partition Please help me to understand these concepts. (6 Replies)
Discussion started by: kashifsd17
6 Replies

5. AIX

Adding a Volume Group to an HACMP Resource Group?

Hi, I have a 2 node Cluster. Which is working in active/passive mode (i.e Node#1 is running and when it goes down the Node#2 takes over) Now there's this requirement that we need a mount point say /test that should be available in active node #1 and when node #1 goes down and node#2 takes... (6 Replies)
Discussion started by: aixromeo
6 Replies

6. AIX

Logical volume name conflict in two volume group

Hello, I am a french computer technician, and i speak English just a little. On Aix 5.3, I encounter a name conflict logical volume on two volume group. The first volume lvnode01 is OK in rootvg and mounted. It is also consistent in the ODM root # lsvg -l rootvg |grep lvnode01 ... (10 Replies)
Discussion started by: dantares
10 Replies

7. Solaris

How to recover deleted logical volume.

My Solaris system administrator has doing troubleshooting to my server. He has accidental remove the hardware raid. Is it possible to recover it back? (4 Replies)
Discussion started by: webster5u
4 Replies

8. HP-UX

Unmount and remove all Logical vol.Volume group and physical disk

Hi, Someone please help me with how i can unmount and remove all the files systems from a cluster. This is being shared by two servers that are active_standby. (3 Replies)
Discussion started by: joeli
3 Replies

9. AIX

Moving a Logical Volume from one Volume Group to Another

Does anyone have any simple methods for moving a current logical volume from one volume group to another? I do not wish to move the data from one physical volume to another. Basically, I want to "relink" the logical volume to exist in a different volume group. Any ideas? (2 Replies)
Discussion started by: krisw
2 Replies

10. UNIX for Advanced & Expert Users

LVM - Extending Logical Volume within Volume Group

Hello, I have logical volume group of 50GB, in which I have 2 logical volumes, LogVol01 and LogVol02, both are of 10GB. If I extend LogVol01 further by 10GB, then it keeps the extended copy after logical volume 2. I want to know where it keeps this information Regards Himanshu (3 Replies)
Discussion started by: ghimanshu
3 Replies
Login or Register to Ask a Question