![]() |
|
Increase disk space by adding volume only, it is okay? - Printable Version +- Sentora Support Forums (https://senforums.mach-hosting.com) +-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5) +--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32) +---- Forum: General Support Forum v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=36) +---- Thread: Increase disk space by adding volume only, it is okay? (/showthread.php?tid=13095) Pages:
1
2
|
Increase disk space by adding volume only, it is okay? - 7rdoq - 10-28-2024 I'm using DO VPS, using 20 GB disk space, it's 70% now. I want to increase space but "Resize" is double price, I dont want this. So I intend to add more disk space by adding a new volume only, it's okay to do this? This would create a new space storage on my VPS, then I just move old sites to new space / create new site on new space, then everything still works properly? In vhost, I just point path to new storage then all will be fine, no problem with sentora or system? Anyone advises please Thank you RE: Increase disk space by adding volume only, it is okay? - TGates - 10-29-2024 (10-28-2024, 01:10 PM)7rdoq Wrote: I'm using DO VPS, using 20 GB disk space, it's 70% now. I don't believe creating a new volume will increase storage space. It will just partition a new 'drive' on the same storage space. I'd suggest downloading and saving any old or unused files to a local drive and making sure the log folders are being trimmed with log-rotate. RE: Increase disk space by adding volume only, it is okay? - Me.B - 10-29-2024 If you create a new volume, you will not be able to share it with the current volume. Either moving all your files to the new volume or you need to manually split root sites and do a lot of manual moves. As Tom pointed this is not a solution on the long run. As the new volume you mount it to /volume2 and not / so your /var/ will not see that space. Best you do resize and 20 GB is really the basic DO droplet here. RE: Increase disk space by adding volume only, it is okay? - 7rdoq - 10-29-2024 yeah, so this is so bad, I'm not good at Linux so the PHP (and sentora) could not process the new sites on /volume2 ? they can only process requests at /var/ ? I could not manually configure vhost file to point root sites of new sites to /volume2 ? resize is the final solution, because I need more space only, I dont need RAM&CPU --- basically: for adding volume, I need to edit manually vhost file for each new site like below, it's okay? Then PHP & sentora may still serve this new site on new volume properly? thank you Code: <virtualhost *:80>
ServerName site.domain
ServerAlias site.domain
ServerAdmin zadmin@localhost
DocumentRoot "/newvolume/public_html/site_domain"
php_admin_value open_basedir none
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
<Directory "/newvolume/public_html/site_domain">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>RE: Increase disk space by adding volume only, it is okay? - Me.B - 10-30-2024 If you resize that will be transparent. RE: Increase disk space by adding volume only, it is okay? - 7rdoq - 10-30-2024 (10-30-2024, 05:25 AM)Me.B Wrote: If you resize that will be transparent. but I want to add volume only, may you give the proper way to do this? such as how manual stesp I need to do for all new sites work properly, old sites would still be old space, now I need new volumes for new sites only thank first RE: Increase disk space by adding volume only, it is okay? - TGates - 11-02-2024 (10-30-2024, 12:13 PM)7rdoq Wrote: but I want to add volume only, may you give the proper way to do this? such as how manual stesp I need to do for all new sites work properly, old sites would still be old space, now I need new volumes for new sites only You can change the hostdata location (where the sites are stored). It's in the documentation HERE RE: Increase disk space by adding volume only, it is okay? - Me.B - 11-03-2024 You can't split sites among 2 volumes unless you got into very instable manual configuration, that is complicated to maintain. Either you use the old or new volume and Tom pointed the doc for that. RE: Increase disk space by adding volume only, it is okay? - 7rdoq - 11-03-2024 (11-02-2024, 11:35 AM)TGates Wrote: You can change the hostdata location (where the sites are stored). It's in the documentation HERE this solution would work for both old sites (in old space) with new sites (new volume)? basically, I would do: 1. add new volume 2. use Sentora cpanel to create new sites like the past 3. edit vhost configs of new sites to point the "DocumentRoot" to new volume for each site My work is okay? RE: Increase disk space by adding volume only, it is okay? - Me.B - 11-04-2024 Please read my previous statements. If you change the root, it will apply to ALL Websites. That mean all websites will be in the new volume. So you have to move them. Resize don't add volume unless you really understand the above and can manage that. |