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

Re: Missing Disk Space or Partition



On Mon, Jan 24, 2011 at 12:07 AM, Carl Johnson <carlj@peak.org> wrote:
RR <ranjtech@gmail.com> writes:

> I see as more messages are pouring in, this message is getting pushed down
> further and people won't even see it anymore. Does anyone have a personal
> doco, blog , cheatsheet for modifying the disk label  (and then I'm assuming
> I'll have to recreate my partition table) but not losing my data? I have
> done this sort of stuff of destroying the partition table and re-creating it
> by hand before without losing the data but I'm just very unfamiliar with
> this LVM beast and was wondering if someone could help at all?

If it is just a lvm problem, then you should first try running pvs, vgs,
and lvs.  Those will tell you what LVM thinks that it has.  Also you
should run 'fdisk -l /dev/sda' (or whatever disks you have) to see what
partitions your system thinks it has.  Man lvm should give you some
general information on the lvm commands, but you will probably need to
read the individual man pages for more detail on the commands.
Hello Carl,
I've posted all of that in the past emails in this thread, however for the benefit of new people seeing this message (esp. those not using gmail with the conversation mode set on) here's the info again
 
lvm> pvs
  PV         VG           Fmt  Attr PSize  PFree
  /dev/sda2  DebSparcx64-01 lvm2 a-   43.21G    0
shows the main partition to be 43.21GB and if /dev/sda1 is boot and /dev/sda2 is the lvm volume and /dev/sda2 is the "whole disk", then how/where do I extend this volume to?
 
# lvs
  LV     VG           Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  home   DebSparcx64-01 -wi-ao  30.47G
  root   DebSparcx64-01 -wi-ao 264.00M
  swap_1 DebSparcx64-01 -wi-ao   4.66G
  tmp    DebSparcx64-01 -wi-ao 380.00M
  usr    DebSparcx64-01 -wi-ao   4.66G
  var    DebSparcx64-01 -wi-ao   2.79G
 
# fdisk -l /dev/sda
Disk /dev/sda (Sun disk label): 24 heads, 424 sectors, 8922 cylinders
Units = cylinders of 10176 * 512 bytes
   Device Flag    Start       End    Blocks   Id  System
/dev/sda1             0        19     96672    1  Boot
/dev/sda2            19      8924  45308640   8e  Linux LVM
/dev/sda3             0      8924  45405312    5  Whole disk
 
 
as per the above, /sda2 is extending from cylinder 19 to the last cylinder but it's coming u to only 43.21GB? Where did the rest of it go?

Reply to: