bihweb

Member
Dec 20, 2003
13
0
151
Hi all.
I have recently added a new HD to the server and after that all new users that I make trough WHM are added to that new HD. I want to change it to the old HD. Where and how do I do that ?

I have tried option Rearrange accounts. The problem is that new HD is mounted as the folder of the old one and it is password protected so in there I get the problem ( sorry there is only one harddrive in this machine )
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
If the new hard drive is called anything with "home" in it, it will automatically be used if it has more space than the main home directory. To change this, you need to modify the "Home Directory Prefix:" in WHM's "Edit Setup".
 

bihweb

Member
Dec 20, 2003
13
0
151
Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 7.7G 171M 7.2G 3% /
/dev/hda1 76M 11M 62M 15% /boot
/dev/hda8 84G 61G 20G 76% /home
none 442M 0 442M 0% /dev/shm
/dev/hda7 1012M 33M 928M 4% /tmp
/dev/hda5 7.7G 263M 7.1G 4% /var
/dev/hda6 7.7G 1.5G 5.9G 20% /usr
/dev/hdd1 111G 77G 29G 74% /home/bosnamp3/public_html/MUZIKA/Muzika2
/home/bosnamp3/public_html/MUZIKA

ok here is the thing

the one I want to assign all new users to is /dev/hda8 and they are currently all assigned to /dev/hdd1

the problem with the solution you described that only thing that describes hda8 is home so what can I change home to then ?

I am sorry but I am so scared to screw things up that I rather ask :)
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
I didn't even think it's possible to have 2 home partitions, even if it is on 2 seperate drives. You need to change the second one to a different name. I think I know how to do that, but last time I made a change to my servers hard drive, I had to have my provider fix the damage, so I'm going to leave that for someone else to tell you how to do. To not use it for accounts, you do need to rename it. Maybe your server provider can do that.
 

bihweb

Member
Dec 20, 2003
13
0
151
thanks for your advice :)

I would love to be able to assign which dev to use manualy so that I wont have to rename them since everything else works just fine...
 

bihweb

Member
Dec 20, 2003
13
0
151
If I rename one of them there would be much work in renaming paths in many many different places. This might be the proof that thinking before doing might save u some unnessecary brainstorming :) But if i understand things right the onl one that need to know where to create account is WHM and that value must be stored somewhere.

hmmm 2 homes...
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
Here's a clip from the wwwacct script:
Code:
open(CONF,"/etc/wwwacct.conf") || deaderror "/etc/wwwacct.conf not found\n";
while(<CONF>) {
	$_ =~ s/\n//g;
	if ($_ !~ /^;/) {
		if ($_ =~ /HOMEDIR/) {
			(undef,$homedir) = split(/ /, $_);
		}
		if ($_ =~ /MINUID /) {
			(undef,$minuid) = split(/ /, $_);
		}
		if ($_ =~ /HOMEMATCH/) {
			(undef,$homematch) = split(/ /, $_);
		}
Here's the part of the wwwacct.conf file that counts:
Code:
HOMEDIR /home
HOMEMATCH home