{"id":11989,"date":"2022-01-13T14:51:47","date_gmt":"2022-01-13T13:51:47","guid":{"rendered":"https:\/\/wp.jochen.hayek.name\/blog-en\/?p=11989"},"modified":"2022-01-13T14:51:48","modified_gmt":"2022-01-13T13:51:48","slug":"linux-extending-the-capacity-of-a-filesystem","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2022\/01\/13\/linux-extending-the-capacity-of-a-filesystem\/","title":{"rendered":"Linux: extending the capacity of a filesystem"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/learning.oreilly.com\/library\/view\/centos-7-linux\/9781785887284\/ch05s06.html#ch05lvl2sec149\">https:\/\/learning.oreilly.com\/library\/view\/centos-7-linux\/9781785887284\/ch05s06.html#ch05lvl2sec149<\/a> \u2013 context: XFS, LVM<\/li><li><a href=\"https:\/\/learning.oreilly.com\/library\/view\/linux-powerful-server\/9781788293778\/ch19s06.html#ch05lvl2sec0151\">https:\/\/learning.oreilly.com\/library\/view\/linux-powerful-server\/9781788293778\/ch19s06.html#ch05lvl2sec0151<\/a> (by the same authors)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In 2022 it looks a little unreasonable to not use LVM but only partitions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Resizing a filesystem on a partition (as opposed to on an LVM volume) should only be done, if \/ as long as the filesystem is <span style=\"text-decoration: underline;\">not<\/span> <span style=\"text-decoration: underline;\">mounted<\/span> on that partition.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/linuxconfig.org\/how-to-resize-ext4-root-partition-live-without-umount\">https:\/\/linuxconfig.org\/how-to-resize-ext4-root-partition-live-without-umount<\/a> \u2013 &#8220;<em>Resizing any live partition without unmout comes with a tremendous risk of loosing data thus it is not recommended. If you a have a sensitive data stored on your system, it is always recommended to take the system down make a backup and resize the partition while it is not mounted.<\/em>&#8220;<\/li><li><a href=\"https:\/\/askubuntu.com\/questions\/60431\/how-do-i-resize-root-partition\">https:\/\/askubuntu.com\/questions\/60431\/how-do-i-resize-root-partition<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/learning.oreilly.com\/library\/view\/centos-7-linux\/9781785887284\/ch05s06.html#ch05lvl2sec149 \u2013 context: XFS, LVM https:\/\/learning.oreilly.com\/library\/view\/linux-powerful-server\/9781788293778\/ch19s06.html#ch05lvl2sec0151 (by the same authors) In 2022 it looks a little unreasonable to not use LVM but only partitions. Resizing a filesystem on a partition (as opposed to on an LVM volume) should only be done, if \/ as long as the filesystem is not mounted on that partition. https:\/\/linuxconfig.org\/how-to-resize-ext4-root-partition-live-without-umount [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[306],"tags":[],"class_list":["post-11989","post","type-post","status-publish","format-standard","hentry","category-linux"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-37n","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=11989"}],"version-history":[{"count":2,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11989\/revisions"}],"predecessor-version":[{"id":11991,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/11989\/revisions\/11991"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=11989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=11989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=11989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}