LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2010, 12:37 AM   #1
blueduck
LQ Newbie
 
Registered: Jun 2010
Posts: 9

Rep: Reputation: 0
LVM resizing question - pvdisplay shows that drive is 70G smaller than it is


Sorry - I'm a bit new to LVM administration, and I have a question
that the Clonezilla Live forum referred here. Below is the question.
Would love a little help.


2010-06-24 07:10:00 UTC
So, I was moving from a 250G disk to a 320G disk because I was running
out of space on my laptop. My problem is that my new drive seems
convinced that it is only 250G in size, and I’m wondering how to
persuade it otherwise. I’m not sure if it matters, but I did use the
-k1 option when Clonezilla was restoring in order to resize the
partitions proportionally. Here is the output of fdisk -l and
pvdisplay:

root@nansen: [/]$ fdisk -l
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 17 133610 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 17 38911 312412851+ 8e Linux LVM

So fdisk knows that the drive is 320Gb, and the sda2 partition is
about 319Gb in size. But LVM isn't buying it:

root@nansen: [/]$ pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 232.78 GB / not usable 2.71 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 7449
Free PE 1
Allocated PE 7448
PV UUID RKhtpa-J34H-GnvD-26v3-bAEI-wccm-f55hwS

Is there some sort of pvchange command that I need to run? Here is
some more info in case you need it.

root@nansen: [/]$ pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 232.78G 32.00M

root@nansen: [/]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 225G 209G 4.5G 98% /
/dev/sda1 127M 12M 108M 10% /boot
tmpfs 125M 0 125M 0% /dev/shm

steven_shiau (Clonezilla Live moderator)

2010-06-24 14:03:48 UTC
Option "-k1" is only for partition size, it won't deal with LVM yet. I
think you need other tool to resize the LVM... No I have know idea
about how to make it. If you know, please share that with us. Thanks.
Steven.
 
Old 06-29-2010, 09:07 AM   #2
tizzef
Member
 
Registered: Jan 2005
Location: Nice, France
Distribution: Ubuntu,RHES, Mandriva, RHAS, AIX 4.3.3, 5.2 & 5.3, Debian,Solaris8/10
Posts: 119

Rep: Reputation: 20
Hi

In my opinion all is OK. You've got a 320Go disk and a 250Go physical volume.

The pv was restored by clonezilla.

All you have to do is to resize your pv.

So create a new pv on the remaining space on your disk, and resize your original pv.

You should use 'pvcreate' and 'pvresize'.

Hope's it help.

Cheers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing the LVM g_kapoor85 Linux - Software 3 03-21-2009 01:27 AM
Resizing an LVM partition oogs Fedora 5 10-24-2008 08:52 PM
Resizing to a smaller partition KarlW Linux - Desktop 1 08-15-2008 10:42 AM
resizing non-LVM partition laggerific Linux - Software 1 11-09-2006 06:20 PM
Resizing / with LVM zivota Red Hat 2 07-12-2006 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration