first of all I'm a newbie with ubunutu servers or generell with linux. So I'll be glad if someone can explain it very simple. ^^'
My Server is a Ubuntu 16.04 LTS Server 64bit + Plesk Onyx from Strato (German Hoster).
I've the problem that my FTP webspace is on my /var directory and I've just 70GB on this /var of 2*240GB SSD.
Unfortunately the server was preset with the webinterface installation (however I've a dedicated server).
My /home on the one hard disk of 240GB has 118GB and I'm still using 500MB ... Can I shrink this /home for example to 25GB and give the 'free space' my /var? (If it's possible without shutting down the server?)
Hopefully I've explained my problem well enough. I hope anyone can give me accurate instructions to do this task. :|
My problem is that my space in /var is limited to 70GB and I already have ~25GB in use and it will be more.
Or if there is another way to 'give' my FTP more space, it will also be welcome. (Filesystem is ext4)
– Crypto Jun 19 '17 at 11:42cp -pvr /var/www/vhosts/* /home/space; mount --bind /home/space /var/www/vhosts
thenassuming all of /var/www/vhosts will fit in your /home; and the data will then be stored in /home/space on the
– guiverc Jun 19 '17 at 12:21space
partition|drive. adjust to fit you circumstances. ie. any limitations can be overcomecp ..;mount --bind
is about is (1) copy data from your directory to a created directory on your/home
partition or drive; then you mount that directory somewhere you'll use it. if it's mounted where you already have files/directories, it'll "hide" the real files until you umount (unmount). its more of a 'hack', with the expectation you'll adjust to suit your needs – guiverc Jun 19 '17 at 12:30