LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-31-2017, 12:53 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question How do you specify inode count in with a kickstart file?


I have a situation where I need to increase the inode count of a filesystem at it's kickstart. The following is not working:

Code:
clearpart --drives=sda --initlabel --all
part /boot --fstype=ext4 --size 512 --ondrive=sda
part pv.02 --size=1 --grow --ondrive=sda --bytes-per-inode=4096
volgroup os_root pv.02
logvol / --fstype=ext4 --vgname=os_root --size=5120 --name=root_vol
logvol /home --fstype=ext4 --vgname=os_root --size=5120 --name=home_vol
logvol /var --fstype=ext4 --vgname=os_root --size=1024 --name=var_vol
logvol /opt --fstype=ext4 --vgname=os_root --size=5120 --name=opt_vol
logvol /tmp --fstype=ext4 --vgname=os_root --size=1024 --name=tmp 
logvol swap --fstype=swap --vgname=os_root --size=4096 --name=swapvol
--bytes-per-inode apparently is depricated and the new thing is --fsprofile but I have no idea how to specify the inode count using it.

Anyone know how to do this?
 
Old 06-01-2017, 03:35 PM   #2
kentyler
Member
 
Registered: Dec 2008
Location: Newark Ohio
Distribution: Fedora Core
Posts: 270

Rep: Reputation: 38
Per RH:

--fsprofile= - Specifies a usage type to be passed to the program that makes a filesystem on this partition. A usage type defines a variety of tuning parameters to be used when making a filesystem. For this option to work, the filesystem must support the concept of usage types and there must be a configuration file that lists valid types. For ext2, ext3, ext4, this configuration file is /etc/mke2fs.conf.

In case you don't have a copy of the file here is one:


~]# cat /etc/mke2fs.conf
[defaults]
base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr
default_mntopts = acl,user_xattr
enable_periodic_fsck = 0
blocksize = 4096
inode_size = 256
inode_ratio = 16384

[fs_types]
ext3 = {
features = has_journal
}
ext4 = {
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
auto_64-bit_support = 1
inode_size = 256
}
ext4dev = {
features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
inode_size = 256
options = test_fs=1
}
small = {
blocksize = 1024
inode_size = 128
inode_ratio = 4096
}
floppy = {
blocksize = 1024
inode_size = 128
inode_ratio = 8192
}
big = {
inode_ratio = 32768
}
huge = {
inode_ratio = 65536
}
news = {
inode_ratio = 4096
}
largefile = {
inode_ratio = 1048576
blocksize = -1
}
largefile4 = {
inode_ratio = 4194304
blocksize = -1
}
hurd = {
blocksize = 4096
inode_size = 128
}
 
Old 06-09-2017, 03:56 AM   #3
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I've paid attention that you use bytes-per-inode, that is file system related parameter, in line that define physical volume of LVM, that definitely does not suit. Use it in FS related line.
 
  


Reply

Tags
kickstart



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparison between fsck time and inode count in ext4 rdahal Linux - Enterprise 1 02-26-2016 02:24 AM
Inode count linuxmantra Linux - Newbie 1 10-23-2014 06:22 PM
Can someone explain the detail of the 'inode count' when using command 'll' hizzana Linux - Newbie 4 06-07-2013 09:28 AM
inode count hybernate20 Linux - General 1 03-17-2009 05:46 PM
Increase max inode count xPhoenix Slackware 2 10-05-2006 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration