Cannot resize filesystem on LVM

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Cannot resize filesystem on LVM

      Hi,
      I have added two new HDD to my NAS and tried to exted LVM Logical Volume. I did so and LVM shows me correct size of volume.
      But filesystem won`t resize and it still shows size of first hdd added to this logical volume/group. When I try to resize LVM Filesystem by clicking on "Resize" button on "File systems" screen, then I do get following error after confirmation, that I want to resize filesystem. Any idea, what could I do wrong?
      Thank you for any suggestions.
      I also added few screenshots from gui, maybe it will help.
      I am running Kralizec 1.0.22 (updated today).

      Source Code

      1. Failed to execute command 'resize2fs /dev/mapper/Data-Data': Filesystem at /dev/mapper/Data-Data is mounted on /media/c24984ae-4591-4004-bf3a-34738b737f8f; on-line resizing required old_desc_blocks = 339, new_desc_blocks = 466


      Source Code

      1. Error #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'resize2fs /dev/mapper/Data-Data': Filesystem at /dev/mapper/Data-Data is mounted on /media/c24984ae-4591-4004-bf3a-34738b737f8f; on-line resizing required
      3. old_desc_blocks = 339, new_desc_blocks = 466' in /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc:657
      4. Stack trace:
      5. #0 [internal function]: OMVRpcServiceFileSystemMgmt->resize(Array, Array)
      6. #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('resize', Array, Array)
      8. #3 /usr/sbin/omv-engined(501): OMVRpc::exec('FileSystemMgmt', 'resize', Array, Array, 1)
      9. #4 {main}
      Images
      • 2014-09-22_00h53_59.png

        68.06 kB, 1,252×802, viewed 415 times
      • 2014-09-22_00h54_10.png

        18.92 kB, 540×264, viewed 445 times
      • 2014-09-22_00h54_15.png

        20.59 kB, 661×232, viewed 449 times
      • 2014-09-22_00h54_22.png

        16.11 kB, 495×233, viewed 450 times
      • 2014-09-22_00h54_37.png

        26.79 kB, 897×261, viewed 460 times
    • Grab a gparted live disc or partedmagic disc and boot that up. Resize it there. Probably easier then to unmount your drives to be able to resize the LVM.

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Hi again :)
      So I tried to boot to Gparted Live and started Gparted app ... but I do not understand, what is wrong with my LVM ... I was checking google and this forums for answers, but everyone has on the screenshots displayed their LVM partitions, but I do not see them ...
      All I can do in GParted is, that I can select different HDDs (in top menu or in the dropdown at top right corner) and display details about those discs. I have all my three HDDs from my LVM listed there, but by all of them Gparted just shows, that they are completely "unallocated".
      Is it possible, that I created my LVM wrong way or do you have any idea what could be wrong with my NAS, that I am unable to resize LVM filesystem?
      Thanks for any advice...
    • Glad you solved it. ;)

      Greetings
      David
      "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"

      Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.


      Upload Logfile via WebGUI/CLI
      #openmediavault on freenode IRC | German & English | GMT+1
      Absolutely no Support via PM!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Nope, i had to unmount via CLI as the GUI did not allow to unmount (i got the error above, as no entry was in mntent the GUI doesn't know what to unmount).

      To summarize, for some reason, upon clean install, the installation doesn't create the entry in config.xml (maybe it is due to LVM?)