Logical Volume Creation

C M Reinehr cmr at amsent.com
Mon Dec 8 07:25:19 PST 2008


Hi Kurt,

On Sun 07 December 2008 16:37, Kurt Wall wrote:
> Hi, list,
>
> I want to add an existing disk to Fedora 10's LVM systems. If I
> understand correctly, it looks like I need to do the following:
>
> 0) Backup the data on the target disk (/dev/sdb)
> 1) Create a new physical volume:
>    # pvcreate /dev/sdb
> 2) Add the new physical volume to the existing volume group:
>    # vgextend VolGroup00 /dev/sdb
> 3) Restore the data backed up in step 0
>
> What I'm trying to do is add the disk that contains my /home. So, rather
> than adding it to an existing volume group (which I think is the procedure
> I've outlined above), should I instead create a new volume group and then
> a new logical volume inside that?
>
> Thanks,
>
> Kurt

I'm not an expert at this, so please don't take my advice as absolutely 
correct--pay attention to the details--but I think you're generally right.

I don't know of any reason why you should create a new volume group rather 
than just expand your existing one. I think on a single PC/workstation 
keeping it simple with a single volume group probably is the best idea.

You've left out one final step. After you extend your volume group you either 
will have to expand a logical volume or add another logical volume to be able 
to access the additional space you've added. Which, I think, is a matter of 
personal taste. My logical volumes correspond to what, previously, would have 
been partitions, i.e., lv_home mounted as /home, lv_var mounted as /var, etc.

HTH.

cmr
-- 
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC



More information about the Linux-users mailing list