Hi Felipe, You can use pvdisplay, vgdisplay and lvdisplay --all (or verbose, or something related... look at the damn manual...:) will list everything related to your disks, lvs, vgs and all. Redirect the output to a file, and use some awk/cut/grep magic (whatever make you feel more confortable). Backup everything first, or the Murphi's Law will surely be applied to you.
> -----Original Message----- > > From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of > Felipe Bannwart Perina > Sent: Wednesday, May 14, 2008 9:04 AM > To: [email protected] > Subject: question regarding VGs > > Hi all! > > Is there any utilitary I can use to check a disk and find out what (if > any) VG that disk belongs to? > The situation I have is: I have lots of disks here and I do not know if > they belong to any VG. > I thought on using LVM tools (pvscan, lvscan, vgscan....) but I'm not sure > if they affect the disk in any way. Corrupting them could be disastrous if > they're being used on a VG. > > > > Felipe Bannwart Perina > -------------------------------------------------- > IBM - Server Systems Operations - Hortolândia - Brasil > Mainframe Support - z/Linux > Phone: +55 (19) 2132 - 1937 / T/L: 839 - 1937 > E-mail: [EMAIL PROTECTED]<http://www.marist.edu/htbin/wlvindex?LINUX-390> > -- Mauro Souza IBM - z/VM and Linux Specialist http://mauro.limeiratem.com - registered Linux User: 294521 Scripture is both history, and a love letter from God. ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
