Outch have Delete /home/virtfs/thisuser Please help! Urgent

freebee

Member
Mar 7, 2008
15
0
51
hello all
for some reason (not explaining here) i have delete an user under:
/home/virtfs/ (in other words i delete: /home/virtfs/thisuser)
Not the box chashed and i am not able to login
It is a VPS with cpanel and Virtuozzo
Is tehre any way to restore?
I know teh Virtuozzo has a repair mode but i do not know what exactly this do.
Please anyone can help?
I would be happy to pay to fix this but need help asap.


Thanks!
 

viraj

Well-Known Member
Sep 28, 2006
209
2
168
India
cPanel Access Level
DataCenter Provider
Twitter
Hi,

Do you have access to the hardware node [host server] ?
If not, the most you can do is recover the data from the backups and/or talk to your provider. Or provide them the command mentioned below.
If yes, try this command from the host server, vzctl recover <VPSID>.
It will reinstall OS template and all application templates which were previously installed on the VE. This action will make it possible to start the broken VE.
/home/virtfs folder is created when a user logs in with a jail shell account. It is hardlink and deleting them will delete the original file/folders. You can hard link binaries from the main server to your virtual servers, that need to be used. When you create virtual servers, they should usually take up about 10-15 MB extra.

How Virtfs works

There are quite a few methods used for virtual servers, however Virtfs takes advantage of the system's chroot features. What chroot does is set any given directory on your filesystem to a root directory. For example, chroot can set /home/user to the / directory (although if you try it now, it may not work complaining that a shell could not be found).

By copying the main files (and directory structure) from the main server to a specific location, we create a template of what each virtual server consists of. Then, for each virtual server you want to create, we link them to the template that we created. This saves drive space as well as organizing everything.

But how does the process of Virtual Servers actually occur? If we create a virtual server (say, vserver.com) in the directory, /virtual/vserver.com, we chroot to /virtual/vserver.com and everything is set up as a virtual server. Upon executing chroot on /virtual/vserver.com, the /etc directory will in fact be /virtual/vserver.com/etc and not /etc (as we know it on the main server). So, if a client edited vserver's /etc/passwd file, it will in no way be affecting the main server's passwd file. The client will be editing their /etc/passwd file but in reality they are editing /virtual/vserver.com/etc/passwd. To them, when they are editing /etc/passwd, they are actually editing /virtual/vserver.com/etc/passwd on the main server.

In addition to this, once you are within a virtual server, you cannot see the files belonging to the main server. Therefore a client would not be able to see another client's filesystem, or even the main server. To them, their virtual server is their "main" server, and they cannot see beyond that.

Services (ie. FTP, E-mail, Samba, etc..) for each virtual system will run individually from one another, and even from the main system. Courtesy : prongs.org
Hope that helps.. :)