Kelrid
November 1st, 2009, 10:56 PM
Hello forum!
I've searched for an answer to my question without success. Maybe I used wrong search syntax or maybe is't not possible to achieve what I'm looking for. This is what I've done and what I'm trying to do:
I installed Ubuntu Server 8.04 LTS to one harddrive (/dev/sda). I divide the disk into one /boot and the rest to one large "Managed by LVM" partition.
I called my vg for volg01. (I know, very creative thinking by my part.)
In volg01 I created several volumes and among them a /home vol.
Later on I added a new harddrive (/dev/sdb) and executed
"pvcreate /dev/sdb" followed by
"vgextend volg01 /dev/sdb" and
"lvextend volg01 /dev/volg01/home -l +(all avaible PE) ". After that,
"resize2fs /dev/volg01/home".
Everything worked out very smooth, even though I did all this online. (Never umount)
Now to what I'm trying to achieve:
I would like to remove the first drive, (/dev/sda) from the volume "/home" making "/home" only to reside on second drive (/dev/sdb/).
I've read a lot of guides and posts but have only found out how to remove an entire disk from a volumegroup and that's not what I want. I want to keep the disk in the group just remove it from this volume (/home). Making /dev/sdb to store all /home data and the rest of the system to /dev/hda.
Further on, is there a way to see which volume occupies which disk? Where the PE goes?
Would be tremendous happy if someone could point/hint me in right direction or present solution.
/K
I've searched for an answer to my question without success. Maybe I used wrong search syntax or maybe is't not possible to achieve what I'm looking for. This is what I've done and what I'm trying to do:
I installed Ubuntu Server 8.04 LTS to one harddrive (/dev/sda). I divide the disk into one /boot and the rest to one large "Managed by LVM" partition.
I called my vg for volg01. (I know, very creative thinking by my part.)
In volg01 I created several volumes and among them a /home vol.
Later on I added a new harddrive (/dev/sdb) and executed
"pvcreate /dev/sdb" followed by
"vgextend volg01 /dev/sdb" and
"lvextend volg01 /dev/volg01/home -l +(all avaible PE) ". After that,
"resize2fs /dev/volg01/home".
Everything worked out very smooth, even though I did all this online. (Never umount)
Now to what I'm trying to achieve:
I would like to remove the first drive, (/dev/sda) from the volume "/home" making "/home" only to reside on second drive (/dev/sdb/).
I've read a lot of guides and posts but have only found out how to remove an entire disk from a volumegroup and that's not what I want. I want to keep the disk in the group just remove it from this volume (/home). Making /dev/sdb to store all /home data and the rest of the system to /dev/hda.
Further on, is there a way to see which volume occupies which disk? Where the PE goes?
Would be tremendous happy if someone could point/hint me in right direction or present solution.
/K