The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Clearing out /home/virtfs (not rm -rf)

Discussion in 'General Discussion' started by burnboy, Dec 18, 2004.

Thread Status:
Not open for further replies.
  1. burnboy

    burnboy Registered

    Joined:
    Sep 2, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ok, a bit of a bind here.

    I accidentally re-owned files in /home/virtfs to a different user...I know not to rm -rf these files for a GOOD reason (killing the server)

    I've tried chown'ing a few but some of them give me invalid GROUP name and won't change...others I've done ok.

    The question is, how do I reset this folder? Is there any easy way to re-own all of these files instead of doing it manually?? There are around 50+ and that could kill my hands :)

    I know that next time fixquotas is run the user who it was changed to will be banned for going over quota.

    Any help is greatly appreciated and Thanks ahead of time

    - "Stressed As Hell" Ryan
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would have though that the easiest way to do this would be to go through the list of users in WHM > Manage Shell Access and disable then enable Jailed Shell for them.
     
  3. Ramsy

    Ramsy Guest

    It will def. kill your server and leave you helpless with just apache running.
    My hdd was filled up all of a sudden and in the haste of clearing all unused and large files i stumled across virtfs and took a quick look at it, saw some old account names and didn't even think.
    Quickly rm -rf it and BAM error msgs about cannot remove and such.
    I was going :eek:
    It seems a lot of files are missing now and services failed one by one ending up with just running apache.

    I'd recommend cirpy's advice or just leave virtfs alone :cool:
     
  4. burnboy

    burnboy Registered

    Joined:
    Sep 2, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1

    I tried that but it doesn't remove the virtfs entry for that username. I'm still pretty confused on what to do here and I don't seem to be able to find very much documentation on maintaining virtfs in detail.
     
  5. GTFO

    GTFO Active Member

    Joined:
    Aug 8, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Does this work? I've a user eating 13GB that I want back, and I need a solution.
     
  6. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,381
    Likes Received:
    23
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    I seem to remember somewhere reading that you can umount the the virtfs user:

    Code:
    umount /home/virtfs/username
    Or it may be something more. I did a search on the forum and I didn't find anything. I'm hoping someone else can verify whether or not this works or post a link to a page or thread that discusses it. Until someone can verify it, I would not exactly recommend running the above line, although it shouldn't do anything harmful on the system.
     
  7. RizyDeWino

    RizyDeWino Well-Known Member

    Joined:
    Aug 1, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Planet Earth
    If the user xyz is taking 13 Gb in virtfs , do the following to free this space (although this space is not actually occupied in real sense) :
    Login as root via shell
    su xyz
    exit

    And you are done with freeing the space.
     
  8. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Now in the case of an account that has been terminated and a virtfs directory still exists for it what is recommend?

    /scripts/fixquotas did not remove.
     
  9. Solokron

    Solokron Well-Known Member

    Joined:
    Aug 8, 2003
    Messages:
    849
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle
    cPanel Access Level:
    DataCenter Provider
    Anyone?

    1
     
Loading...
Thread Status:
Not open for further replies.

Share This Page