{"id":3473,"date":"2022-12-20T17:08:45","date_gmt":"2022-12-20T20:08:45","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/nilfs-man8\/"},"modified":"2022-12-20T17:08:45","modified_gmt":"2022-12-20T20:08:45","slug":"nilfs-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/nilfs-man8\/","title":{"rendered":"NILFS (man8)"},"content":{"rendered":"<h1 align=\"center\">NILFS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#MOUNT OPTIONS\">MOUNT OPTIONS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#AUTHORS\">AUTHORS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">NILFS \u2212 the new implementation of a log-structured file system<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Overview of the NILFS file system and the related tools.<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">NILFS is a log-structured file system developed for Linux. NILFS provides versioning capability of an entire file system and continuous snapshotting that allows users to restore files mistakenly overwritten or destroyed a while ago.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The current major version of NILFS is version 2, which is referred to as NILFS2. NILFS2 is equipped with an online garbage collector (also called cleaner) that reclaims disk space in the background with keeping multiple snapshots.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">When data is written or any change is made to a NILFS2 file system, it automatically creates a checkpoint. A checkpoint represents a consistent state of the NILFS2 file system of a certain instant. It becomes mountable after being changed into a snapshot. A snapshot is the checkpoint marked not to be deleted by the cleaner. NILFS2 creates a number of checkpoints at regular intervals (unless there is no change) or with synchronous writings. There is no practical limit on the number of checkpoints and snapshots.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following tools are available to manage the checkpoint and the snapshot:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>lscp<\/b><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"71%\">\n<p>lists checkpoints or snapshots<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>mkcp<\/b><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"71%\">\n<p>makes a checkpoint or a snapshot<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>chcp<\/b><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"71%\">\n<p>changes an existing checkpoint to a snapshot or vice versa<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>rmcp<\/b><\/p>\n<\/td>\n<td width=\"12%\"><\/td>\n<td width=\"71%\">\n<p>invalidates specified checkpoint(s)<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">These tools give the versioning capability to NILFS2; a user can select significant versions among continuously created checkpoints and can change them to snapshots to be preserved for long periods.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Every checkpoint except for the snapshot will become unprotected from the cleaner after a given period of time. This period is controlled by the <b>protection_period<\/b> parameter defined in the <b>\/etc\/nilfs_cleanerd.conf<\/b>(5) file.<\/p>\n<h2>MOUNT OPTIONS <a name=\"MOUNT OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Refer to the <b>mount.nilfs2<\/b>(8).<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs \u2212t nilfs2<\/b> \/dev\/sdb1<\/p>\n<p style=\"margin-left:22%;\">creates a NILFS2 file system on a block device \u2018\/dev\/sdb1\u2019.<\/p>\n<p style=\"margin-left:11%;\"><b>mount \u2212t nilfs2<\/b> \/dev\/sdb1 \/nilfs<\/p>\n<p style=\"margin-left:22%;\">mounts the NILFS2 file system on a mount point \u2018\/nilfs\u2019 like an ordinary POSIX file system. This will invoke a cleaner process <b>nilfs_cleanerd<\/b>(8) through an external mount program (i.e. <b>mount.nilfs2<\/b>(8)).<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"6%\">\n<p><b>lscp<\/b><\/p>\n<\/td>\n<td width=\"5%\"><\/td>\n<td width=\"78%\">\n<p>lists checkpoints created in the file system as follows:<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">CNO DATE TIME MODE FLG BLKCNT ICNT <br \/> 1 2014-01-18 20:49:54 cp &#8211; 4 2 <br \/> 2 2014-01-18 20:51:45 cp &#8211; 3990 11 <br \/> 3 2014-01-18 20:51:45 cp &#8211; 6058 3 <br \/> 4 2014-01-18 20:51:49 cp &#8211; 4807 6 <br \/> 5 2014-01-18 20:51:49 cp &#8211; 262 3 <br \/> &#8230; <b><br \/> chcp ss<\/b> 2<\/p>\n<p style=\"margin-left:22%;\">changes the checkpoint whose <i>checkpoint-number<\/i> is two to a snapshot. Then the checkpoint list will become as follows:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">CNO DATE TIME MODE FLG BLKCNT ICNT <br \/> 1 2014-01-18 20:49:54 cp &#8211; 4 2 <br \/> 2 2014-01-18 20:51:45 ss &#8211; 3990 11 <br \/> 3 2014-01-18 20:51:45 cp &#8211; 6058 3 <br \/> 4 2014-01-18 20:51:49 cp &#8211; 4807 6 <br \/> 5 2014-01-18 20:51:49 cp &#8211; 262 3 <br \/> &#8230; <b><br \/> mount \u2212t nilfs2 \u2212r \u2212o cp=2<\/b> \/dev\/sdb1 \/snapshot<\/p>\n<p style=\"margin-left:22%;\">mounts the snapshot on another directory \u2018\/snapshot\u2019 as a read-only file system. Here the snapshot mount requires at least two options, a read-only option (<b>\u2212r<\/b> or <b>\u2212o ro<\/b>) and the <b>cp<\/b> option (<b>\u2212o cp=<\/b><i>checkpoint-number<\/i>). Note that a read\/write mount and one or more snapshots are mountable independently, so the online backup is possible through the snapshot mounts.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"># mount \u2212t nilfs2 <br \/> \/dev\/sdb1 on \/nilfs type nilfs2 (rw,gcpid=13296) <br \/> \/dev\/sdb1 on \/snapshot type nilfs2 (ro,cp=2) <b><br \/> umount<\/b> \/nilfs<\/p>\n<p style=\"margin-left:22%;\">unmounts the NILFS2 file system mounted on \u2018\/nilfs\u2019 and will shutdown the <b>nilfs_cleanerd<\/b>(8) through an external umount program (<b>umount.nilfs2<\/b>(8)) for the read\/write mount.<\/p>\n<h2>AUTHORS <a name=\"AUTHORS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>NILFS2<\/b> was developed by NILFS development team.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>mkfs.nilfs2<\/b>(8), <b>mount.nilfs2<\/b>(8), <b>umount.nilfs2<\/b>(8), <b>nilfs_cleanerd<\/b>(8), <b>nilfs_cleanerd.conf<\/b>(5), <b>nilfs-tune<\/b>(8), <b>nilfs-clean<\/b>(8), <b>nilfs-resize<\/b>(8), <b>lscp<\/b>(1), <b>mkcp<\/b>(8), <b>chcp<\/b>(8), <b>rmcp<\/b>(8), <b>lssu<\/b>(1), <b>dumpseg<\/b>(8)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">https:\/\/nilfs.sourceforge.io\/<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  NILFS \u2212 the new implementation of a log-structured file system <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,596],"class_list":["post-3473","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-nilfs"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3473"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3473\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3473"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}