expand rbd
tuocmd
54 Posts
January 6, 2019, 5:18 amQuote from tuocmd on January 6, 2019, 5:18 amDear 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.
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.
admin
2,930 Posts
January 7, 2019, 10:04 amQuote from admin on January 7, 2019, 10:04 amYou 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.
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.
Last edited on January 7, 2019, 10:06 am by admin · #2
tuocmd
54 Posts
January 8, 2019, 12:42 amQuote from tuocmd on January 8, 2019, 12:42 amDear admin,
I have successfully expanded to 500TB on CLI, however, the UI is not updated. So can you guide me to reset it
Dear admin,
I have successfully expanded to 500TB on CLI, however, the UI is not updated. So can you guide me to reset it
admin
2,930 Posts
January 8, 2019, 10:00 amQuote from admin on January 8, 2019, 10:00 amAs 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.
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.
DC
1 Post
November 7, 2019, 12:38 pmQuote from DC on November 7, 2019, 12:38 pmIt'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!
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!
admin
2,930 Posts
November 7, 2019, 2:52 pmQuote from admin on November 7, 2019, 2:52 pmThis prior post my help
http://www.petasan.org/forums/?view=thread&id=11&part=2#postid-3161
This prior post my help
http://www.petasan.org/forums/?view=thread&id=11&part=2#postid-3161
expand rbd
tuocmd
54 Posts
Quote from tuocmd on January 6, 2019, 5:18 amDear 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.
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.
admin
2,930 Posts
Quote from admin on January 7, 2019, 10:04 amYou 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.
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.
tuocmd
54 Posts
Quote from tuocmd on January 8, 2019, 12:42 amDear admin,
I have successfully expanded to 500TB on CLI, however, the UI is not updated. So can you guide me to reset it
Dear admin,
I have successfully expanded to 500TB on CLI, however, the UI is not updated. So can you guide me to reset it
admin
2,930 Posts
Quote from admin on January 8, 2019, 10:00 amAs 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.
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.
DC
1 Post
Quote from DC on November 7, 2019, 12:38 pmIt'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!
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!
admin
2,930 Posts
Quote from admin on November 7, 2019, 2:52 pmThis prior post my help
http://www.petasan.org/forums/?view=thread&id=11&part=2#postid-3161
This prior post my help
http://www.petasan.org/forums/?view=thread&id=11&part=2#postid-3161