Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Member
    Join Date
    Jan 2010
    Location
    at net :D
    Posts
    48

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

    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
    /dev/mapper/VolGroup01-lvol01
                          197G  188M  195G   1% /home2
    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.
    Last edited by LAZer; 08-06-2010 at 06:25 AM.

Similar Threads & Tags
Similar threads

  1. New hard drive installed by host, but not sure which drive to mount.
    By vaughnt in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-27-2007, 12:12 PM
  2. Hard drive not displaying right space after drive change...
    By darkshadow604 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-26-2006, 10:03 PM
  3. Replies: 19
    Last Post: 12-08-2005, 06:26 PM
  4. Problem adding 200GB drive to server.
    By AbeFroman in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-23-2004, 10:25 PM
  5. Can you run swap on hard drive 2 or should it be on the boot drive?
    By DWHS.net in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-03-2004, 11:03 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube