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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bye Bye Logical Volume 1

Status
Not open for further replies.

strider952

Technical User
May 2, 2002
9
US
Luckily, this is a test system so you don't have to react in horror to what I've done. :)

I was running tests that ended up corrupting a filesystem to the point fsck wouldn't run. I wasn't concerned about the data, so I was going to just delete everything and recreate the VG, LV and FS.

But somehow my newbie approach to recreating this has got me in a fix. It won't let me remove the Volume Group because it isn't varied on. It won't vary on because the disks are all corrupted. It won't let me remove the file systems because the VG isn't varied on. And so on and so on....

Is there a way I can "force" AIX to just remove the file system, Logical Volume and Volume Group? Either through smit, command line, or just using brute force and deleting files manually?

I promise not to be so heavy-handed in the future, but right now I just want my disks back. :)
 
Can you list some of the error messages when you try to
umount filesystems , varyoff volume group , etcc.
 
Strider,

The answer is simple, if you are going to recreate everything from scratch and the VG is varied off, just run :

exportvg <vgname>

As you may know this will remove all definitions for the VG from the ODM and /etc/filesystems, it will be like the VG never existed.

Then lspv will just show that the disk/disks has no VG associated to it, create a new VG via smitty vg or mkvg and answer yes to destroying the data on the disk and et voila you have a new VG in which to re-create the LV's and associated filesystems.

Best of luck,

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top