Restore on new server failed - not enough free space - but there is

If you want /dev/vdb2 to be /home, you should just mount it on /home instead of /data, as I suggested above. symlinks can have surprising side effects.

You’re still probably going to run low on disk space for databases and logs, so you may want to symlink or bind mount the database data directory into /home (formerly /data).

2 Likes

Isn’t (the original) /home inside that 10Gb space?

I don’t want surprising side effects. I am aware that 10Gb is small and will run out of space soon. I need to digest your suggestion.

Have to end it here for today and will have another look tomorrow.

Had a quick AI check, it suggested:

sudo umount /data

  • Move the contents of /home to a temporary location:

sudo mv /home /home_backup

  • Create a new /home directory:

sudo mkdir /home

  • Mount /dev/vdb2 to /home:

sudo mount /dev/vdb2 /home

  • Copy the data back to /home:

sudo rsync -aXS /home_backup/. /home/.

  • Update /etc/fstab to make the mount permanent:
    Open the file with a text editor:

sudo nano /etc/fstab

Add the following line:

/dev/vdb2 /home ext4 defaults 0 2

Save and exit the editor.

  • Verify the mount:

df -h

  • Check if everything is working: Ensure that your websites and mailboxes are functioning correctly. If everything is fine, you can remove the backup:

sudo rm -rf /home_backup

Is that correct?

I don’t know where it is. If you followed the steps you suggested you were following above to move the contents of /home to data and then symlink, your data would now be in /data/home, I guess?

If you then deleted /home so you could make the symlink, you’d need to remake /home as a directory (empty), so you can mount /dev/vdb2 on that mount point. You mount a filesystem on a directory path, so there would need to be a /home to mount it on.

Based on what you said previous, you would need to mount /dev/vdb2 on /home (also unmount /data) and move the files from /home/home to just /home.

Took a while and with some support from MS Copilot it’s working now.

Please post the solution, one of the reasons for forums is to search for solutions.

This was my plan. However, in the end I made so many changes that I lost track.

Even though I have the server space now, email works, the websites still do not work. Can’t start Apache due to SSL errors (for now I use Cloudflare SSL, will use Letsencrypt later)

Doh! Now Webmin seems to be gone - how I get that back?
OK, logout and login again as root :wink:

After commenting all SSL related lines from the Apache *.comf I can start Apache - but get Cloudflare SSL handshake failed error.

1 Like

You really need to start over. Seriously. Get the basics first. Get help from your provider to properly set up the distro of choice. Having a huge /data directory by default is just plain wrong.

I’m not sure partitions on a modern Linux distro is really necessary. Back in the days of ext2 file systems it made a lot of sense.

It’s what I did…

Now I get a new error while Checking Configuration:
No Ethernet interface could be automatically found on your system. Use the [module configuration] page to set the interface manually

ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3477  bytes 1558927 (1.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3477  bytes 1558927 (1.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

net0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 130.255.55.161  netmask 255.255.255.0  broadcast 130.255.55.255
        inet6 fe80::c0bc:dff:fec5:455a  prefixlen 64  scopeid 0x20<link>
        inet6 2a02:e00:ffec:b14::2  prefixlen 64  scopeid 0x0<global>
        inet6 2a02:e00:ffec:b14::a  prefixlen 64  scopeid 0x0<global>
        ether c2:bc:0d:c5:48:0a  txqueuelen 1000  (Ethernet)
        RX packets 1338522  bytes 743160383 (708.7 MiB)
        RX errors 0  dropped 305  overruns 0  frame 0
        TX packets 32895  bytes 9231856 (8.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I see net0 in the network config page. What I need to set?

Where to set? Here…

Please create a new topic for the new issue

This topic is about not enough free space.

1 Like

Final comment:

I did start fresh with a new Debian 12 install and expanded the storage of /home with that /data mapping thing (see message above)

Generally Copilot/ChatGPT etc. do give useful hints and can be a great help.

First virtual domain created, moved the postfix mailboxes from old postfix 2.6.6 to 3.7.11 manually (/home/domain/homes + /home/domain/Maildir), works fine with Roundcube.

Thanks for all support.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.