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

Re: Moving to LVM



André Berger wrote:
Hi there!

I'm on Etch and have got two external USB disks, one GB each in size.
Disk1 contains one ext3 partition and my media files, and is full.
Disk2 is empty and should take future media files. I don't have a
third disk I could use for backups.

My plan is to create a Logical Volume Group to span two partitions
located on different disks, and export that LV group via NFS. If I
got it right (please correct me), I need partitions of type 8e on
both disks. So I thought I

1 partition disk2 8e 2 create a LV group and add disk2/p1 to it
3 create an ext3 filesystem on the LV
3 copy the data from disk1/p1 to the LV
4 partition disk1/p1 8e
5 add disk1/p1 to the LV group
6 resize the LV ext3 filesystem to 2 TB, so it spans both disks resp.
  partitions
you're basically on the right track, but there are 3 things to understand about LVM
1 Physical Volume
2 Volume Group
3 Logical Volume

1 in this case is disk1 and (eventually) disk2
2 is (eventually) disk1 + disk2 together so they appear as one
3 is a partition you can place on 2


What happens if, for whatever reason, just one of the disks is
available?
to make a long story short,
if you combine the 2 disks as one, you are going to wish you had a third disk for backups.
-André



--

www.songshu.org
Just another collection of nuts


Reply to: