Create a disk for a container with specific setting

Dark26

Well-Known Member
Nov 27, 2017
266
23
58
47
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!