SCIENTIFIC-LINUX-USERS Archives

October 2012

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Stephan Wiesand <[log in to unmask]>
Reply To:
Stephan Wiesand <[log in to unmask]>
Date:
Mon, 29 Oct 2012 18:36:49 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (45 lines)
On Oct 29, 2012, at 23:05 , Gerald Waugh wrote:

> I need to resize /dev/mapper/VolGroup-lv_home disk size was increased but  the partition I still small
> Not sure if it can be resized without damage, I assume the home partition  is on /dev/xvda2 , see below.

Looks like xvda2 is hosting the single PV constituting "VolGroup", and /home is a logical volume in that group. Please provide the output of the commands "cat /proc/partitions", "pvdisplay", and "vgdisplay".

> The server is remote from my location, so don’t assume I can do this unless I’m local to the server.

Hmm, why would that make a difference?

> ideas, comments apprecitaed

The safest way is probably to create an additional partition (type LVM) on the free space on xvda, pvcreate(8) an additional PV on it, and vgextend(8) the volume group with that. You can then lvextend(8) the lv_home volume and finally use resize2fs(8) to grow the filesystem on it.

I'm less sure that moving the end of xvda2 and using pvresize(8) would work.

Regards,
	Stephan

> Filesystem Size Used Avail Use% Mounted on
> /dev/mapper/VolGroup-lv_root
> 28G 3.0G 24G 12% /
> tmpfs 1.5G 0 1.5G 0% /dev/shm
> /dev/xvda1 485M 75M 385M 17% /boot
> /dev/mapper/VolGroup-lv_home
> 29G 23G 5.1G 82% /home
> Disk /dev/xvda: 268.4 GB, 268435456000 bytes
> 255 heads, 63 sectors/track, 32635 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x000909d1
>  
> Device Boot Start End Blocks Id System
> /dev/xvda1 * 1 64 512000 83 Linux
> Partition 1 does not end on cylinder boundary.
> /dev/xvda2 64 7833 62401536 8e Linux LVM

-- 
Stephan Wiesand
DESY -DV-
Platanenenallee 6
15738 Zeuthen, Germany

ATOM RSS1 RSS2