partially deleting virtual server

10 posts / 0 new
Last post
#1 Wed, 06/18/2008 - 04:37
Maurizio1230

partially deleting virtual server

Hi

I deleted a virtual server but now I see that something, related to this virtual server, still exist like unix user, mysql/postgresql database, email boxes, apache webserver, bind dns address..

The only thing I don't see is the address in virtualmin virtual servers list.

Now I'd like to recreate this virtual server but I got this error:

Failed to create virtual server : A unix user called elettrolinux.com or group called elettrolinux.com already exists

No problem, i delete the linux user (userdel elettrolinux), mysql/postgresql database, apache webserver, bind dns address. After that, I try to reinstall this virtual server but it isn't created (because I don't see it in the virtualmin virtual servers list)

Creating administration group elettrolinux.com .. .. done Creating administration user elettrolinux .. .. done Creating aliases for administration user .. .. aliases failed : Failed to regenerate table /etc/postfix/virtual: at ../web-lib-funcs.pl line 982. Adding administration user to groups .. .. done Creating home directory .. .. done Creating mailbox for administration user .. .. mailbox failed : Failed to query Postfix config command to get the current value of parameter home_mailbox: at ../web-lib-funcs.pl line 982. Adding to email domains list .. .. Mail for domain failed! : Failed to regenerate table /etc/postfix/virtual: at ../web-lib-funcs.pl line 982. Adding new DNS zone .. .. done Adding new virtual website .. .. done Adding Apache user www-data to server's group .. .. done Setting up scheduled Webalizer reporting .. .. done Setting up log file rotation .. .. Log file rotation failed! : .. the log file /home/elettrolinux/logs/access_log is already being rotated at ../web-lib-funcs.pl line 982. Creating MySQL login .. .. done Creating MySQL database elettrolinux_com .. .. done Creating PostgreSQL login ..

How can I create this virtual server? I am still using 3.57 PRO on Debian. I'll upgrade it after we resolve this problem.

Thank you very much Maurizio1230

Fri, 06/20/2008 - 04:43
Maurizio1230

After last elettrolinux virtual server creation, elettrolinux user cannot login in too.

Creating aliases for administration user ..
<div class='quote'>
.. aliases failed : Failed to regenerate table /etc/postfix/virtual: at ../web-lib-funcs.pl line 982.

Creating mailbox for administration user ..

.. mailbox failed : Failed to query Postfix config command to get the current value of parameter home_mailbox: at ../web-lib-funcs.pl line 982.</div>

Maybe because I didn't delete some elettrolinux's postfix config.

How can I delete it?

Fri, 06/20/2008 - 05:10 (Reply to #2)
andreychek

Good morning,

Well, there's some files Virtualmin creates in /etc/postfix, such as &quot;virtual&quot; and &quot;vmailbox&quot; -- that should contain your mailbox users and aliases.

However, I'd definitely be careful in what you remove -- and I might even recommend filing a Bug/Issue so the Virtualmin guys can give you better guidance on how to fix that up. Especially since, in theory, Virtualmin would normally remove all that :-)
-Eric

Fri, 06/20/2008 - 05:57 (Reply to #3)
Joe
Joe's picture

<div class='quote'>.. mailbox failed : Failed to query Postfix config command to get the current value of parameter home_mailbox: at ../web-lib-funcs.pl line 982.</div>

This usually happens when you're getting memory allocation errors. i.e. not enough RAM and/or swap.

You'll either need more memory, or reduce the number of services you use. Check the Virtualmin on Low Memory Systems guide:

http://www.virtualmin.com/documentation/id,virtualmin_on_low_memory_syst...

--

Check out the forum guidelines!

Fri, 06/20/2008 - 09:35 (Reply to #4)
Maurizio1230

Hi joe,

I have about 3 gb of memory
<div class='quote'>Real memory 3.08 GB total, 729.79 MB used</div>
but on Virtuozzo I see a &quot;feature&quot; in Red Zone (like you say): <b>privvmpages</b>

privvmpageg - <u>Memory allocation limit</u>
86,275(Current Use)
128,536(Soft Limit)
132,632(Hard Limit)
4KB pages(Units)

How much Memory allocation should I need?

Thank you very much

Fri, 06/20/2008 - 12:18 (Reply to #5)
Joe
Joe's picture

More. ;-)

It depends on what capabilities you need...but 128MB is definitely too small for a full-featured system that includes mail and databases and a big fat Apache process. You'll need to strip back quite a lot, if you want to run comfortably in 128MB. Or give it more memory to work with.

Again, if you can make swap available, it'll also work rather than fail catastrophically like this (though it'll be much slower).

--

Check out the forum guidelines!

Fri, 06/20/2008 - 23:54 (Reply to #6)
Maurizio1230

Hi Joe,

I give more info about my memory
<div class='quote'>fx3432:~# free -m
total used free shared buffers cached
Mem: 3155 3108 47 0 3 2383
-/+ buffers/cache: 720 2435
Swap: 7820 86 7734</div>

47 free? Is it impossible. On virtualmin system information I see that (3.08 GB total, 725.41 MB used)
What's Virtual memory? (7.64 GB total, 81.34 MB used)

Swap available? Is it unavailable?

In conclusion, I need to add more memory allocation.
but what is memory allocation? Maybe Memory allocation can change if I have more ram? See virtuozzo's definition:

<div class='quote'>The size of private (or potentially private) memory allocated by an application. The memory that is always shared among different applications is not included in this resource parameter.</div>

Sorry for my ignorance :(

Sat, 06/21/2008 - 17:58 (Reply to #7)
andreychek

Howdy,

Well, the RAM that Linux is showing you there is good (we'll get to Virtuozzo in a moment).

The free -m is showing that although you're using 3108M of RAM, 2383M of that is cached.

So, 3108 - 2383 is the 725M you see Virtualmin telling you is used. The Linux kernel will make the cached RAM available as necessary.

From you listing there, it certainly looks like the swap has 7734M available (which in theory is more than plenty).

Okay, so then, that leaves us still wondering what in the world is going on ;-)

I don't really know much about Virtuozzo, so I don't know that I can offer a ton of help. But does it log when an application uses up allocated/available memory? If it does, perhaps the error it provides could help you figure out what needs tweaked?

But yeah, if &quot;memory allocation&quot; is the issue, you might poke around in Virtuozzo and see if you can increase available memory limits.

Just some thoughts!
-Eric

Mon, 06/23/2008 - 23:24 (Reply to #8)
Joe
Joe's picture

I believe what you're showing us is the host system...and where you're running Virtualmin is the guest system. If that's the case, those numbers (the ones showing 3GB of RAM, etc.) are irrelevant. They do not matter.

What matters is how much the Virtuozzo instance has available--that's the point of Virtuozzo (and other, better, virtualization technologies): to divide the system into pieces so many people can have a &quot;root-level&quot; experience.

--

Check out the forum guidelines!

Tue, 05/04/2010 - 01:38
kiteplans

Hi,

As Maurizio Stated :

“I deleted a virtual server but now I see that something, related to this virtual server, still exist like unix user, mysql/postgresql database, email boxes, apache webserver, bind dns address..

The only thing I don't see is the address in virtualmin virtual servers list.”

1。 How do I prevent this from happening in the future, for myself and clients creating and deleting servers。 2。 What would be the right way to go in deleting these related services and creating a new virtual server with the same name as the old server.

Thanks in advance,

I’m a “Geek” serving as a Linux System admin, a website designer and maintainer and general know how for all things TECH. I am a fan of CentOS, Virtualmin, Joomla, and anything that uses Electricity. See more of my posts at http://www.dieskim.me

Topic locked