[linux-lvm] How exactly does LVM's get written?

Kevin Richard Kevin_Richard at bellsouth.net
Fri Nov 5 23:16:13 UTC 2004


I have searched many topics in archive and even randomly scanned for any
info related to this but have only come away with a "I think it works this
way" feeling.

I set up two 80gig drives as one 160gig VG  /dev/VG1/LV1  I then proceeded
to copy about 93 gigs of data from a 100gig drive that I will hopefully add
to the LV to make it 260gigs.

My questions are:

1. Is this a "spill over" type of write method where it will fill up hde1
(first 80gig) and then move to hdf1 (other 80gig) and then of coarse on to
hdg1 (100gig)?  Which would allow me the convenience of having one HUGE
mount and thus not having to constantly monitor and move data to 3 different
drives as space is needed.  Yet it keeps the data somewhat separated (except
for the "spill over" that might get wrote to two drives at some point) so if
I lose a hard drive I only lose what is on that drive and can just replace
the drive and recreate the VG and salvage all the data on the other two
drives.  Is this a correct assumption?  I am trying to avoid the disaster of
a Raid 0 type of system where if you lose one drive you have lost all 3
drives!

2. Is there any way to tell what PE's contain what data?  or to see how the
volumes are filling up?  This would essentially allow me to answer my own
first question and also verify that it is doing as I want it to do.  To
clarify, I would be able to tell that Datafile.X which is a 1gig file is
written to PE's stored on hde1 or hde1 AND hdf1.

Thanks for taking the time to read this and help out a Noob!  If this all
works out I will definitely be spreading the gospel about LVMs for not many
folks are really aware of them too much it seems.

Look forward to hearing your responses,
Kevin




More information about the linux-lvm mailing list