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.

How liberate space!

Discussion in 'General Discussion' started by cyberventas, Oct 3, 2007.

  1. cyberventas

    cyberventas Member

    Joined:
    Feb 27, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hi I have Now, some unused space in my server system with cpanel, But I wanna liberate space in the main disk.

    I wanna know too a ssh code for delete all the content at the Secondary Hard Disk of My system (Actually used for Backup)

    Waiting ASAP Answer!

    Thanks!
     
  2. Magotchi

    Magotchi Member

    Joined:
    Apr 16, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    to delete everything on your second drive:

    UNDERSTAND THE POSSIBLY CONSEQUENCES OF TYPING THE FOLLOWING COMMAND WRONG (deleting everything on the entire system, period, if typed wrong)

    figure out the mount point of your secondary drive, then type:

    rm -rf <other drive's mount point>/*

    example: second drive is mounted at /mnt/secdrive

    rm -rf /mnt/secdrive/*
     
  3. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    You should brush up on your unix commands...

    The rm command deletes files:

    Code:
    rm file.txt
    - deletes file.txt

    The -f switch forces the removal (does not prompt for yes/no):

    Code:
    rm -f *
    - deletes all files in the current directory

    The -r switch removes files recursively, through all directories:

    WARNING, DON'T COPY + PASTE THIS

    Code:
    rm -rf *
    - deletes all files AND directories in the current directory.

    MAKE SURE YOU DON'T just run rm -rf anywhere. If you run it in a place with files you need, you will NOT likely get them back.

    so...
    Code:
    cd /backupdrive # Change to your backup disk's directory (note yours will be different)
    ls -la # list the files in the directory, and verify that you want to delete them all
    rm -rf * # delete all the files that you just saw listed.
    
     
  4. cyberventas

    cyberventas Member

    Joined:
    Feb 27, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Configure the secondary disk for use

    Ok if Now I wanna use the secondary disk for host accounts What I need to do??

    Waiting Answer!
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Partition it as /home2, using the default settings cPanel/WHM will automatically start populating that disk with new accounts.
     
  6. cyberventas

    cyberventas Member

    Joined:
    Feb 27, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Function?

    Hi What mind this:

    Disk /dev/mapper/VolGroup00-LogVol00 (/)

    What is the function of that directory??

    Waiting Answer!
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Logical Volume Management (LVM) is managing some (or all) of the hard drives in your system.
     
  8. altomarketing2

    altomarketing2 Well-Known Member

    Joined:
    Oct 8, 2004
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    SouthAmerica
    2 drives /home /home2 compatibles ¿?

    If a do that, what happens with all accounts on /home ? will it work with no problem ?
    so... i change default settings to /home2 for new accounts and only new accounts will store on that disk and older ones will be in my old drive in /home , right ?

    thanks in advance
     
  9. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    Yes but you do not need to change the default settings, just leave the default settings as they are. The partition with the most free space will always be populated first. Your /home2 I assume would have the most free space since it is presumed empty but it will take care of its self without further adjustments.
     
Loading...

Share This Page