{"id":1325,"date":"2021-05-10T11:52:01","date_gmt":"2021-05-10T08:52:01","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=1325"},"modified":"2022-05-19T18:38:42","modified_gmt":"2022-05-19T15:38:42","slug":"what-is-an-inode","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/what-is-an-inode\/","title":{"rendered":"What is an \u201cinode\u201d?"},"content":{"rendered":"\n<p><span style=\"font-weight: 400;\">An inode is a unique record number for all information about a file or folder in Linux and Unix systems. Every file on your web hosting account has an inode assigned to it.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">To ensure stability and consistency in its system, servers treat every component as a file. This includes system processes, hardware devices, and directories.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Conventional files such as videos, text, music, or other multimedia files all come with metadata data.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">To access a file, the user inputs the filename, but in the system, the filename is linked to respective inode numbers stored in a table structure\u2014making this possible.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The inode, therefore, is responsible for managing the file metadata information necessary to read this file in a table structure.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How do Inodes Relate to the Structure of a File System?<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Think of inodes as a data structure that points to blocks that make up a file.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Data blocks and inodes are the two components of a file system. Once the system creates a file directory, the number of data blocks remains fixed and cannot be changed.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">The directory does not contain the path, name, position, links, or other file properties. Directories instead include the file names and the inode numbers that correspond to them.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can create a hard link in the file system, resulting in one file having multiple names. A hard link generates a new name in the table with the same inode but doesn\u2019t transfer the file.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">To maintain a hard link, an inode doesn\u2019t contain the name of a file. Instead, it stores other information, separated from the file name, that lets you access various file names pointing to one inode.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you were moving a bulky file, it is rather efficient to create a new name in a new directory first and delete the old directory. You may also rename old files the same way.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Within the server file system hierarchy, the file names are linked to the inodes, which connect to the physical data.<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>Attributes of an Inode and How it Works?<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Inodes are found at the start of a partition. This partition acts as a boundary in your web hosting account disk that indicates how much space a file system can use.&nbsp;&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">When you create a new file, the system assigns a file and inode number, which it stores as entries in an index. If you search for a file by name, the system looks for the associated inode number in the file directory where it resides.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">An inode number has the following attributes:<\/span><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Owner<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Size<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">File User ID<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">File Group ID<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Device ID<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">File creation date<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Permissions and Access control<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">File types<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Number of hard links<\/span><\/li><li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Metadata information.<\/span><\/li><\/ul>\n\n\n\n<p><span style=\"font-weight: 400;\">The number of inodes on your web hosting account shows how many files, directories, emails, or other items you have on your account.&nbsp;<\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How to Check Inode Usage in SPanel<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Here\u2019s how to check how many inodes you\u2019ve used on your server and how much you have remaining.<\/span><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"> Log into your SPanel&#8217;s User Interface.<\/span><\/span>  <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"453\" height=\"456\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png\" alt=\"What is an \u201cinode\u201d?, How to Check Inode Usage in SPanel\" class=\"wp-image-2898\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40.png 453w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-298x300.png 298w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2022\/01\/40-150x150.png 150w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li><span style=\"font-weight: 400;\"> On the right corner, under <\/span><b>Resources<\/b><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">, you\u2019ll see the disk and inodes usage, among other stats.<\/span><\/span>  <\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"413\" height=\"511\" src=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/303.png\" alt=\"What is an \u201cinode\u201d?, How to Check Inode Usage in SPanel 2\" class=\"wp-image-3807\" srcset=\"https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/303.png 413w, https:\/\/www.scalahosting.com\/kb\/wp-content\/uploads\/2021\/05\/303-242x300.png 242w\" sizes=\"(max-width: 361px) 660px, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 910px, 1140px\" \/><\/figure>\n\n\n\n<p><span style=\"font-weight: 400;\">To see detailed statistics of disk usage for all files and folders on your account, navigate to <\/span><b>Files <\/b><span style=\"font-weight: 400;\">and click on<\/span><b> Disk usage. <\/b><span style=\"font-weight: 400;\">Select any folder to view its content.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can control individual accounts&#8217; disk space and inodes quotas from SPanel&#8217;s Admin Interface.<br><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><b>How to Free Up the Number of Inodes Your Account Uses<\/b><\/h2>\n\n\n\n<p><span style=\"font-weight: 400;\">Since the inode usage on your account affects the number of files and folders you can create, you must reduce your inode count by reducing files and folders you don\u2019t need.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">You can do this through the File Manager or accessing your files to an <\/span><a href=\"https:\/\/www.scalahosting.com\/kb\/how-to-setup-ftp-using-filezilla\/\"><span style=\"font-weight: 400;\">FTP client\u2014Filezilla<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Here\u2019s how to go about it.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Delete and Uninstall Inactive Plugins<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">If you use WordPress, please uninstall any plugins that aren\u2019t in use on your blog. When you deactivate the plugins, the codebase remains on your account and consumes your inodes limit.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Delete Unnecessary Backup Files<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Sometimes, scheduled plugins or third-party services can fill up your disk space if left unchecked. To save disk space and inodes, download and delete unused backups from your account.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Clear Your Cache Regularly&nbsp;<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">It\u2019s usual for many web applications these days to use file caching. This can take up disk space on your account, thus affecting the total inode limit.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">To check this, reduce cached files stored in the website\u2019s cache folder.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you use WordPress, you can use a plugin to help you monitor caching and performance. If you want to do it manually instead, you can see the cache files in the wp-content folder.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Clear the Obsolete Cache (.opcache) System Folder<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">You can uninstall the .opcache system folder in your account using FTP. If you use PHP 7.x, this is where obsolete caches are stored.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">As you use the program, the cache will be restored but won\u2019t overwrite cached files from older PHP accounts.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Remove Unused Images<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">WordPress themes might generate multiple copies of an uploaded image, some of which you may never use. These images clog your disk space and affect your inode limit.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">Remove unused image sizes by checking your theme settings and deleting the ones you won\u2019t need. You can use the Regenerate Thumbnails plugin to regenerate thumbnails while deleting unused image sizes.<\/span><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><b>Reduce Unnecessary Emails<\/b><\/h3>\n\n\n\n<p><span style=\"font-weight: 400;\">Clear out your trash and spam folders regularly, as they can store up many unnecessary emails.&nbsp;<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">While you\u2019re at it, now is the best time to deactivate emails from newsletters you never read.<\/span><\/p>\n\n\n\n<p><span style=\"font-weight: 400;\">If you still don\u2019t have sufficient space or cannot create files on your account, you should consider a higher <\/span><a href=\"https:\/\/www.scalahosting.com\/web-hosting-for-small-business.html\"><span style=\"font-weight: 400;\">web hosting package<\/span><\/a><span style=\"font-weight: 400;\"> that suits your inode needs.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An inode is a unique record number for all information about a file or folder in Linux and Unix systems. Every file on your web hosting account has an inode assigned to it.&nbsp; To ensure stability and consistency in its system, servers treat every component as a file. This includes system processes, hardware devices, and [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[34],"tags":[],"class_list":["post-1325","post","type-post","status-publish","format-standard","hentry","category-web-hosting"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=1325"}],"version-history":[{"count":5,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1325\/revisions"}],"predecessor-version":[{"id":4596,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/1325\/revisions\/4596"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=1325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=1325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=1325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}