{"id":842,"date":"2015-02-18T05:39:25","date_gmt":"2015-02-18T13:39:25","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=842"},"modified":"2015-02-18T05:39:25","modified_gmt":"2015-02-18T13:39:25","slug":"expanding-a-solaris-rpool","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/expanding-a-solaris-rpool\/","title":{"rendered":"Expanding a Solaris RPOOL"},"content":{"rendered":"
For reference I have a couple older articles on this topic here:
\nhttp:\/\/blog.ls-al.com\/growing-a-solaris-ldom-rpool\/
\nhttp:\/\/blog.ls-al.com\/zfs-grow-rpool-disk\/<\/p>\n
Specifically this article is what I did recently on a SPARC LDOM to expand the RPOOL. The RPOOL OS disk is a SAN shared LUN in this case.<\/p>\n
After growing the LUN to 50G on the back-end I did the following. You may have to try more than once. For me it did not work at first and I don't know the sequence but I tried a combination of reboot, zpool status, label and verify and it worked. And yes I did say zpool status. I have had issues with upgrades in the past where beadm did not activate a new environment and zpool status resolved it.<\/p>\n
Also you will notice my boot partition was already an EFI label. I don't recall where but somewhere along the lines in Solaris 11.1 EFI labels became possible. If you have a SMI label you may have to try a different approach. And as always tinkering with partitions and disk labels is dangerous so you are warned.<\/p>\n
\r\n# zpool list\r\nNAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT\r\napp 49.8G 12.9G 36.9G 25% 1.00x ONLINE -\r\nrpool 29.8G 27.6G 2.13G 92% 1.00x ONLINE -\r\n\r\n# format -e\r\nSearching for disks...done\r\n\r\nAVAILABLE DISK SELECTIONS:\r\n 0. c1d0 <SUN-ZFS Storage 7330-1.0-50.00GB>\r\n \/virtual-devices@100\/channel-devices@200\/disk@0\r\n 1. c1d1 <Unknown-Unknown-0001-50.00GB>\r\n \/virtual-devices@100\/channel-devices@200\/disk@1\r\nSpecify disk (enter its number): 0\r\nselecting c1d0\r\n[disk formatted]\r\n\/dev\/dsk\/c1d0s0 is part of active ZFS pool rpool. Please see zpool(1M).\r\n\r\n[..]\r\n\r\nformat> verify\r\n\r\nVolume name = < >\r\nascii name = <SUN-ZFS Storage 7330-1.0-50.00GB>\r\nbytes\/sector = 512\r\nsectors = 104857599\r\naccessible sectors = 104857566\r\nPart Tag Flag First Sector Size Last Sector\r\n 0 usr wm 256 49.99GB 104841182\r\n 1 unassigned wm 0 0 0\r\n 2 unassigned wm 0 0 0\r\n 3 unassigned wm 0 0 0\r\n 4 unassigned wm 0 0 0\r\n 5 unassigned wm 0 0 0\r\n 6 unassigned wm 0 0 0\r\n 7 unassigned wm 0 0 0\r\n 8 reserved wm 104841183 8.00MB 104857566\r\n\r\n[..]\r\n\r\nformat> label\r\n[0] SMI Label\r\n[1] EFI Label\r\nSpecify Label type[1]:\r\nReady to label disk, continue? y\r\n\r\nformat> q\r\n\r\n# zpool list\r\nNAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT\r\napp 49.8G 12.9G 36.9G 25% 1.00x ONLINE -\r\nrpool 29.8G 27.6G 2.13G 92% 1.00x ONLINE -\r\n\r\n# zpool set autoexpand=on rpool\r\n\r\n# zpool list\r\nNAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT\r\napp 49.8G 12.9G 36.9G 25% 1.00x ONLINE -\r\nrpool 49.8G 27.6G 22.1G 55% 1.00x ONLINE -\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"For reference I have a couple older articles on this topic here: http:\/\/blog.ls-al.com\/growing-a-solaris-ldom-rpool\/ http:\/\/blog.ls-al.com\/zfs-grow-rpool-disk\/ Specifically this article is what I<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54,14,30],"tags":[],"class_list":["post-842","post","type-post","status-publish","format-standard","hentry","category-ldom","category-solaris","category-zfs"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/842","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=842"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/842\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=842"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=842"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=842"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}