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

Re: Missing Disk Space or Partition

On 21/01/2011 10:31, RR wrote:
   Please specify either size or extents but not both.
even weirder is that when I try to see the physical parameters of
the disk, which is clearly a 68.37GB. Further
lvm> pvs
   PV         VG           Fmt  Attr PSize  PFree
   /dev/sda2  AUASTMRCP-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?
/# fdisk -l /dev/sda
Disk /dev/sda (Sun disk label): 24 heads, 424 sectors, 8922 cylinders
Units = cylinders of 10176 * 512 bytes

Are you sure that it really is a 72G disk? The label above says 8922 cylinders
and this translates to

8922 * 10176 * 512 = 46484619264 which is around 44GB and that matches what your partitions are.

If that is the case then your disk label is wrong.



    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?
I swear I'm really not this bad with Linux/Unix admin stuff but this is
really weird. Any ideas?
Thanks so much in advance,

On Thu, Jan 20, 2011 at 6:23 PM, brian m. carlson
<sandals@crustytoothpaste.net <mailto:sandals@crustytoothpaste.net>> wrote:

    On Thu, Jan 20, 2011 at 05:49:06PM -0500, RR wrote:
     > /dev/mapper/DebSparcx64--01-root 256M   78M  166M  32% /
     > tmpfs                 2.0G     0  2.0G   0% /lib/init/rw
     > udev                   10M  1.1M  9.0M  11% /dev
     > tmpfs                 2.0G     0  2.0G   0% /dev/shm
     > /dev/mapper/DebSparcx64--01-home  30G  177M   29G   1% /home
     > /dev/mapper/DebSparcx64--01-tmp  368M   11M  339M   3% /tmp
     > /dev/mapper/DebSparcx64--01-usr  4.6G  372M  4.0G   9% /usr
     > /dev/mapper/DebSparcx64--01-var  2.8G  189M  2.5G   8% /var
     > The question now is, if you look carefully, I only have ~37GB
    showing as
     > partitioned. Where is the remaining (72-37 GB) space? This was
    easy to see
     > in 'format' command in Solaris but doing all sort of cart-wheels in
     > Debian/Linux, I don't know what the heck these dm-* partitions
    are, which
     > seem to be where this missing space is, and how do I get to it to
    create a
     > valid partition out of it and mount it and use it?

    Let me guess: you used LVM.  If you did, you can use "vgdisplay -v
    DebSparcx64-01" (more generically, "vgdisplay -v name-of-volume-group")
    as root to see how much space is allocated and free.  The dm-* devices
    are device mapper devices; LVM uses device mapper, so one of those will
    be created for each logical volume.

    To expand a logical volume (such as one of the /dev/mapper devices
    listed above), use lvextend to increase the size of the logical volume,
    and then use resize2fs to increase the size of the filesystem on that
    device.  If you are simply increasing the size (and not decreasing it),
    you needn't provide a size to resize2fs; it will automatically determine
    the correct size itself.  If the filesystems have been created with a
    recent enough version of e2fsprogs, you can perform the resizing online;
    that is, while the filesystem is mounted and in use.

    brian m. carlson / brian with sandals: Houston, Texas, US
    +1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
    OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Reply to: