Re: [Hampshire] Moving home

Top Page

Reply to this message
Author: Vic
Date:  
To: hampshire
Subject: Re: [Hampshire] Moving home
> At the moment /home is on the non-raided disk, and I want to move
> that to the LVM. I will also probably move /etc there as well.
>
> Two questions:
>
> 1. How can I do it, and


Use lvcreate to make yourself a logical volume that will hold the data.
Make a filesystem on it (mkfs), mount it somewhere temporarily, then copy
all your /home stuff across. Change your /etc/fstab to reflect the nwe LV,
unmount /home, remount the new one...

> 2. If the "system" disk fails, would I be able to re-install a base
> system and access the raid/LVM?


The usual procedure is

vgscan
vgchange -a y

You might need to lvscan it after that

Note that you can do this from Knoppix 5 if you need a LiveCD way to
salvage a broken machine...

Vic.