<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<div>Hi Michael,</div>

<div>
<br /></div>

<div>I tried the first idea you suggested a couple days ago - it didn't work.  The cmuImport script claimed it was creating the missing users, but they weren't there.</div>

<div>
<br /></div>

<div>So I spent a couple hours taking the users who were already created out of the cmu.xml script, and running it again.  It again when through the list of missing users and claimed "Creating user: mildred" for example - but that user wasn't there afterward.  
<br /></div>

<div>
<br /></div>

<div>The weird part - after it claimed it was creating those users, it then went through them and "Setting disk quota of 240 MB for user mildred".  The script claims it set the quota for each of the 35 or so missing users.  But those users are still missing.  Very WEIRD!</div>

<div>
<br /></div>

<div>I've even checked all other sites in /home/.sites - thinking it might be creating them in the wrong location - but they're just not there.  I've also checked the sites's quotas - to be sure it wasn't a quota issue.  The site is using just 7% of the disk space allowed and just 3% of the users allowed.  So I don't think its quotas.</div>

<div>
<br /></div>

<div>Any other ideas?  My customer has been getting a lot of calls from these irate missing users.  And we don't want to just recreate them from scratch - loosing all the data and configurations they had before.</div>

<div>
<br /></div>

<div>Thanks sir.</div>

<div>
<br /></div>

<div>
<br /></div>

<div>
<br />Chuck</div>

<div>
<br /></div>

<div>
<br /></div>

<div>
<br /></div>

<div>
<br /></div>

<div>
<br /></div>
<font size="2"><b>---------- Original Message 
-----------</b>
<br />
From: Michael Stauber <mstauber@blueonyx.it> 

<br />
To: blueonyx@mail.blueonyx.it 

<br />
Sent: Tue, 15 Oct 2019 13:53:15 -0500 

<br />
Subject: [BlueOnyx:23337] Re: Import users from a cmuExport 

<br />

<br />> Hi Chuck, 
<br />> 
<br />> 

> When I ran the cmuImport against one of the sites - it only imported 26 

<br />> 

> of the 62 user accounts.  I don't remember seeing errors when I ran the 

<br />> 

> cmuImport - but can't swear it didn't throw some that I missed. 
<br />> 

>  
<br />> 

> Anyway, I now have 36 missing users on this site on the new server.  I 

<br />> 

> still have the data from the old cmuExport - and can see the missing 

<br />> 

> user files in that data.  But I don't know the command that will import 

<br />> 

> those users with their data. 
<br />> 

>  
<br />> 

> Can anyone suggest a command to import /just /these users? 
<br />> 

Sadly that's one of the glitches that CMU has gathered over the years. 
<br />> 

I've spent days on trying to debug and fix it, but to little avail, sorry. 

<br />> 
<br />> 

You can try just to re-import that Vsite (while the Vsite is still 
<br />> 

present) with this command: 
<br />> 
<br />> 

cmuImport -n "<name-of-vsite>" -i <new-ip> -d 
/export-directory/ 
<br />> 
<br />> 

If you instead use this it'll just import the settings, but no data from 

<br />> 

the tarballs: 
<br />> 
<br />> 

cmuImport -n "<name-of-vsite>" -i <new-ip> -c -d 
/export-directory/ 
<br />> 
<br />> 

It will complain that the Vsite is already present and will ask you what 

<br />> 

to do. You can let it continue. When it tries to import a user that 
<br />> 

already exists, then it again will prompt you what to do. Choose 
<br />> 

"discard" for each. 
<br />> 
<br />> 

If all goes well it should import all or at least some of the missing users. 

<br />> 
<br />> 

Another thing I did when I last had the issue: I made a backup copy of 
<br />> 

the cmu.xml and edited the original to strip out all Vsites that I 
<br />> 

didn't want to re-import and also removed all Users from it that already 

<br />> 

had been imported fine. But that's a bit of work. 
<br />> 
<br />> 

If you still had the /usr/sausalito/codb/ directory from the old server, 

<br />> 

then there is yet another way. I once wrote a script to rescue Vsite and 

<br />> 

User settings from that. It then generated two Perl scripts that could 
<br />> 

be used to recreate the Vsites and Users with their original settings. 
<br />> 

<br />> 

--  
<br />> 

With best regards 
<br />> 
<br />> 

Michael Stauber 
<br />> 

_______________________________________________ 
<br />> 

Blueonyx mailing list 
<br />> 

Blueonyx@mail.blueonyx.it 
<br />> 

<a href="http://mail.blueonyx.it/mailman/listinfo/blueonyx" target="_blank">http://mail.blueonyx.it/mailman/listinfo/blueonyx</a> 

<br /><b>------- End of Original Message 
-------</b>
<br />

</font>

</BODY>
</HTML>