Adding new disks, include in volume group

Gary Stainburn gary.stainburn at ringways.co.uk
Wed Jun 15 12:54:01 UTC 2005


On Monday 13 June 2005 4:33 pm, Paul Howarth wrote:
>
> You can use ext2online to resize a mounted ext2/ext3 filesystem, so a
> rescue CD might not be needed (ext2online can't always resize a
> partition but it'll tell you if it can't).
>
> The procedure basically involves using pvcreate to create LVM
> physical volumes on the new disks, vgextend to add those physical
> volumes to VolGroup00 and then lvextend to make logical volume
> /dev/VolGroup00/LogVol00 bigger. You can then resize the root
> filesystem using either ext2online (if it works), or resize2fs from
> rescue mode if ext2online refuses to cooperate.
>
> See the man pages for the various commands to see how they work. See
> also the Linux LVM HOWTO:
> http://www.tldp.org/HOWTO/LVM-HOWTO/
>
> Paul.

I've tried to carry out the steps above bit came unstuck at the lvextend 
stage.  Anyone see what I'm doing wrong?  Below is the session I was 
running.

Gary

[root at larry1 ~]# fdisk -l /dev/hda

Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        5005    40098240   8e  Linux LVM
[root at larry1 ~]# fdisk -l /dev/hdb

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
16 heads, 63 sectors/track, 79656 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
[root at larry1 ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      38639072   2676536  33999736   8% /
/dev/hda1               101086     12308     83559  13% /boot
none                    192376         0    192376   0% /dev/shm

[root at larry1 ~]# pvcreate /dev/hdb
  Physical volume "/dev/hdb" successfully created
[root at larry1 ~]# vgextend VolGroup00 /dev/hdb
  Volume group "VolGroup00" successfully extended
[root at larry1 ~]# lvextend -L +40G /dev/mapper/VolGroup00-LogVol00 
/dev/hdb
  Volume group mapper doesn't exist

-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     




More information about the fedora-list mailing list