From 8904d1f6e7505b00e7a5f8b6ba3583eab069f986 Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 4 Nov 2006 15:30:35 +0000 Subject: [PATCH] - make 16K bytes/inode ratio only for really big devices > 100Gb. This is workaround against -ENOSPC on OST due to lack of inodes --- lustre/utils/mkfs_lustre.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/mkfs_lustre.c b/lustre/utils/mkfs_lustre.c index 3929474..3a5c0fe 100644 --- a/lustre/utils/mkfs_lustre.c +++ b/lustre/utils/mkfs_lustre.c @@ -471,7 +471,8 @@ int make_lustre_backfs(struct mkfs_opts *mop) /* Allocate fewer inodes on large OST devices. Most filesystems can be much more aggressive than even this. */ - if ((IS_OST(&mop->mo_ldd) && (device_sz > 1000000))) + if ((IS_OST(&mop->mo_ldd) && + (device_sz > 100000000))) /* 100 Gb */ bytes_per_inode = 16384; if (bytes_per_inode > 0) { -- 1.8.3.1