[plug] Disk resize question

Arie Hol arie99 at ozemail.com.au
Thu Mar 6 14:13:12 WST 2008



On 6 Mar 2008 at 13:28, Ian Kent wrote:

> 
> On Thu, 2008-03-06 at 12:16 +0900, Chris Griffin wrote:
> > Greetings once again,
> > 
> > I am using Fedora 8 and VirtualBox. I had a 6GB disk defined and got 
to
> > the point of having only about 107MB of space left. I have defined a
> > second disk of 7GB and done all the necessary to duplicate the 
partition
> > definitions and copied the contents of the partitions across (it had
> > default partitioning from install time). I can now boot the new disk 
but
> > it still does not show the extra space.
> > 
> > [root at localhost ~]# df -h
> > Filesystem            Size  Used Avail Use% Mounted on
> > /dev/mapper/VolGroup00-LogVol00
> >                            4.7G  4.3G  107M  98% /
> > /dev/sda1             190M   19M  162M  11% /boot
> > tmpfs                   252M     0  252M   0% /dev/shm
> > [root at localhost ~]# 
> > 
> > 
> > I used dd to copy partitions (eg.     dd if=/dev/sda2
> > of=/dev/sdb2    )
> > Did I miss something?
> 
> I'm not familiar with VirtualBox but why are you trying to replace the
> disk? Why not just add it to the volume group and expand the logical
> volume?
> 
> Ian
> 

If you are using LVM, you do not need to mess around around with 
partitioning and using dd to copy/move stuff around.

LVM has all the tools you need to 'add space' to your filesystems 
regardless of your partitions and hard drive orientation and numbers - so 
long as you have the available space within your system ...........

For introduction to LVM - goto :

http://www.ibm.com/developerworks/linux/library/l-lvm2/

For tutorials on using LVM - goto :

Part 1:

http://www.ibm.com/developerworks/linux/library/l-lvm/

Part 2 :

http://www.ibm.com/developerworks/linux/library/l-lvm2.html

These tutorials should get you in the right direction

HTH

Regards Arie
------------------------------------------------------------------
 For the concert of life, nobody has a program.
------------------------------------------------------------------



More information about the plug mailing list