Create a disk for a container with specific setting

Dark26

Renowned Member
Nov 27, 2017
279
30
68
48
Bonjour,

I need to create a disk with a big number of inode ( for an arbiter brick for gluster) . Is it possible to specify somewhere a specific value when the disk is created ?

I use ceph for storage.

Or i need to create the disk elsewhere and import the backup in the container after ?

If you have an answer.

Thanks

Dark26
 
With ceph :

Code:
root@Glusterreplica3CT:~# df -i
Filesystem     Inodes IUsed  IFree IUse% Mounted on
/dev/rbd2      131072 26079 104993   20% /
/dev/rbd3      131072    11 131061    1% /Replica
none           967105    26 967079    1% /dev
udev           961105   560 960545    1% /dev/fuse
tmpfs          967105     1 967104    1% /dev/shm
tmpfs          967105   111 966994    1% /run
tmpfs          967105     2 967103    1% /run/lock
tmpfs          967105    18 967087    1% /sys/fs/cgroup

With localstorage, and reformat with mkfs.ext4 -T small vm-133-disk-0.raw

Code:
root@Glusterreplica3CT:~# df -i
Filesystem     Inodes IUsed  IFree IUse% Mounted on
/dev/rbd2      131072 26079 104993   20% /
/dev/loop0     524288    11 524277    1% /Replica
none           967105    26 967079    1% /dev
udev           961105   558 960547    1% /dev/fuse
tmpfs          967105     1 967104    1% /dev/shm
tmpfs          967105   111 966994    1% /run
tmpfs          967105     2 967103    1% /run/lock
tmpfs          967105    18 967087    1% /sys/fs/cgroup

any chance to "format" the rbd volume with -T small ?

i tried to move the disk after from local to rbd, but it didn't keep the value.