Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    2

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

    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!

  2. #2
    Member viraj's Avatar
    Join Date
    Sep 2006
    Location
    India
    Posts
    209
    cPanel/Enkompass Access Level

    DataCenter Provider

    Thumbs up

    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..

Similar Threads & Tags
Similar threads

  1. what is virtfs directory in /home/virtfs ??
    By SACHIN in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 04-01-2007, 09:49 PM
  2. Virtfs should not be in /home
    By ephlox in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-08-2006, 01:05 PM
  3. When is it possible to delete /home/virtfs ?
    By Vatoloco in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-16-2005, 03:13 AM
  4. /home/virtfs ???
    By parhelic in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-13-2003, 06:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube