{"id":141,"date":"2007-11-30T15:46:01","date_gmt":"2007-11-30T23:46:01","guid":{"rendered":"http:\/\/jim-zimmerman.com\/blog\/?p=141"},"modified":"2007-11-30T15:48:24","modified_gmt":"2007-11-30T23:48:24","slug":"how-to-resize-ext3-on-dl360-running-rh-72","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=141","title":{"rendered":"How to resize ext3 on DL360 running RH 7.2"},"content":{"rendered":"<p>\u00ef\u00bb\u00bfWith the system up:<br \/>\nGet current disk configuration using df, df -h, fdisk -l \/dev\/ida\/c0d0, and fdisk -s \/dev\/ida\/c0d0p7 (for any partitions you want to resize).<\/p>\n<p>Replace the left drive with a 36GB drive, and allow mirror to re-create.<\/p>\n<p>Once completed, replace the right drive with a 36GB drive and allow mirror to re-create.<\/p>\n<p>Boot system off the Smart Start 5.50 CD.<\/p>\n<p>Select Array Configuration Utility.<\/p>\n<p>Click cancel on the message regarding unallocated space.<\/p>\n<p>Select the Logical drive and click Expand.  This process takes between 2 and 3 hours to complete.<\/p>\n<p>Boot the system in single user mode.<\/p>\n<p>Make sure all the drives are mounted.<\/p>\n<p>Get current disk configuration using df, df -h, fdisk -l \/dev\/ida\/c0d0, and fdisk -s \/dev\/ida\/c0d0p7 (for any partitions you want to resize).  Fdisk should show more available cylinders than before.<\/p>\n<p>Umount \/opt.<\/p>\n<p>Umount \/dev\/ida\/c0d0p7.<\/p>\n<p>Fsck -n \/dev\/ida\/c0d0p7.<\/p>\n<p>Tune2fs -O ^has_journal \/dev\/ida\/c0d0p7.<\/p>\n<p>Fdisk \/dev\/ida\/c0d0.<\/p>\n<p>Select p.<\/p>\n<p># df<br \/>\nFilesystem           1k-blocks      Used Available Use% Mounted on<br \/>\n\/dev\/ida\/c0d0p2        4031872   3481192    345864  91% \/<br \/>\n\/dev\/ida\/c0d0p7        6694568   6151136    203368  97% \/opt<br \/>\nnone                    579996         0    579996   0% \/dev\/shm<br \/>\n\/dev\/ida\/c0d0p6        2602280   2259876    210216  92% \/var<\/p>\n<p># df -h<br \/>\nFilesystem            Size  Used Avail Use% Mounted on<br \/>\n\/dev\/ida\/c0d0p2       3.8G  3.4G  337M  91% \/<br \/>\n\/dev\/ida\/c0d0p7       6.4G  5.9G  198M  97% \/opt<br \/>\nnone                  566M     0  566M   0% \/dev\/shm<br \/>\n\/dev\/ida\/c0d0p6       2.5G  2.2G  205M  92% \/var<\/p>\n<p># fdisk -l \/dev\/ida\/c0d0<\/p>\n<p>Disk \/dev\/ida\/c0d0: 255 heads, 32 sectors, 8716 cylinders<br \/>\nUnits = cylinders of 8160 * 512 bytes<\/p>\n<p>         Device Boot    Start       End    Blocks   Id  System<br \/>\n\/dev\/ida\/c0d0p1             1         9     36704   12  Compaq diagnostics<br \/>\n\/dev\/ida\/c0d0p2   *        10      1013   4096320   83  Linux<br \/>\n\/dev\/ida\/c0d0p3          1014      4357  13643520    5  Extended<br \/>\n\/dev\/ida\/c0d0p5          1014      2042   4198304   82  Linux swap<br \/>\n\/dev\/ida\/c0d0p6          2043      2690   2643824   83  Linux<br \/>\n\/dev\/ida\/c0d0p7          2691      4357   6801344   83  Linux<\/p>\n<p># lsof \/opt<\/p>\n<p># umount \/opt<\/p>\n<p># fsck -n \/dev\/ida\/c0d0p7<br \/>\nfsck 1.26 (3-Feb-2002)<br \/>\ne2fsck 1.26 (3-Feb-2002)<br \/>\n\/opt: clean, 33466\/850304 files, 1564478\/1700336 blocks<\/p>\n<p># tune2fs -O ^has_journal \/dev\/ida\/c0d0p7<br \/>\ntune2fs 1.26 (3-Feb-2002)<\/p>\n<p># fdisk \/dev\/ida\/c0d0<\/p>\n<p>The number of cylinders for this disk is set to 8716.<br \/>\nThere is nothing wrong with that, but this is larger than 1024,<br \/>\nand could in certain setups cause problems with:<br \/>\n1) software that runs at boot time (e.g., old versions of LILO)<br \/>\n2) booting and partitioning software from other OSs<br \/>\n   (e.g., DOS FDISK, OS\/2 FDISK)<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/ida\/c0d0: 255 heads, 32 sectors, 8716 cylinders<br \/>\nUnits = cylinders of 8160 * 512 bytes<\/p>\n<p>         Device Boot    Start       End    Blocks   Id  System<br \/>\n\/dev\/ida\/c0d0p1             1         9     36704   12  Compaq diagnostics<br \/>\n\/dev\/ida\/c0d0p2   *        10      1013   4096320   83  Linux<br \/>\n\/dev\/ida\/c0d0p3          1014      4357  13643520    5  Extended<br \/>\n\/dev\/ida\/c0d0p5          1014      2042   4198304   82  Linux swap<br \/>\n\/dev\/ida\/c0d0p6          2043      2690   2643824   83  Linux<br \/>\n\/dev\/ida\/c0d0p7          2691      4357   6801344   83  Linux<\/p>\n<p>Command (m for help): d<br \/>\nPartition number (1-7): 3<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/ida\/c0d0: 255 heads, 32 sectors, 8716 cylinders<br \/>\nUnits = cylinders of 8160 * 512 bytes<\/p>\n<p>         Device Boot    Start       End    Blocks   Id  System<br \/>\n\/dev\/ida\/c0d0p1             1         9     36704   12  Compaq diagnostics<br \/>\n\/dev\/ida\/c0d0p2   *        10      1013   4096320   83  Linux<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   e   extended<br \/>\n   p   primary partition (1-4)<br \/>\ne<br \/>\nPartition number (1-4): 3<br \/>\nFirst cylinder (1014-8716, default 1014):<br \/>\nUsing default value 1014<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1014-8716, default 8716):<br \/>\nUsing default value 8716<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   l   logical (5 or over)<br \/>\n   p   primary partition (1-4)<br \/>\nl<br \/>\nFirst cylinder (1014-8716, default 1014):<br \/>\nUsing default value 1014<br \/>\nLast cylinder or +size or +sizeM or +sizeK (1014-8716, default 8716): 2042<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   l   logical (5 or over)<br \/>\n   p   primary partition (1-4)<br \/>\nl<br \/>\nFirst cylinder (2043-8716, default 2043):<br \/>\nUsing default value 2043<br \/>\nLast cylinder or +size or +sizeM or +sizeK (2043-8716, default 8716): 2690<\/p>\n<p>Command (m for help): n<br \/>\nCommand action<br \/>\n   l   logical (5 or over)<br \/>\n   p   primary partition (1-4)<br \/>\nl<br \/>\nFirst cylinder (2691-8716, default 2691):<br \/>\nUsing default value 2691<br \/>\nLast cylinder or +size or +sizeM or +sizeK (2691-8716, default 8716):<br \/>\nUsing default value 8716<\/p>\n<p>Command (m for help): p<\/p>\n<p>Disk \/dev\/ida\/c0d0: 255 heads, 32 sectors, 8716 cylinders<br \/>\nUnits = cylinders of 8160 * 512 bytes<\/p>\n<p>         Device Boot    Start       End    Blocks   Id  System<br \/>\n\/dev\/ida\/c0d0p1             1         9     36704   12  Compaq diagnostics<br \/>\n\/dev\/ida\/c0d0p2   *        10      1013   4096320   83  Linux<br \/>\n\/dev\/ida\/c0d0p3          1014      8716  31428240    5  Extended<br \/>\n\/dev\/ida\/c0d0p5          1014      2042   4198304   83  Linux<br \/>\n\/dev\/ida\/c0d0p6          2043      2690   2643824   83  Linux<br \/>\n\/dev\/ida\/c0d0p7          2691      8716  24586064   83  Linux<\/p>\n<p>Command (m for help): w<br \/>\nThe partition table has been altered!<\/p>\n<p>Calling ioctl() to re-read partition table.<br \/>\nRe-read table failed with error 16: Device or resource busy.<br \/>\nReboot your system to ensure the partition table is updated.<\/p>\n<p>WARNING: If you have created or modified any DOS 6.x<br \/>\npartitions, please see the fdisk manual page for additional<br \/>\ninformation.<br \/>\nSyncing disks.<\/p>\n<p># shutdown -r now<\/p>\n<p>Boot in single user mode<\/p>\n<p># resize2fs \/dev\/ida\/c0d0p7<br \/>\nresize2fs 1.26 (3-Feb-2002)<br \/>\nThe filesystem on \/dev\/ida\/c0d0p7 is now 6146516 blocks long.<\/p>\n<p># fsck -n \/dev\/ida\/c0d0p7<br \/>\nfsck 1.26 (3-Feb-2002)<br \/>\ne2fsck 1.26 (3-Feb-2002)<br \/>\n\/opt: clean, 33466\/3074176 files, 1626059\/6146516 blocks<\/p>\n<p># tune2fs -j \/dev\/ida\/c0d0p7<br \/>\ntune2fs 1.26 (3-Feb-2002)<br \/>\nCreating journal inode: done<br \/>\nThis filesystem will be automatically checked every -1 mounts or<br \/>\n0 days, whichever comes first.  Use tune2fs -c or -i to override.<\/p>\n<p># shutdown -r now<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00ef\u00bb\u00bfWith the system up: Get current disk configuration using df, df -h, fdisk -l \/dev\/ida\/c0d0, and fdisk -s \/dev\/ida\/c0d0p7 (for any partitions you want to resize). Replace the left drive with a 36GB drive, and allow mirror to re-create. Once completed, replace the right drive with a 36GB drive and allow mirror to re-create. Boot [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-documentation"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=141"}],"version-history":[{"count":0,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}