--mke2fs pre-computes the ratio of number of inodes to total number of available block in the chosen partition
are you implying/saying that there can only be a single inode count for a given patition size??
in my case, I'm going to have a large number of small files (2-5K) and I might have millions in my test.
On Thu, Aug 14, 2014 at 5:25 PM, jd1008 jd1008@gmail.com wrote:
It does not occur when installing.
However, that said, you can
- install Linux using the installer on say partition 2 (as an example),
which would be a minimal partition big enough for installation.
- Boot using the CD/DVD installation media.
- Assuming there is plenty of space still available on the drive of your
choice, run fdisk or parted (or gparted if you are in gui mode) and create partition 3 to the size you would like i to be. 4. Let us assume we are working with /dev/sda. You have say Windows on /dev/sda1, your Linux on /dev/sda2, and you created /dev/sda3 (which is empty, but you set it's partition type to Linux. 5. Read the man page for mkfe2fs. VERY IMPORTANT!!! You must know what the option -N SomeNumber really means!! Without reading the man page, you could end up doing the unintended thing. Specifying this number for inodes DOES NOT MEAN WHAT YOU THINK!!! mke2fs pre-computes the ratio of number of inodes to total number of available block in the chosen partition. Also, take a look at the option -C cluster-size (if you intend to have very many very large files (to reduce fragmentation). 6. Now make sure you are root (su) for running the command mke2fs.
Now you are ready to run mke2fs for partition /dev/sda3 based on your understanding of of the man page vs what you think you want to accomplish.
Good luck.
ok...
but given that I've asked for how to be able to install centos/fedora so I can increase the inode count!!!!!
still trying to figure this part out! ie, where/how does one do the cmdline/level install and where would the attribute for increasing the inode count occur..
thanks
On Thu, Aug 14, 2014 at 3:48 PM, jd1008 jd1008@gmail.com wrote:
On 08/14/2014 12:29 PM, bruce wrote:
Hi guys/list.
Looking into installing centos/fedora and I'd like to increase the inodes on the partitions. So I'm trying to find a step by step process to accomplish this.
As far as I can tell, the GUI/Anaconda doesn't have any place for me to insert the increased inode count.
Comments would be appreciated.
ps.
I know I can take a partition offline, reformat it, and increase the nodes, but I don't see how one can do this with the primary/root portion of the drive on the same system..
thanks
The installer will not provide any interface where you specify the number of inodes. IMHO, it is for the good or the overwhelming majority of users, who do not understand the consequences of specifying their own inode count.
The short of the long is: Fewer inodes are normally used for filesystems that will contain very large or huge files and hardly any small files. Thus most of the disk space is used for file storage. The converse is that a considerably larger number of inodes would be used for filesystems that will contain mostly small files, thus allow a larger number of such small files. But with the increasing size of disks, this issue becomes less and less of a concern for most users.
.
per a number of different articles, one of which: ----http://www.thegeekstuff.com/2013/01/mke2fs-examples/
# mkfs -t ext3 -v -N 700000 /dev/sda6
appears to allow you to simply raise the number of inodes for the given partition that's already been create
in actuality, it appears that you can achieve an increase in inodes by either increasing the inode count, or by increasing the ratio...
I have no idea of the risks of either approach.
And I have no idea if you can increase the inode count for a partition without increasing the size of the partition as well..
On Thu, Aug 14, 2014 at 6:51 PM, bruce badouglas@gmail.com wrote:
--mke2fs pre-computes the ratio of number of inodes to total number of available block in the chosen partition
are you implying/saying that there can only be a single inode count for a given patition size??
in my case, I'm going to have a large number of small files (2-5K) and I might have millions in my test.
On Thu, Aug 14, 2014 at 5:25 PM, jd1008 jd1008@gmail.com wrote:
It does not occur when installing.
However, that said, you can
- install Linux using the installer on say partition 2 (as an example),
which would be a minimal partition big enough for installation.
- Boot using the CD/DVD installation media.
- Assuming there is plenty of space still available on the drive of your
choice, run fdisk or parted (or gparted if you are in gui mode) and create partition 3 to the size you would like i to be. 4. Let us assume we are working with /dev/sda. You have say Windows on /dev/sda1, your Linux on /dev/sda2, and you created /dev/sda3 (which is empty, but you set it's partition type to Linux. 5. Read the man page for mkfe2fs. VERY IMPORTANT!!! You must know what the option -N SomeNumber really means!! Without reading the man page, you could end up doing the unintended thing. Specifying this number for inodes DOES NOT MEAN WHAT YOU THINK!!! mke2fs pre-computes the ratio of number of inodes to total number of available block in the chosen partition. Also, take a look at the option -C cluster-size (if you intend to have very many very large files (to reduce fragmentation). 6. Now make sure you are root (su) for running the command mke2fs.
Now you are ready to run mke2fs for partition /dev/sda3 based on your understanding of of the man page vs what you think you want to accomplish.
Good luck.
ok...
but given that I've asked for how to be able to install centos/fedora so I can increase the inode count!!!!!
still trying to figure this part out! ie, where/how does one do the cmdline/level install and where would the attribute for increasing the inode count occur..
thanks
On Thu, Aug 14, 2014 at 3:48 PM, jd1008 jd1008@gmail.com wrote:
On 08/14/2014 12:29 PM, bruce wrote:
Hi guys/list.
Looking into installing centos/fedora and I'd like to increase the inodes on the partitions. So I'm trying to find a step by step process to accomplish this.
As far as I can tell, the GUI/Anaconda doesn't have any place for me to insert the increased inode count.
Comments would be appreciated.
ps.
I know I can take a partition offline, reformat it, and increase the nodes, but I don't see how one can do this with the primary/root portion of the drive on the same system..
thanks
The installer will not provide any interface where you specify the number of inodes. IMHO, it is for the good or the overwhelming majority of users, who do not understand the consequences of specifying their own inode count.
The short of the long is: Fewer inodes are normally used for filesystems that will contain very large or huge files and hardly any small files. Thus most of the disk space is used for file storage. The converse is that a considerably larger number of inodes would be used for filesystems that will contain mostly small files, thus allow a larger number of such small files. But with the increasing size of disks, this issue becomes less and less of a concern for most users.
.