howto extendlvm



I want to extend an existing lvm ( volume group "VolGroup00" using
metadata type lvm2)
[root@linux2 ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
58G 12G 44G 21% /
/dev/sda1 99M 27M 68M 29% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
[root@linux2 ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
[root@linux2 ~]# lvmdiskscan
/dev/ram0 [ 16.00 MB]
/dev/root [ 58.84 GB]
/dev/ram [ 16.00 MB]
/dev/sda1 [ 101.94 MB]
/dev/VolGroup00/LogVol01 [ 8.78 GB]
/dev/ram2 [ 16.00 MB]
/dev/sda2 [ 67.65 GB] LVM physical volume
/dev/ram3 [ 16.00 MB]
/dev/ram4 [ 16.00 MB]
/dev/ram5 [ 16.00 MB]
/dev/ram6 [ 16.00 MB]
/dev/ram7 [ 16.00 MB]
/dev/ram8 [ 16.00 MB]
/dev/ram9 [ 16.00 MB]
/dev/ram10 [ 16.00 MB]
/dev/ram11 [ 16.00 MB]
/dev/ram12 [ 16.00 MB]
/dev/ram13 [ 16.00 MB]
/dev/ram14 [ 16.00 MB]
/dev/ram15 [ 16.00 MB]
2 disks
17 partitions
0 LVM physical volume whole disks
1 LVM physical volume
[root@linux2 ~]# fdisk -l

Disk /dev/sda: 72.7 GB, 72746008576 bytes
255 heads, 63 sectors/track, 8844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 8844 70935007+ 8e Linux LVM
[root@linux2 ~]#

Can you point out the safe way to do it?
Am thinking to do the following steps on my RHEL5.1
vgs
pvcreate /dev/lun2
vgextend vg01 /dev/lun2
lvextend -L +1G /dev/vg01/lv01
resize2fs /mount/point/of/lv01

Thanks

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: 2.6.20-mm1 [kernel BUG at mm/swap.c:442]
    ... Hit a BUGvia lvm: ... Reading all physical volumes. ... Found volume group "VolGroup00" using metadata type lvm2 ...
    (Linux-Kernel)
  • Re: how to mount an lvm (thumb) drive?
    ... Found volume group "VolGroup00" using metadata type lvm2 ... mount: you must specify the filesystem type ... device is LVM. ...
    (Fedora)
  • Re: [opensuse] Re: [OT] vmware and fake scsi devs
    ... perform best), but, you're setting yourself up for disaster using LVM ... (any corruption to the LVM layer is not recoverable... ... MD RAID5/6 devices can be grown (add more disks). ... with less-than-linear scalability... ...
    (SuSE)
  • recovery from premature disk removal from LVM
    ... Attached to my RAID controller were two RAID6 ... One was the original disks that came with the server, ... to a new LVM PV. ... the original disks, which I could put back and try to get LVM to ...
    (comp.os.linux.misc)
  • Re: [opensuse] Re: [OT] vmware and fake scsi devs
    ... perform best), but, you're setting yourself up for disaster using LVM ... (any corruption to the LVM layer is not recoverable... ... MD RAID5/6 devices can be grown (add more disks). ... RAID 5 configuration. ...
    (SuSE)