Sponsored Content
Operating Systems Linux Red Hat Increase root partition in LVM Post 302524714 by verdepollo on Tuesday 24th of May 2011 09:44:08 AM
Old 05-24-2011
What's the output of vgdisplay and lvdisplay?

Usually the process is something like this:

Code:
pvcreate /dev/sda3
vgextend VolumeGroupName /dev/sda3
lvextend -L +16G /dev/VolumeGroupName/LogicalVolumeName /dev/sda3

And then you extend the filesystem:

Code:
ext2online /dev/VolumeGroupName/LogicalVolumeName

Also I'd suggest you have a working backup of your root partition in case something goes wrong.
This User Gave Thanks to verdepollo For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

how to increase size of the root partition

Hi we have a sunfire v880 server . we have a problem with root partion it showing 90% full. so anyone can help me how to increase the size of that partion. NOTE: It is not in veritas & SVM control. Regards prakash (6 Replies)
Discussion started by: pshelke
6 Replies

2. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

3. Solaris

Increase root partition by moving starting cylinder

I am trying to expand the root partition on Solaris 10. I can expand root partition using format/partition command, but usually increasing cylinders on partition is done on back end. In this case I would have to expand from the front end following the table below, meaning I would have to move the... (12 Replies)
Discussion started by: mjaminal
12 Replies

4. Red Hat

increase root partition

i am using redhat 5.4 and my root size shows 98 %, how can i increase root size # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 77G 16G 75G 98% / /dev/sda1 2.4G 82M 2.2G 4% /boot tmpfs 3.8G 0 3.8G 0%... (8 Replies)
Discussion started by: reply.ravi
8 Replies

5. UNIX for Dummies Questions & Answers

How to convert non LVM root partition to LVM?

Hi Guys, I m using redhat 6, I have installed root partition as non-LVM . Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies

6. Linux

How to increase root space from another partition?

Hi OS Experts I would like to increase root partition from another partition so that I can save more documents in Home and Desktop. whether it is possible without formating root partition if so please explain here is o/p of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda9... (8 Replies)
Discussion started by: Akshay Hegde
8 Replies

7. Red Hat

Linux partition with LVM

Hi, I need a suggesstion i have 2 disk if i installed OS / root partition by making Lvm in one disk and data in other disk also with the lvm, means 2 different lvms. Is making LVM partition for OS disk will the performacne will be good? Can i make 2 different lvm one is for OS and other for... (1 Reply)
Discussion started by: Rahulne25
1 Replies

8. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

9. Red Hat

LVM based partition

Hi , Background : I am installing the KVM based RHEL OS VM on one of the HP pro-line physical server. Issue: While doing custom layout partition, i want to create partition lvm based , for example :lv_root. But problem is that, whenever i am creating the partition, its showing /sda1... (2 Replies)
Discussion started by: Nats
2 Replies

10. Solaris

Increase the / partition

Hi all im new to solaris and i got the task to increase the size of the / partition. its solaris 9 update6 running in a vmware esxi. i already added space on the VM, when im trying the "growfs" command im gettings error. see attached picture: http://i.imgur.com/9ywWLNN.png thanks for... (5 Replies)
Discussion started by: guy3145
5 Replies
VGEXTEND(8)						      System Manager's Manual						       VGEXTEND(8)

NAME
       vgextend - add physical volumes to a volume group

SYNOPSIS
       vgextend  [-A|--autobackup  y|n]  [-d|--debug]  [-h|-?|--help] [--restoremissing] [-f|--force] [-t|--test] [-v|--verbose] [ PHYSICAL DEVICE
       OPTIONS ] VolumeGroupName PhysicalDevicePath [PhysicalDevicePath...]

DESCRIPTION
       vgextend allows you to add one or more initialized physical volumes ( see pvcreate(8) ) to an existing volume group to extend it  in  size.
       Moreover,  it  allows  you to re-add a physical volume that has gone missing previously, due to a transient device failure, without re-ini-
       tialising it. Use vgextend --restoremissing to that effect.

       If PhysicalDevicePath was not previously configured for LVM with pvcreate (8), the device will be initialized with the same default  values
       used  with  pvcreate.  If non-default pvcreate values are are desired, they may be given on the commandline with the same options as pvcre-
       ate.  See PHYSICAL DEVICE OPTIONS for available options.  Note that the restore-related options such as --restorefile, --uuid, and --physi-
       calvolumesize are not available.  If a restore operation is needed, use pvcreate (8) and vgcfgrestore (8).

OPTIONS
       See lvm for common options.

PHYSICAL DEVICE OPTIONS
       The  following  options	are  available	for initializing physical devices in the volume group.	These options are further described in the
       pvcreate man page.

       -f, --force

       -y, --yes

       -Z, --zero y|n

       --labelsector sector

       --metadatasize size

       [--metadataignorey|n]

       --pvmetadatacopies copies

       --dataalignment alignment

       --dataalignmentoffset alignment_offset

Examples
       "vgextend vg00 /dev/sda4 /dev/sdn1" tries to extend the existing volume group "vg00"  by  the  new  physical  volumes  (see  pvcreate(8)  )
       "/dev/sdn1" and /dev/sda4".

SEE ALSO
       lvm(8), vgcreate(8), vgreduce(8), pvcreate(8)

Sistina Software UK					 LVM TOOLS 2.02.95(2) (2012-03-06)					       VGEXTEND(8)
All times are GMT -4. The time now is 11:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy