You usually don't do that because you are supposed to use the whole disk.
Paul 2018-05-10 12:31 GMT+02:00 Yi-Cian Pu <yician1000c...@gmail.com>: > Hi All, > > > > We are wondering if there is any way to expand OSD’s capacity. We are > studying about this and conducted an experiment. However, in the result, > the size of expanded capacity is counted on the USED part rather than the > AVAIL one. The following shows the process of our experiment: > > > > 1. We prepare a small cluster of luminous v12.2.4 and write some > data into pool. The osd.1 is manually deployed and it uses a disk partition > of size 100GB (the whole disk size is 320GB). > > ===================================================================== > > [root@workstation /]# ceph osd df > > ID CLASS WEIGHT REWEIGHT SIZE USE AVAIL %USE VAR PGS > > 0 hdd 0.28999 1.00000 297G 27062M 271G 8.89 0.67 32 > > 1 hdd 0.09999 1.00000 100G 27062M 76361M 26.17 1.97 32 > > TOTAL 398G 54125M 345G 13.27 > > MIN/MAX VAR: 0.67/1.97 STDDEV: 9.63 > > ===================================================================== > > > > 2. Then, we expand the disk partition used by osd.1 by the > following steps: > > (1) Stop osd.1 daemon > > (2) Use “parted” command to expand 50GB of the disk partition. > > (3) Restart osd.1 daemon > > > > 3. After we do the above steps, we have the result that the > expanded size is counted on USED part. > > ===================================================================== > > [root@workstation /]# ceph osd df > > ID CLASS WEIGHT REWEIGHT SIZE USE AVAIL %USE VAR PGS > > 0 hdd 0.28999 1.00000 297G 27063M 271G 8.89 0.39 32 > > 1 hdd 0.09999 1.00000 150G 78263M 76360M 50.62 2.21 32 > > TOTAL 448G 102G 345G 22.94 > > MIN/MAX VAR: 0.39/2.21 STDDEV: 21.95 > > ===================================================================== > > > > This is what we have tried, and the result looks very confusing. We’d > really want to > > know if there is any way to normally expand OSD’s capacity. Any feedback > or suggestions would be much appreciated. > > > > Regards, > Yi-Cian > > > _______________________________________________ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > > -- -- Paul Emmerich Looking for help with your Ceph cluster? Contact us at https://croit.io croit GmbH Freseniusstr. 31h 81247 München www.croit.io Tel: +49 89 1896585 90
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com