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.

problem with adding second hdd to cpanel when drive is xen virtual drive , xvdb

Discussion in 'General Discussion' started by LAZer, Aug 5, 2010.

  1. LAZer

    LAZer Well-Known Member

    Joined:
    Jan 18, 2010
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    at net :D
    hi i have a dedicated server with citrix xen center virtualization in it. on one of the vps which is centos linux with cpanel the hdd usage is causing high io and load so i decided to add a new hard disc to server and move some hosts to the new hdd.
    after adding hdd to the dedicated server , i have added a new storage to linux.
    i can view the new virtual hards in the ssh of that linux vps using fdisk -l. but when i want to mount the new partitions cpanel says

    Code:
    Format/Mount a new Hard Drive
            Sorry I could not find any new disks 
    i have already used this feature of cpanel and that detected the hdd and mounted it easily but this time i have no luck.

    here is the output of fdisk -l :
    Code:
    iroot@server2 [~]# fdisk -l
    
    Disk /dev/xvdb: 214.7 GB, 214748364800 bytes
    255 heads, 63 sectors/track, 26108 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
        Device Boot      Start         End      Blocks   Id  System
    /dev/xvdb1               1       26108   209712478+  8e  Linux LVM
    
    Disk /dev/xvda: 268.4 GB, 268435456000 bytes
    255 heads, 63 sectors/track, 32635 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
        Device Boot      Start         End      Blocks   Id  System
    /dev/xvda1   *           1          13      104391   83  Linux
    /dev/xvda2              14       32635   262036215   8e  Linux LVM
    
    Disk /dev/xvdc: 107.3 GB, 107374182400 bytes
    255 heads, 63 sectors/track, 13054 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
        Device Boot      Start         End      Blocks   Id  System
    /dev/xvdc1               1       13054   104856223+  83  Linux
    
    i added a third virtual hdd to this vps , formated it using either , lvm , linux , ext3 types but in none of those cases cpanel could detect new partition :(

    this is in the case that in the "Show Current Disk Usage" of whm
    it donot show partitions in "Current Disk Usage Information" but it shows them in the "IO Statistics"

    Code:
    Device	Trans./Sec	Blocks Read/sec	Blocks Written/Sec	TotalBlocksRead	Total Blocks Written
     xvdb	 0.00	 0.03	 0.00	2637	8
     xvdb1	 0.00	 0.01	 0.00	576	 0
    xvda	79.63	 1114.66	 943.73	108608708	91954310
     xvda1	 0.00	 0.02	 0.00	2044	14
    xvda2	79.63	 1114.63	 943.73	108606256	91954296
    dm-0	147.84	 1114.62	 943.73	108605234	91953792
    dm-1	0.00	 0.01	 0.01	608	504
     xvdc	 0.00	 0.02	 0.00	1909	8
     xvdc1	 0.00	 0.00	 0.00	207	 0

    what do you suggest me to do ?

    also i have manually mounted my hdd according to this tutorial,
    http://www.walkernews.net/2007/07/02...-in-3-minutes/

    then df -h shows the hdd space ,

    Code:
    root@server2 [~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          238G  136G   90G  61% /
    /dev/xvda1             99M   43M   52M  46% /boot
    tmpfs                 1.3G     0  1.3G   0% /dev/shm
    /usr/tmpDSK           485M   12M  448M   3% /tmp
    [COLOR="Red"]/dev/mapper/VolGroup01-lvol01
                          197G  188M  195G   1% /home2[/COLOR]
    but again when i want to move some hosts to new hdd with "rearrange accounts" cpanel says
    "sorry there is only 1 drive in this machine"

    also strange thing in this case is that i have set /home2 for default dir of new hosts in cpanel configuration. it creates new host in the new hdd correctly and in the list of accounts , it shows /home2 for that new hosts . but again when i use rearrange accounts on that new host , cpanel do not see the home2 and report the error of "sorry there is only 1 drive in this machine" !!

    so i am manually moving the hosts from the /home to /home2 and create new hosts for that users. :(
    also settings in /etc/fstab is correct because i have rebooted the server and after coming up it automatically mounted /home2 . so rebooting cpanel couldnt solve the issue either.
     
    #1 LAZer, Aug 5, 2010
    Last edited: Aug 6, 2010
Loading...

Share This Page