Gandalf Corvotempesta
2016-Jul-07 12:20 UTC
[Gluster-users] New cluster - first experience
2016-07-07 14:04 GMT+02:00 Lindsay Mathieson <lindsay.mathieson at gmail.com>:> nb. To change the shardsize you should recreate the volume.There is no need to recreate the volume. Shard size is an option to set, not a parameter during the volume creation. I did the following: # gluster volume set dis-rep features.shard-block-size 64MB and shard size changed properly. Then I've created a 1GB file and it was sharded in 15 chunks
On Thu, Jul 07, 2016 at 02:20:03PM +0200, Gandalf Corvotempesta wrote:> 2016-07-07 14:04 GMT+02:00 Lindsay Mathieson <lindsay.mathieson at gmail.com>: > > nb. To change the shardsize you should recreate the volume. > > There is no need to recreate the volume. > Shard size is an option to set, not a parameter during the volume creation.It is, but existing shards won't be touched : You'll need to move the file out and back in to apply the new shard size. -- Kevin Lemonnier PGP Fingerprint : 89A5 2283 04A0 E6E9 0111 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20160707/59dc8899/attachment.sig>
On 7/07/2016 10:20 PM, Gandalf Corvotempesta wrote:> There is no need to recreate the volume. > Shard size is an option to set, not a parameter during the volume creation. > > I did the following: > # gluster volume set dis-rep features.shard-block-size 64MB > > and shard size changed properly. Then I've created a 1GB file and it > was sharded in 15 chunksWhat about existing files? -- Lindsay Mathieson