Disk Management/expand existing

NethServer Version: 7.8.2003
Module: storage/base

Continuing from Disk Management feature request

I’m looking at the storage panel and not seeing items that I’m having to resort to CLI.

Problem: adding a new drive begins with vmware, then goes to cli in neth, to execute:
for host in (ls -1d /sys/class/scsi_host/*); do echo "- - -" > {host}/scan ; done
for device in (ls -1d /sys/class/scsi_disk/*); do echo "1" > {device}/device/rescan ; done
This shows the new ‘drive’ on the lower right of storage. It can be formatted and mounted.

Recommendation: add a image button to the top of the list of drives that triggers the rescan I listed above.

Problem: a drive has been expanded in vmware at the ESX level. There’s literally no method I’ve spotted in cockpit to grow the partition. If there’s documentation, please point me to it since the CLI method seems to be the only route. A HowTo that’s specific for Neth would be very welcome (I don’t want to break anything from Neth or have my changes not be permanent).

Proxmox related, but probably workable for VMware

https://wiki.nethserver.org/doku.php?id=userguide:nethserver_and_proxmox&s[]=proxmox#nethserver_in_proxmoxenlarging_your_nethserver_disk

once the disk has been expanded you have to grow the partition inside nethserver

the official documentation of proxmox : https://pve.proxmox.com/wiki/Resize_disks

1 Like

This works for all virtualizers…

:slight_smile: