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.

Warnings Regarding Email "cPanel 11.25 Tech Bulletin"

Discussion in 'E-mail Discussions' started by acenetryan, Oct 14, 2009.

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

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    We just received an email regarding potential disk space problems we might encounter when upgrading to cPanel 11.25. I've included the email in its entirety at the end of this post.

    There are two major points I wanted to bring attention to.

    1) Copying and Pasting the provide commands could RENDER YOUR SERVER UNUSABLE.

    Due to the formatting in the email, the intended commands:

    Code:
    mkdir /home/bwtmp
    tar -czvf /root/cp-bandwidth-backup.tar.gz /var/cpanel/bandwidth
    mv /var/cpanel/bandwidth/* /home/bwtmp/
    rm -rf /var/cpanel/bandwidth
    ln -s /home/bwtmp /var/cpanel/bandwidth
    
    when copied and pasted directly from the email have become this:

    Code:
    [ryan@testbox /]$ mkdir /home/bwtmp; tar -czvf /root/cp-bandwidth-backup.tar.gz /var/
    [ryan@testbox /]$ cpanel/bandwidth ; mv /var/cpanel/bandwidth/* /home/bwtmp/; rm -rf /
    [ryan@testbox /]$ var/cpanel/bandwidth ; ln -s /home/bwtmp /var/cpanel/bandwidth
    
    Now, I make it a habit not to copy and paste commands directly from an email into an SSH shell, but the fact that rm -rf /var/cpanel/bandwidth was cut off to rm -rf / in the email immediately caught my eye.

    2) Even running the commands as intended, you can fill up your / partition. Anyone using cPanel's old recommended partitioning scheme will probably have even less space on their / partition than their /var partition.

    Running this command:

    Code:
    tar -czvf /root/cp-bandwidth-backup.tar.gz /var/cpanel/bandwidth
    
    will likely fill your / partition.

    Backing up is a great idea when doing any major server changes. I suggest modifying the command to create the tarball somewhere on /home.

    Code:
    tar -czvf /home/cp-bandwidth-backup.tar.gz /var/cpanel/bandwidth
    

    Original Email:

     
  2. acenetryan

    acenetryan Well-Known Member
    PartnerNOC

    Joined:
    Aug 21, 2005
    Messages:
    197
    Likes Received:
    1
    Trophy Points:
    18
    This image may illustrate what I'm talking about a little better. Perhaps the email comes out properly in other mail clients, but Thunderbird presented it like this:

    [​IMG]
     

    Attached Files:

  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This was addressed in a followup advisory sent October 12, 2009.
     
Loading...
Thread Status:
Not open for further replies.

Share This Page