Menu

#4618 No size on vdx devices

1.730
open
nobody
None
5
2015-06-27
2015-06-25
PetaMem R&D
No

the fdisk module does not display "total size" although fdisk happily does display it:

fdisk -l

Disk /dev/vda: 18 GiB, 19327353344 bytes, 37748737 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Disk /dev/vdb: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xdbab9be4

Device Boot Start End Sectors Size Id Type
/dev/vdb1 2048 67108863 67106816 32G 83 Linux

And yes - the /vda has no partitions and is used as "raw" device. Maybe that's what irritates webmin?

Discussion

  • Jamie Cameron

    Jamie Cameron - 2015-06-25

    What output do you get if you run :

    parted /dev/vda unit cyl print

     
  • PetaMem R&D

    PetaMem R&D - 2015-06-25

    # parted /dev/vda unit cyl print
    -bash: parted: command not found

    This error report is simply about "fdisk" module in webmin not printing any total size, while "fdisk -l" doing so with no problems.

     
  • Jamie Cameron

    Jamie Cameron - 2015-06-26

    It looks like the fdisk output has changed from what Webmin expects - which Linux distribution and version is this on?

     
  • PetaMem R&D

    PetaMem R&D - 2015-06-26

    It's

    fdisk -v
    fdisk from util-linux 2.26.2

    on Gentoo

    uname -a
    Linux vmailhost 4.1.0 #1 SMP Wed Jun 24 14:38:42 CEST 2015 x86_64 QEMU Virtual CPU version 1.1.2 GenuineIntel GNU/Linux

    fdisk -h

    Usage:
    fdisk [options] <disk> change partition table
    fdisk [options] -l [<disk>]</disk> list partition table(s)</disk>

    Display or manipulate a disk partition table.

    Options:
    -b, --sector-size <size> physical and logical sector size
    -c, --compatibility[=<mode>]</mode> mode is 'dos' or 'nondos' (default)
    -L, --color[=<when>]</when> colorize output (auto, always or never)
    colors disabled by default
    -l, --list display partitions end exit
    -o, --output <list> output columns
    -t, --type <type> recognize specified partition table type only
    -u, --units[=<unit>]</unit> display units: 'cylinders' or 'sectors' (default)
    -s, --getsz display device size in 512-byte sectors [DEPRECATED]
    --bytes print SIZE in bytes rather than in human readable format</type></list></size>

    -C, --cylinders <number> specify the number of cylinders
    -H, --heads <number> specify the number of heads
    -S, --sectors <number> specify the number of sectors per track</number></number></number>

    -h, --help display this help and exit
    -V, --version output version information and exit

    Available columns (for -o):
    gpt: Device Start End Sectors Size Type Type-UUID Attrs Name UUID
    dos: Device Start End Sectors Cylinders Size Type Id Attrs Boot End-C/H/S Start-C/H/S
    bsd: Slice Start End Sectors Cylinders Size Type Bsize Cpg Fsize
    sgi: Device Start End Sectors Cylinders Size Type Id Attrs
    sun: Device Start End Sectors Cylinders Size Type Id Flags

     
  • Jamie Cameron

    Jamie Cameron - 2015-06-27

    Actually, can you run :

    fdisk -u=cylinders -l /dev/vda

    that's the command Webmin actually uses.

     

Log in to post a comment.

Monday.com Logo