The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Resizing VG with mirror chrispaz AIX 1 08-22-2007 10:19 AM
Resizing file TRUEST UNIX for Dummies Questions & Answers 4 01-21-2004 05:24 AM
Resizing File-Systems TRUEST UNIX for Dummies Questions & Answers 4 07-08-2003 02:16 PM
resizing slices dangral UNIX for Dummies Questions & Answers 5 12-18-2002 03:14 PM
filesystems resizing sshokunbi UNIX for Advanced & Expert Users 10 02-08-2002 02:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-27-2009
forte712 forte712 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Help with resizing partitions

Hi

First post

I have recently used Acronis (Backup software for data backup and disaster recovery in Windows and Linux - Acronis) to create identical systems that I need to build.
Everything works OK, but one of the machine has a bigger harddisk (250G) than the one I used to create the backup image (I think it was 180G).
When I applied the backup image to that harddisk, everything works fine, but `df -a` only shows 180G.
When I run `fdisk -l` it does say the size is 250G.
The machines run on CentOS 5.2 and here are some info:

Code:
# df -a
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     187150052   3169204 174320844   2% /
proc                         0         0         0   -  /proc
sysfs                        0         0         0   -  /sys
devpts                       0         0         0   -  /dev/pts
/dev/sda1               101086     12210     83657  13% /boot
tmpfs                  1025204         0   1025204   0% /dev/shm
none                         0         0         0   -  /proc/sys/fs/binfmt_misc
sunrpc                       0         0         0   -  /var/lib/nfs/rpc_pipefs
# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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 24321 195254010 8e Linux LVM


LVM:
Code:
lvm> pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               232.71 PB / not usable 128.00 PB
  Allocatable           yes
  PE Size (KByte)       32768
  Total PE              3513503756
  Free PE               3513497798
  Allocated PE          5958
  PV UUID               m2sZJE-t8Dl-d4kk-DpMY-p2Px-FDgn-dHxKtv
Code:
lvm> vgdisplay
  --- Volume group ---
  VG Name               VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  5
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               104.71 PB
  PE Size               32.00 MB
  Total PE              3513503756
  Alloc PE / Size       5958 / 186.19 GB
  Free  PE / Size       3513497798 / 104.71 PB
  VG UUID               JOfhL1-ObNO-EebF-zwBQ-W9Ei-GGCL-zrJSbe
I would like to make use of that extra space. I know I need to extend the partition, but not sure on what steps to take. As it is a potentially dangerous operation I would like to get some advice on how to do it properly.

I hope I can get some help regarding this matter.

Thank you for your help and sorry for the long post.

Last edited by Yogesh Sawant; 04-27-2009 at 06:49 AM.. Reason: added code tags
  #2 (permalink)  
Old 04-27-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,837
You could extend the partition, but I think it would be easier to create a third partition on the device, add it as a LVM physical volume and extend the volume group. If you want to include that space into the existing mount point, you'll have to know whether or not your filesystem supports resizing (online/offline).
  #3 (permalink)  
Old 04-27-2009
forte712 forte712 is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 2
Thanks for the reply.

I have created a third partition, add it as an LVM physical volume and extended the volume group, using this instructions:

Logical Volume Manager: How can I extend a Volume Group? | HowtoForge - Linux Howtos and Tutorials

Code:
# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 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       24321   195254010   8e  Linux LVM
/dev/sda3           24322       30401    48837600   8e  Linux LVM
How do I check whether or not I can resize my existing partitions?
vgdisplay says that the volume group is resizable.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0