Migration NS7.9 to NS8 disk usage & configuration question

Finally my NethServer Version: 7.9 migration to 8

I started on migrating my home server from NS7.9 to 8 today. While I thought I had everything prepared, you always find some glitches … don’t you?

In my new NS8 setup (Debian 12.10 VM) I have two drives on Proxmox 8.3. The install of NS8 was on SSD and I have a spinner that I expected to use for data storage. On NS7.9 I had the NS7.9 install and apps on SSD and data from Nextcloud on a separate spinner as the data grew too large.

The migration assistant worked great until I tried to move Nextcloud which of course crapped out with a cryptic error. When I realized that the Nextcloud migration filled up the SSD, I aborted the Nextcloud migration and do some more research. (BTW, the abort cleaned up everything so I could start fresh. Very nicely done devs!)

I followed the directions from " Attach a disk for new applications", created and mounted a spinner at /home1 and ran the command
runagent -m node configure-home-basedir --set /home1.
Everything appears to have migrated over OK.

I still have quite a bit of space on the SSD. If I
runagent -m node configure-home-basedir --set /home
again, will the any new installed containers go back on the original /home and not screw up the Nextcloud container on /home1?

I just wanted to check before I do something silly.

I’m sure I’ll have a few more questions over the coming week as I work out any bugs.

Thanks in advance for your help.

I tested it on Rocky but installing apps after resetting to “/home” took very long. I need to check that later.
I needed to install policycoreutils-python-utils that provides semanage to run the configure-home-basedir script without error.

To reset the base path to /home the -r option should be used:

[root@ns8rockytest ~]# runagent -m node configure-home-basedir -h
usage: configure-home-basedir [-h] [-s DIR | -c DIR | -r]

Validate and configure the base path for home directories of NS8 modules.

options:
  -h, --help           show this help message and exit
  -s DIR, --set DIR    Set base path for new home directories.
  -c DIR, --check DIR  Check only, do not save the configuration.
  -r, --reset          Reset base path for home directories to OS default.

Thanks @mrmarkuz . I’ll give that a try and update this post once I try it.

Before I do that I have to figure out why Nextcloud migrated OK and then f**ked up during the GUI update procedure … more searching, reading and a new post regarding this to come.

1 Like

What happened? Maintenance mode? You could use occ on CLI, see also GitHub - NethServer/ns8-nextcloud: Nextcloud module for NS8

I’ll create a separate thread for that.

1 Like

I think it was an issue of the test VM. It works to change from “/home” to “/home1” and reset back to “/home”. Installed apps were still working after the changes.