Migrating a container from hard disk to SSD?

NethServer Version: 8 (up to date as of May 25)
Module: Nextcloud 1.4.3

I’ve finally cleaned up the massive amount of extraneous data that my daughter uploaded to our Nextcloud instance prior to migrating from NS7.9 to NS8. See post Link to old post.

I’m at the point that I’d like to move my Nextcloud container back to the SSD drives as the container is now a normal size and will fit on the SSD.

My daughter deleted all her triplicate data from the Nextcloud container. In addition, I can delete the NS7.9 container from the SSD, so there is now more than enough space.
I can’t find anything in the forum or Nethserver docs but perhaps I missed it. I think I saw that this might be a new feature in the future but I’d like to get this done sooner rather than wait for 6-12 months.

I’m just moving the one container from hard drive to SSD on the same machine.

Is there some documentation about how to move containers?

Thanks for any pointers.

I found here that you used following method to create /home1: Disk usage — NS8 documentation

I assume under /home the SSD and under /home1 the HDD is mounted.

Maybe there’s a faster way but it works like

  • backup Nextcloud app
  • remove the Nextcloud app
  • reset home-basedir to /home
  • restore the Nextcloud app which will then be restored to the current home-basedir.

Maybe it’s more safe to remove the Nextcloud app when the restored one is tested and working.

To reset the home-basedir to the OS default, which is /home:

runagent -m node configure-home-basedir -r

Hmm, thanks so far @mrmarkuz .

You are right.

It looks like this is going to be considerably more complicated since I notice that I have Collabora, Nextcloud, samba2 and webserver to move. I guess since Nextcloud migrated before Collabora and samba, they ended up on the hard drive also. And the webserver came last. Crap! Crap! Crap! I forgot about those.

I have enough space for all of the containers on the SSD now that Nextcloud is cleaned up but this got quite a bit more complicated with the other containers being on the hard drive also.

1 Like