[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Question about LVM



On Wed, Jul 11, 2001 at 06:43:09AM -0600, fox theendoftime net wrote:
> Hi;
> 
> I ran into this issue with AIX lvm.  A hard drive died and the IBM
> hardware monkeys removed the drive before mirroring could be broken
> (removing lv copies down to one, and reducing the volume group by the one
> dead drive)

Tren,

Linux LVM doesn't support mirroring so far.
Therefore the AIX case you faced is not possible today.

You can achive mirroring by using Multiple Devices as PVs or hardware
raid systems.


> 
> However, because the drive had been removed before this could be done, the
> VGDA still had the old PVID of the old hdisk and would not let me remove
> it by the cannonical hdisk name.  The eventual solution was to run the
> rmlvcopy command and reducevg command with the PVID instead of the
> cannonical hdisk name.  There is no such command as rmlvcopy (or anything
> related as far as I can tell with Linux) but the reducevg is the same as
> vgreduce.  I am wondering if it's possible for a PV to be removed from the
> VG in such a way that the PV path (device name?) no longer exists in the
> system and thus, you wouldn't be able to do a vgreduce with the PV path
> (device name?)
> In this case, is it possible to run the vgreduce command
> with the PVID of the removed drive?

vgreduce accesses the *empty* PV to be reduced from some VG by device node.
In case it doesn't exist -> mknod it again.

> Or does the Linux LVM handle this
> automagically?  Is this even a possible case under Linux?  I have to admit
> I'm still new to the Linux LVM after having worked with AIX LVM for years
> now.

It's not a big deal with Linux LVM. As mentioned, the PV needs to be empty
in order to remove it from a VG. If the device node doesn't exist when trying
vgreduce, the admin probably has removed it by accident.

> 
> Thanks,
> 
> Tren.
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]