How to add Extra drive to a single account

rnc

Verified User
Joined
Jun 8, 2013
Messages
72
hello
i have a r310 server that have 3x4TB SAS
the server have vmware ESX installed and on this ESX i created a single VM that i want to install directadmin
as you may know esxi has a limitation on each disk size of 2TB
so i have to add each 4TB disk as 2x2TB that will end 6x2TB Disk that i will mount as /home~/home6
but the problem is that i want to add the whole space of this server to a single domain with different sub-domain
and i dont want add separated account for each sub-domain
( the server will used as a file server and i want to have just a single access and FTP to server for customer )

any suggestion that how should i do this correctly
 
Hello
Yes i always use lvm
But if need touse any thjng else
Please tell me
But i dont want to create a single voloume group that have 3 disk member
This will end loosing all data if one disk fail
 
so i have to add each 4TB disk as 2x2TB that will end 6x2TB Disk

From this I made my mind you gonna have 6 hdds. If not, I have no more ideas for you. Probably somebody else have anything to add.

p.s. Some servers of my customers have extra hdds mounted to

/home/user/domains/domain.com/public_html/data1/
/home/user/domains/domain.com/public_html/data2/
...
/home/user/domains/domain.com/public_html/dataN/

as they host many big sized images and other media files.
 
From this I made my mind you gonna have 6 hdds. If not, I have no more ideas for you. Probably somebody else have anything to add.

p.s. Some servers of my customers have extra hdds mounted to

/home/user/domains/domain.com/public_html/data1/
/home/user/domains/domain.com/public_html/data2/
...
/home/user/domains/domain.com/public_html/dataN/

as they host many big sized images and other media files.

hello
yes you are right first i was going to have 6 HDD but i made some changes now i have each HDD directly attached to ESX
so i have 3x~3.6TB as

so what do you sugest ?
i change mount mount of partitions to something like ?
/home/user/domains/domain.com/public_html/dataN/ ?

and for this i need to creat first hard disk as normal LVG with mount point (/home ) and other hard disk as mentioned upper ?


i created a 100GB VDISK and put optional mount points like /usr /var /tmp on that VDISK

by VDISK i mean virtual Disk added to Vmware ESXi machine
 
Hello
as this server will host just 1 single domain and this domain will have multi subdomain
here what i paln to do
please confirm this will work

i will create a single account domain
this domain normally placed on

Code:
/home/username/domain/domain-name.com/public_html

the server have following partition layout and they are LVM

Code:
df -lh
Filesystem                    Size  Used Avail Use% Mounted on
/dev/mapper/vg_100G-lv_root    20G  371M   19G   2% /
tmpfs                          32G     0   32G   0% /dev/shm
/dev/sda1                     485M   32M  428M   7% /boot

/dev/mapper/vg_sdb1-lv_home   3.4T  198M  3.2T   1% /home
/dev/mapper/vg_sdc1-lv_home2  3.6T  2.3G  3.4T   1% /home2
/dev/mapper/vg_sdd1-lv_home3  3.4T  198M  3.2T   1% /home3

/dev/mapper/vg_100G-lv_tmp    7.9G  146M  7.4G   2% /tmp
/dev/mapper/vg_100G-lv_usr     29G  834M   27G   3% /usr
/dev/mapper/vg_100G-lv_var     38G  248M   36G   1% /var


i will create anew directory called
Code:
/home/username/domain/domain-name.com/public_html/disk2

and change /etc/fstab
from
Code:
/dev/mapper/vg_sdc1-lv_home2 /home2/                  ext4    defaults        1 2
to
Code:
/dev/mapper/vg_sdc1-lv_home2 /home/username/domain/domain-name.com/public_html/disk2                  ext4    defaults        1 2

and then mount it with
with command

Code:
mount /dev/mapper/vg_sdc1-lv_home2


so everything uploaded to /home/username/domain/domain-name.com/public_html/disk2
psychically will go to
/dev/mapper/vg_sdc1-lv_home2



i will create sub domains
/home/username/domain/domain-name.com/public_html/disk2/subdomian1_folder ~ /home/username/doamin/doaminname.com/public_html/disk2/subdomianN_folder

and also i will do same for disk 3

is this OK !?
 
Seems to be OK.

I guess you are aware that by default Directadmin does place subdomains in /home/username/domains/domain.com/public_html/subdomain/ So you'll need to modify either templates or use custom httpd.conf feature in directadmin, or at least use mod_rewrite.
 
Back
Top