Re: is it possible to resive a PV in LVM and add more LV's ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Rudi Ahlers wrote:
> Hi all
>
> I have a remote server (i.e SSH access only) which was incorrectly 
> partitioned and I urgently need to get it up and running. It's got a 
> 500GB HDD, but the PV is only 10GB big, so I can't add more LV's to 
> to. P.S. This is on LVM, btw. 
>
> [root@nd11176 ~]# fdisk -l /dev/sda
>
> Disk /dev/sda: 500.1 GB, 500107862016 bytes
> 255 heads, 63 sectors/track, 60801 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1          33      265041   83  Linux
> /dev/sda2              34        1338    10482412+  8e  Linux LVM
> /dev/sda3            1339        1860     4192965   82  Linux swap / 
> Solaris
>
> [root@nd11176 ~]# pvscan
>   PV /dev/sda2   VG VolGroup00   lvm2 [9.97 GB / 0    free]
>   Total: 1 [9.97 GB] / in use: 1 [9.97 GB] / in no VG: 0 [0   ]
>
> [root@nd11176 ~]# vgscan
>   Reading all physical volumes.  This may take a while...
>   Found volume group "VolGroup00" using metadata type lvm2
>
> [root@nd11176 ~]# lvscan
>   ACTIVE            '/dev/VolGroup00/LogVol00' [9.97 GB] inherit
>
>
>
> So, my question is, if I extend the Physical Volume, what else do I 
> need todo in order to add more Logical Volume's?
where's the rest of this disk?  unpartitioned?    create another LVM 
partition as sda4, and add it to the VolGroup00, then grow LogVol00, and 
use resize2fs to grow the file system to fill the new LogVol00 size.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux