{"id":847,"date":"2015-03-11T14:08:17","date_gmt":"2015-03-11T21:08:17","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=847"},"modified":"2015-03-11T14:08:17","modified_gmt":"2015-03-11T21:08:17","slug":"solaris-boot-environment-size","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/solaris-boot-environment-size\/","title":{"rendered":"Solaris Boot Environment Size"},"content":{"rendered":"
If you have wondered why your root file system (RPOOL) on Solaris is out of space and you have double checked and none of the usual culprits are eating your space, you may need to look if perhaps you captured something large in your snapshots. For the most part I am not taking snapshots of the root file system but if you do Solaris updates (SRU) you are definitely using snapshots. This is what I had to do to reclaim space.<\/p>\n
Warning you are on your own if you ruin your boot OS.<\/span> I have the luxury of the root OS being on a SAN LUN that have separate snapshot technology and can recover quick in case something went wrong.<\/p>\n Space Before<\/strong><\/p>\n Lets create a new environment<\/strong><\/p>\n As you can see that did nothing for us. It carried the 20G over.<\/strong><\/p>\n This piece was redundant but since I was not sure if maybe I left a solaris-4 BE plus snapshot on this system from experiments before I wanted one I know for sure is brand new.<\/strong><\/p>\n reboot<\/strong><\/p>\n reboot<\/strong><\/p>\n Ok the previous part was completely redundant but I am leaving it in since it might be valuable in general. Lets now create a clean BE from a fresh snapshot. This may also be redundant but it is worthwhile to go through this.<\/strong><\/p>\n And this is the heart of what needs to happen. As I said you were warned. You better know what you are doing as well as have a fallback. This is your boot volume.\u00a0 Lets just get rid of that old snapshot from 2014. Since we are cleaning up lets just get rid of this old BE also.<\/strong><\/p>\n reboot<\/strong><\/p>\n If you have wondered why your root file system (RPOOL) on Solaris is out of space and you have double<\/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":[],"class_list":["post-847","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/847","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=847"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/847\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\r\n# df -h\r\nFilesystem Size Used Available Capacity Mounted on\r\nrpool\/ROOT\/solaris-3 24G 9.9G 3.9M 100% \/\r\n<\/pre>\n
\r\n# beadm create solaris-4\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 NR \/ 20.76G static 2014-11-21 17:42\r\nsolaris-4 - - 74.0K static 2015-03-11 12:57\r\n# beadm activate solaris-4\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 N \/ 67.0K static 2014-11-21 17:42\r\nsolaris-4 R - 20.76G static 2015-03-11 12:57\r\n<\/pre>\n
\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-4@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-4@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-4@2015-03-11-19:57:34 170K - 2.31G -\r\nrpool\/ROOT\/solaris-4\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-4\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-4\/var@2015-03-11-19:57:34 77K - 146M -\r\n<\/pre>\n
\r\n# beadm create solaris-5\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-3@2015-03-11-20:02:33 0 - 2.31G -\r\nrpool\/ROOT\/solaris-3\/var@2015-03-11-20:02:33 0 - 146M -\r\nrpool\/ROOT\/solaris-4@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-4@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-4@2015-03-11-19:57:34 170K - 2.31G -\r\nrpool\/ROOT\/solaris-4\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-4\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-4\/var@2015-03-11-19:57:34 77K - 146M -\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 N \/ 790.0K static 2014-11-21 17:42\r\nsolaris-4 R - 20.76G static 2015-03-11 12:57\r\nsolaris-5 - - 75.0K static 2015-03-11 13:02\r\n# beadm activate solaris-5\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 N \/ 67.0K static 2014-11-21 17:42\r\nsolaris-4 - - 260.0K static 2015-03-11 12:57\r\nsolaris-5 R - 20.76G static 2015-03-11 13:02\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-5@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-5@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-5@2015-03-11-19:57:34 133K - 2.31G -\r\nrpool\/ROOT\/solaris-5@2015-03-11-20:02:33 64K - 2.31G -\r\nrpool\/ROOT\/solaris-5\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-5\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-5\/var@2015-03-11-19:57:34 211K - 146M -\r\nrpool\/ROOT\/solaris-5\/var@2015-03-11-20:02:33 48K - 146M -\r\n<\/pre>\n
\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 - - 8.46M static 2014-11-21 17:42\r\nsolaris-4 - - 260.0K static 2015-03-11 12:57\r\nsolaris-5 NR \/ 20.79G static 2015-03-11 13:02\r\n\r\n# beadm destroy solaris-4\r\nAre you sure you want to destroy solaris-4? This action cannot be undone(y\/[n]): y\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-5@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-5@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-5@2015-03-11-20:02:33 29.8M - 2.31G -\r\nrpool\/ROOT\/solaris-5\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-5\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-5\/var@2015-03-11-20:02:33 2.15M - 146M -\r\n\r\n# beadm list -a solaris-5\r\nBE\/Dataset\/Snapshot Active Mountpoint Space Policy Created\r\n------------------- ------ ---------- ----- ------ -------\r\nsolaris-5\r\n rpool\/ROOT\/solaris-5 NR \/ 11.51G static 2015-03-11 13:02\r\n rpool\/ROOT\/solaris-5\/var - \/var 349.62M static 2015-03-11 13:02\r\n rpool\/ROOT\/solaris-5\/var@2014-06-17-16:56:58 - - 110.55M static 2014-06-17 09:56\r\n rpool\/ROOT\/solaris-5\/var@2015-03-11-20:02:33 - - 2.15M static 2015-03-11 13:02\r\n rpool\/ROOT\/solaris-5\/var@install - - 90.82M static 2013-07-09 10:30\r\n rpool\/ROOT\/solaris-5@2014-06-17-16:56:58 - - 7.82G static 2014-06-17 09:56\r\n rpool\/ROOT\/solaris-5@2015-03-11-20:02:33 - - 29.77M static 2015-03-11 13:02\r\n rpool\/ROOT\/solaris-5@install - - 941.40M static 2013-07-09 10:30\r\n\r\n# beadm list -s solaris-5\r\nBE\/Snapshot Space Policy Created\r\n----------- ----- ------ -------\r\nsolaris-5\r\n solaris-5@2014-06-17-16:56:58 7.82G static 2014-06-17 09:56\r\n solaris-5@2015-03-11-20:02:33 29.77M static 2015-03-11 13:02\r\n solaris-5@install 941.40M static 2013-07-09 10:30\r\n<\/pre>\n
\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 - - 8.46M static 2014-11-21 17:42\r\nsolaris-5 NR \/ 20.86G static 2015-03-11 13:02\r\n\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-5@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-5@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-5@2015-03-11-20:02:33 48.0M - 2.31G -\r\nrpool\/ROOT\/solaris-5\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-5\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-5\/var@2015-03-11-20:02:33 5.00M - 146M -\r\n\r\n# beadm list -s solaris-5\r\nBE\/Snapshot Space Policy Created\r\n----------- ----- ------ -------\r\nsolaris-5\r\n solaris-5@2014-06-17-16:56:58 7.82G static 2014-06-17 09:56\r\n solaris-5@2015-03-11-20:02:33 47.98M static 2015-03-11 13:02\r\n solaris-5@install 941.40M static 2013-07-09 10:30\r\n<\/pre>\n
\r\n# beadm create solaris-5@now\r\n# beadm list -s solaris-5\r\nBE\/Snapshot Space Policy Created\r\n----------- ----- ------ -------\r\nsolaris-5\r\n solaris-5@2014-06-17-16:56:58 7.82G static 2014-06-17 09:56\r\n solaris-5@2015-03-11-20:02:33 47.98M static 2015-03-11 13:02\r\n solaris-5@install 941.40M static 2013-07-09 10:30\r\n solaris-5@now 0 static 2015-03-11 13:22\r\n\r\n# beadm create -e solaris-5@now solaris-clean\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 - - 8.46M static 2014-11-21 17:42\r\nsolaris-5 NR \/ 20.86G static 2015-03-11 13:02\r\nsolaris-clean - - 71.0K static 2015-03-11 13:23\r\n\r\n# beadm activate solaris-clean\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-1 - - 8.48M static 2014-01-16 16:52\r\nsolaris-3 - - 8.46M static 2014-11-21 17:42\r\nsolaris-5 N \/ 123.0K static 2015-03-11 13:02\r\nsolaris-clean R - 20.86G static 2015-03-11 13:23\r\n\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-clean@install 941M - 2.03G -\r\nrpool\/ROOT\/solaris-clean@2014-06-17-16:56:58 7.82G - 9.31G -\r\nrpool\/ROOT\/solaris-clean@2015-03-11-20:02:33 48.0M - 2.31G -\r\nrpool\/ROOT\/solaris-clean@now 166K - 2.31G -\r\nrpool\/ROOT\/solaris-clean\/var@install 90.8M - 96.7M -\r\nrpool\/ROOT\/solaris-clean\/var@2014-06-17-16:56:58 111M - 139M -\r\nrpool\/ROOT\/solaris-clean\/var@2015-03-11-20:02:33 5.00M - 146M -\r\nrpool\/ROOT\/solaris-clean\/var@now 75K - 145M -\r\n<\/pre>\n
\n<\/strong><\/p>\n\r\n# zfs destroy rpool\/ROOT\/solaris-clean@2014-06-17-16:56:58\r\ncannot destroy 'rpool\/ROOT\/solaris-clean@2014-06-17-16:56:58': snapshot has dependent clones\r\nuse '-R' to destroy the following datasets:\r\nrpool\/ROOT\/solaris-1\/var\r\nrpool\/ROOT\/solaris-1\r\n\r\n# zfs destroy -R rpool\/ROOT\/solaris-clean@2014-06-17-16:56:58\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-clean@install 1.01G - 2.03G -\r\nrpool\/ROOT\/solaris-clean@2015-03-11-20:02:33 48.0M - 2.31G -\r\nrpool\/ROOT\/solaris-clean@now 166K - 2.31G -\r\nrpool\/ROOT\/solaris-clean\/var@install 91.2M - 96.7M -\r\nrpool\/ROOT\/solaris-clean\/var@2015-03-11-20:02:33 5.00M - 146M -\r\nrpool\/ROOT\/solaris-clean\/var@now 75K - 145M -\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-3 - - 8.46M static 2014-11-21 17:42\r\nsolaris-5 N \/ 123.0K static 2015-03-11 13:02\r\nsolaris-clean R - 4.99G static 2015-03-11 13:23\r\n<\/pre>\n
\r\n# beadm destroy solaris-3\r\nAre you sure you want to destroy solaris-3? This action cannot be undone(y\/[n]): y\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-5 N \/ 123.0K static 2015-03-11 13:02\r\nsolaris-clean R - 4.89G static 2015-03-11 13:23\r\n<\/pre>\n
\r\n# df -h\r\nFilesystem Size Used Available Capacity Mounted on\r\nrpool\/ROOT\/solaris-clean\r\n 24G 2.3G 8.5G 22% \/\r\n[..]\r\n\r\n<strong>Finally things look much better.<\/strong>\r\n\r\n# beadm list\r\nBE Active Mountpoint Space Policy Created\r\n-- ------ ---------- ----- ------ -------\r\nsolaris-5 - - 8.25M static 2015-03-11 13:02\r\nsolaris-clean NR \/ 4.95G static 2015-03-11 13:23\r\n# beadm list -s\r\nBE\/Snapshot Space Policy Created\r\n----------- ----- ------ -------\r\nsolaris-5\r\nsolaris-clean\r\n solaris-clean@install 1.01G static 2013-07-09 10:30\r\n solaris-clean@now 29.76M static 2015-03-11 13:22\r\n# beadm list -a\r\nBE\/Dataset\/Snapshot Active Mountpoint Space Policy Created\r\n------------------- ------ ---------- ----- ------ -------\r\nsolaris-5\r\n rpool\/ROOT\/solaris-5 - - 5.84M static 2015-03-11 13:02\r\n rpool\/ROOT\/solaris-5\/var - - 2.40M static 2015-03-11 13:02\r\nsolaris-clean\r\n rpool\/ROOT\/solaris-clean NR \/ 3.59G static 2015-03-11 13:23\r\n rpool\/ROOT\/solaris-clean\/var - \/var 238.33M static 2015-03-11 13:23\r\n rpool\/ROOT\/solaris-clean\/var@install - - 91.21M static 2013-07-09 10:30\r\n rpool\/ROOT\/solaris-clean\/var@now - - 2.21M static 2015-03-11 13:22\r\n rpool\/ROOT\/solaris-clean@install - - 1.01G static 2013-07-09 10:30\r\n rpool\/ROOT\/solaris-clean@now - - 29.76M static 2015-03-11 13:22\r\n\r\n# zfs list -t snapshot\r\nNAME USED AVAIL REFER MOUNTPOINT\r\nrpool\/ROOT\/solaris-clean@install 1.01G - 2.03G -\r\nrpool\/ROOT\/solaris-clean@now 29.8M - 2.31G -\r\nrpool\/ROOT\/solaris-clean\/var@install 91.2M - 96.7M -\r\nrpool\/ROOT\/solaris-clean\/var@now 2.21M - 145M -\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"