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

Re: [linux-lvm] Converting my Root file system to LVM



Rupert Heesom writes:
> I want to pvmove the file contents of my 2nd disk (/dev/sdb) to my 1st
> disk (/dev/sda).  My 1st disk is nice & quiet!  Now the lvm-howto
> specifies my next step (adding the "old partition" into the Lvol) as --
> 
> pvcreate /dev/sda   <using my device names>
> vgextend vg /dev/sda
> 
> ---  Seeing as I want to do a pvmove of data from /dev/sdb to /dev/sda,
> when would I do the pvmove?   As I understand LVM, I need to have the PV
> created and integrated into the VG before I can use pvmove - is this
> correct?   Then, once pvmove is used, I can then extend the LV & file
> system to cover both PVs using e2fsadm, right?

Yes, you can do that...  However, once you have LVM you should start to
think differently about "partitions" and such.  You can create a lot of
small partitions for different needs.

Why is this useful?  Because it makes moving stuff around, updating the
OS, etc easier.  You can have multiple OS installs, but keep your /home
and /mp3 data available to both.  You can put /mp3 on a new disk and it
will spin down when you are not listening to them.  You can put /var/log
and /var/spool/mail on different LVs so that lots of logs or lots of
email don't make your system unusable.

Cheers, Andreas
-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


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