The perfect setup Debian 9 VM image - increase VM storage on ESXi 6.7?

Discussion in 'ISPConfig 3 Priority Support' started by JohnnyBeGood, Aug 1, 2018.

  1. JohnnyBeGood

    JohnnyBeGood Member

    Hello,

    I downloaded VM image from this tutorial https://www.howtoforge.com/tutorial...-9-stretch-apache-bind-dovecot-ispconfig-3-1/ and updated everything to the latest version.
    I realized again that VM image was created on 30GB virtual disk and I thought that I had well documented how-to process from my same issue but on Ubuntu https://www.howtoforge.com/communit...ase-vm-storage-on-esxi-6-5.78214/#post-370182
    It turns out there are some changes and it does not work on Debian 9.
    Once booted in Gparted live http://prntscr.com/kd7vx8 it did not show lvm partition like it did in Ubuntu https://prnt.sc/i3sahz and df -h was showing /dev/sda1 as /

    Code:
    root@debian9:~# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    udev            990M     0  990M   0% /dev
    tmpfs           200M  5.8M  195M   3% /run
    /dev/sda1        28G  3.3G   23G  13% /
    tmpfs          1000M     0 1000M   0% /dev/shm
    tmpfs           5.0M  4.0K  5.0M   1% /run/lock
    tmpfs          1000M     0 1000M   0% /sys/fs/cgroup
    tmpfs           200M     0  200M   0% /run/user/0
    root@debian9:~#
    
    
    I had to install lvm2

    Code:
    root@debian9:~# lvextend -l +100%FREE /dev/sda1
    -bash: lvextend: command not found
    root@debian9:~# apt-get install lvm2
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
      libarchive13
    Use 'apt autoremove' to remove it.
    The following additional packages will be installed:
      dmeventd libdevmapper-event1.02.1 liblvm2app2.2 liblvm2cmd2.02
    Suggested packages:
      thin-provisioning-tools
    The following NEW packages will be installed:
      dmeventd libdevmapper-event1.02.1 liblvm2app2.2 liblvm2cmd2.02 lvm2
    0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
    Need to get 2,271 kB of archives.
    After this operation, 5,900 kB of additional disk space will be used.
    Do you want to continue? [Y/n]
    
    After installing it I was getting this error:
    Code:
    root@debian9:~# lvextend -l +100%FREE /dev/sda1
      "/dev/sda1": Invalid path for Logical Volume.
      Run `lvextend --help' for more information.
    root@debian9:~#
    
    What am I doing wrong?

    TIA
     
  2. JohnnyBeGood

    JohnnyBeGood Member

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I haven't done that resizing for quite some time, so I can't tell you the exact steps in detail. If it shows the right size now, then it should be ok.
     
  4. JohnnyBeGood

    JohnnyBeGood Member

    Thanks for the reply! Yes, it does show correct size and that is good enough enough for me.

    Maybe sometime down the road it would be benefit to have tutorial on how to resize it because all VM images here have the same size and I cannot imagine 30GB on a server is enough. Just an idea!
     

Share This Page