Page 1 of 2

Recommended disk setup?

Posted: Tue Jun 01, 2021 4:06 pm
by infiinite
Hi dpeca,

I've very recently discovered myvesta and I'm thrilled to test it out on my new node.

However, I'd like a suggestion on my disk setup.

My node has a 480gb ssd and a big storage in raid5 (11 disks, 7200rpm HDDs)
my current plan is to install debian10 on the ssd while the raid5 is mounted at /home

Problem is, I'm afraid that I won't be using my ssd at all for any of the sites hosted on the server.
would you recommend me doing something else?

Re: Recommended disk setup?

Posted: Tue Jun 01, 2021 4:21 pm
by myVesta
How much space actually you need?
Maybe to install everything on SSD, and symlinking /backup to HDD?
Later you can also move other static folders (like /home/user/mail/ and /home/web/domain.com/public_html/wp-content/uploads/) to HDD, and just symlinking it...
I'm doing it for shared hosting servers.

Re: Recommended disk setup?

Posted: Tue Jun 01, 2021 5:14 pm
by infiinite
Is it possible to have some domains on /home directory and some on /var/www or some other dir not on /home?

It's a big storage node that will actively read static files to serve via HTTPS.
But since I have spare CPU and bandwidth, I'm thinking about hosting some small WordPress sites on the same server.

Re: Recommended disk setup?

Posted: Tue Jun 01, 2021 7:39 pm
by myVesta
infiinite wrote: Tue Jun 01, 2021 5:14 pm Is it possible to have some domains on /home directory and some on /var/www or some other dir not on /home?
Unfortunately, no.
But with symlinking you can symlink even whole account, for example /home/user/ -> /hdd/user/
Or as I already suggested, only specific folders like /home/user/mail/ or /home/web/domain.com/public_html/wp-content/uploads/

Re: Recommended disk setup?

Posted: Wed Jun 02, 2021 7:56 am
by infiinite
I see, I'll do that.
Thank you.

Re: Recommended disk setup?

Posted: Fri Jun 04, 2021 10:10 pm
by infiinite
hey dpeca,

I need another suggestion here :(

I did the symlink setup but my php application now shows this

Code: Select all

Put / get / chmod / delete operations failed, insufficient permissions possible
so I did chown and chmod 777 to the symlink but it still seems to be the same case.

0 lrwxrwxrwx 1 admin admin 21 Jun 3 12:46 folder-> /hdd/folder/

Re: Recommended disk setup?

Posted: Fri Jun 04, 2021 10:16 pm
by myVesta
maybe open_basedir restrictions?
you can alter open_basedir this way - viewtopic.php?f=18&t=54
add /hdd/user/ in open_basedir

other thing you can do is:

Code: Select all

chown -R user:user /home/user/
find /home/user/ -type d -exec chmod 755 {} +
find /home/user/ -type f -exec chmod 644 {} +

Re: Recommended disk setup?

Posted: Sat Jun 05, 2021 2:24 am
by infiinite
I added the /hdd/folder to open_basedir but it didn't help.

and find /home/user/ -type d -exec chmod 755 {} + gave an error for /conf folder
which is okay I suppose

Re: Recommended disk setup?

Posted: Sat Jun 05, 2021 3:48 am
by infiinite
Little update.

All the symlinks are showing

"absolute path is invalid" error when I try to make a ftp account pointing to the symlink

Re: Recommended disk setup?

Posted: Sat Jun 05, 2021 4:07 am
by infiinite
final update: sorry for the spam.

I got around it by mounting my hdd raid array to /home/<user> instead

Not using symlinks anymore. They weren't working