On Wed, 2007-12-05 at 15:24 +0000, Mick wrote:
> Hi All,
>
> Could you please hold my hand sorting some LVMs - I have no experience on
> this
> and would not like to mess it up:
>
> I have create a PV which currently contains /dev/sda5. I have also created a
> new PV which contains /dev/sdc1. I want to move /dev/sda5 (11.9G)
> to /dev/sdc1 (150G) and then remove /dev/sda5 from this OS and later on from
> this machine. How should/could I go about it?
1. Back up your data!
2. Add /dev/sdc1 to the same VG as /dev/sda5 (vgextend)
3. pvmove -v /dev/sda5 /dev/sdc1
4. Wait a really long time
5. Verify nothing is on sda5 (pvdisplay /dev/sda5)
6. Deallocate sda5 (pvchange -x n /dev/sda5)
7. Remove sda5 from the VG (pvremove)
--
[EMAIL PROTECTED] mailing list