Forums

Home / Forums

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

expand rbd

Dear admin

I need to expand the disk from 100 to 500 on the interface?
Or can be done on the command.
Create a scsi disk and create connections.

You could...if you mean from 100 to 500 GB.

If you mean 500TB, no you cannot use the ui to expand it. You can most probably do it via cli to resize the ceph rbd image, the only drawback i see is the size will not be updated  on the ui otherwise it should work ok. We store all iSCSI info as metada attributes on the ceph rbd image header , we also store the image size in this metada too, so the ui can display all data from just reading the metada, if you want the ui to reflect the updated size then you can update the attributes on the rbd image header via ceph cli commands.

Another method you can let PetaSAN updated the image header itself if you detach then re-attach the disk after resizing manually, this should update the size but most likely will re-assign other ip addresses if you use the auto ip mode.

I would recommend you try it on some test images first to make sure all is ok.

In all cases you would have to stop and start the iSCSI disk in PetaSAN so the iSCSI service will detect the new sector count , on the client size you will probably need to update the partition table to detect the new disk size + you would then re-size the filesystem.

Note instead of making very large disks, you can use something like LVM and group smaller sized disks in bigger volumes if this is possible in your environment.

Dear admin,

I have successfully expanded to 500TB on CLI, however, the UI is not updated. So can you guide me to reset it

As per earlier, the easiest is to detach then re-attach the disk from PetaSAN ui, the disks needs to be stopped to see these buttons. If you do not want to stop the disk, you can do them via ceph cli commands to add/change attributes via rbd header.

It's normal and common scenario in production line that expand iscsi disk online, why PetaSAN don't support this feature in UI?

Hope this feature can be added in future!

 

This prior post my help

http://www.petasan.org/forums/?view=thread&id=11&part=2#postid-3161