{"id":1057,"date":"2015-12-24T16:20:13","date_gmt":"2015-12-25T00:20:13","guid":{"rendered":"http:\/\/blog.portnumber53.com\/?p=1057"},"modified":"2015-12-24T16:20:13","modified_gmt":"2015-12-25T00:20:13","slug":"coreos-resizing-partition-c0d0p9-on-a-hp-dl360-g5","status":"publish","type":"post","link":"https:\/\/blog.portnumber53.com\/index.php\/2015\/12\/24\/coreos-resizing-partition-c0d0p9-on-a-hp-dl360-g5\/","title":{"rendered":"CoreOS: Resizing partition c0d0p9 on a HP DL360 G5"},"content":{"rendered":"<p>\n\tI recently installed CoreOS on my HP DL360 G5 and notice that even though I setup a hardware-raid 5 with 6 72GB SAS drives, my ninth partition was only 2GB in size.\n<\/p>\n<p>\n\tAfter some research I found out that CoreOS is supposed to enlarge the ninth partition automatically but that didn&#39;t happen for my DL360, so I went digging.\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\tAfter a quick google search I saw that there is a patch for that:\n<\/p>\n<p>\n\t<a href=\"https:\/\/github.com\/coreos\/bugs\/issues\/1037\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/coreos\/bugs\/issues\/1037<\/a>\n<\/p>\n<p>\n\t<br \/>\n\tUnfortunatelly it doesn&#39;t seem to be in the stable channel (at the time of my installation), so I was trying to manually apply the change, which then made me realize that \/ and \/usr are mounted read-only.\n<\/p>\n<p>\n\tSo I checked what&nbsp;<strong>\/usr\/lib64\/coreos\/extend-filesystems<\/strong> does and I had only to issue the following commands as root:\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<pre>\ndl360g5 ~ # cgpt resize  \/dev\/cciss\/c0d0p9\ndl360g5 ~ # resize2fs \/dev\/cciss\/c0d0p9\nresize2fs 1.42.13 (17-May-2015)\nFilesystem at \/dev\/cciss\/c0d0p9 is mounted on \/; on-line resizing required\nold_desc_blocks = 1, new_desc_blocks = 22\nThe filesystem on \/dev\/cciss\/c0d0p9 is now 88960814 (4k) blocks long.<\/pre>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\tUsing gdisk to confirm:\n<\/p>\n<pre>\ndl360g5 ~ # gdisk \/dev\/cciss\/c0d0\nGPT fdisk (gdisk) version 0.8.10\n\nPartition table scan:\n  MBR: hybrid\n  BSD: not present\n  APM: not present\n  GPT: present\n\nFound valid GPT with hybrid MBR; using GPT.\n\nCommand (? for help): p\nDisk \/dev\/cciss\/c0d0: 716544402 sectors, 341.7 GiB\nLogical sector size: 512 bytes\nDisk identifier (GUID): FF0E5BB2-0C8E-495C-82C2-C1BDD46AAA0D\nPartition table holds up to 128 entries\nFirst usable sector is 34, last usable sector is 716544368\nPartitions will be aligned on 2048-sector boundaries\nTotal free space is 4062 sectors (2.0 MiB)\n\nNumber  Start (sector)    End (sector)  Size       Code  Name\n   1            4096          266239   128.0 MiB   EF00  EFI-SYSTEM\n   2          266240          270335   2.0 MiB     EF02  BIOS-BOOT\n   3          270336         2367487   1024.0 MiB  FFFF  USR-A\n   4         2367488         4464639   1024.0 MiB  FFFF  USR-B\n   6         4464640         4726783   128.0 MiB   8300  OEM\n   7         4726784         4857855   64.0 MiB    FFFF  OEM-CONFIG\n   9         4857856       716544368   339.4 GiB   FFFF  ROOT\n\nCommand (? for help): q\n<\/pre>\n<p>\n\tAnd after rebooting:\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<pre>\nLast login: Fri Dec 25 00:07:35 2015 from 192.168.1.151\nCoreOS stable (835.9.0)\nFailed Units: 1\n  extend-filesystems.service\ncore@dl360g5 ~ $ df -h\nFilesystem         Size  Used Avail Use% Mounted on\ndevtmpfs            16G     0   16G   0% \/dev\ntmpfs               16G     0   16G   0% \/dev\/shm\ntmpfs               16G  480K   16G   1% \/run\ntmpfs               16G     0   16G   0% \/sys\/fs\/cgroup\n\/dev\/cciss\/c0d0p9  329G   41M  316G   1% \/\n\/dev\/cciss\/c0d0p3  985M  492M  442M  53% \/usr\n\/dev\/cciss\/c0d0p1  128M   35M   94M  27% \/boot\ntmpfs               16G     0   16G   0% \/media\ntmpfs               16G     0   16G   0% \/tmp\n\/dev\/cciss\/c0d0p6  108M   52K   99M   1% \/usr\/share\/oem\ncore@dl360g5 ~ $\n<\/pre>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\tAnd now I have all the space I can from my raid-5 \ud83d\ude42\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently installed CoreOS on my HP DL360 G5 and notice that even though I setup a hardware-raid 5 with 6 72GB SAS drives, my ninth partition was only 2GB in size. After some research I found out that CoreOS is supposed to enlarge the ninth partition automatically but that&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/blog.portnumber53.com\/index.php\/2015\/12\/24\/coreos-resizing-partition-c0d0p9-on-a-hp-dl360-g5\/\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[68,90,112,181,268],"class_list":["post-1057","post","type-post","status-publish","format-standard","hentry","category-linux","tag-c0d0p9","tag-coreos","tag-dl360g5","tag-hp","tag-partition-size"],"_links":{"self":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/1057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/comments?post=1057"}],"version-history":[{"count":0,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/posts\/1057\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/media?parent=1057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/categories?post=1057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.portnumber53.com\/index.php\/wp-json\/wp\/v2\/tags?post=1057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}