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.

Expand the current disc?

Discussion in 'General Discussion' started by vagkaefer, Feb 28, 2015.

  1. vagkaefer

    vagkaefer Member

    Joined:
    Jun 25, 2014
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello everybody,

    Researched in various places, but I have no courage to do yourself. We migrated our server recently. It was necessary to update the Centos. However, the new server was created with 100Gb. But the right is 160GB. Now the dataceter released the 160GB, but Linux did not recognize.

    How do I expand the current disc? Without losing data? Below is some information on discs.

    Code:
    root@host [/usr/local/cpanel/logs]# fdisk -l
    
    Disk /dev/sda: 171.8 GB, 171798691840 bytes
    255 heads, 63 sectors/track, 20886 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0003d32f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          66      524288   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2              66         327     2097152   83  Linux
    Partition 2 does not end on cylinder boundary.
    /dev/sda3             327         833     4063232   82  Linux swap / Solaris
    Partition 3 does not end on cylinder boundary.
    /dev/sda4             833       13838   104463360    5  Extended
    /dev/sda5             833       13838   104462336   83  Linux
    root@host [/usr/local/cpanel/logs]# pvs
    root@host [/usr/local/cpanel/logs]# vgs
      No volume groups found
    root@host [/usr/local/cpanel/logs]# lvs
      No volume groups found
    root@host [/usr/local/cpanel/logs]# df -h
    Filesystem      Size  Used Avail Use% Mounted on
    /dev/sda5        98G   85G  8.7G  91% /
    tmpfs           3.9G     0  3.9G   0% /dev/shm
    /dev/sda1       504M   47M  432M  10% /boot
    /dev/sda2       2.0G   80M  1.8G   5% /tmp
    
    
    Tks
     
  2. vagkaefer

    vagkaefer Member

    Joined:
    Jun 25, 2014
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    More information:

    Code:
    root@host [~]# ls /sys/class/scsi_disk/
    ./  ../  2:0:0:0
    This command will not fix the space?
    Code:
    echo '1' > /sys/class/scsi_disk/2\:0\:0\:0/device/rescan
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest consulting with your data center or a qualified system administrator if you want assistance with mounting an additional drive on your system. Otherwise, you should read up on fdisk and utilize it to add/mount the additional drive. The following URL is a good place to start:

    https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks

    Thank you.
     
  4. vagkaefer

    vagkaefer Member

    Joined:
    Jun 25, 2014
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Tks Michael,

    I'll talk to the datacenter administrator.
     
Loading...

Share This Page