Forums

Home / Forums

You need to log in to create posts and topics. Login · Register

Cannot add more drive

Im currently testing petasan 1.3.0, i have 3 vms each has : 2 ncs, 4 core, 4gb mem, 2 disks (33 gb and 100 gb). everything went fine. but when i add a third disk (100GB) on the second node, its not showing on the "physical disk list" on the "node management" it still show one 100gb disk.

 

strange, it does not seem to detect the new disk.

Can you please ssh to the node using

username: root

password: your cluster password

and post the output of the following 2 commands:

ls /sys/block

ceph-disk list

Also is the disk the same type as the other 100 GB ?

 

Yes the disks are virtual disk on a xenserver host, it seems the kernel (/sys/block) and ceph (ceph-disk list) correctly recognized the disk. But not the web management part. screenshots below

View post on imgur.com

This does look like an issue in detecting xen based disks.

would you please run one more thing:

/opt/petasan/scripts/detect-disks.sh

thank you

root@peta2:~# /opt/petasan/scripts/detect-disks.sh
/opt/petasan/scripts/detect-disks.sh: 56: [: =: unexpected operator
device=xvda,size=69206016,bus=Not Detected,fixed=Yes,ssd=Yes,vendor=,model=,serial=Not Detected
/opt/petasan/scripts/detect-disks.sh: 56: [: =: unexpected operator
device=xvdb,size=209715200,bus=Not Detected,fixed=Yes,ssd=Yes,vendor=,model=,serial=Not Detected
/opt/petasan/scripts/detect-disks.sh: 56: [: =: unexpected operator
device=xvdc,size=213909504,bus=Not Detected,fixed=Yes,ssd=Yes,vendor=,model=,serial=Not Detected
root@peta2:~#

Thanks very much for your help. The following should fix the issue with the xen based disks:

on the storage node remove the following 2 files:

/usr/lib/python2.7/dist-packages/PetaSAN/core/common/disk_util.py   ( source file )

/usr/lib/python2.7/dist-packages/PetaSAN/core/common/disk_util.pyc  ( binary file )

then please download new source disk_util.py from

https://drive.google.com/open?id=0B7VNYCjYBY2yTkxUQWhTVlhrbWs

place it in:

/usr/lib/python2.7/dist-packages/PetaSAN/core/common/disk_util.py

you could use WinSCP or similar tool to delete/copy files.

please let me know if you still have issues.

Thanks its working now, columns now show useful information like block device name

View post on imgur.com

Excellent 🙂  thanks for reporting this.

The displayed info is all what we get from the xen disk driver.

You can now create the OSD from your second disk. One thing to note is to try to give the VMs enough resources,  we have a recommendation guide for this. Thanks again.