{"id":398,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-01T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/add-a-couple-of-disks-to-your-zpool-and-grow-some-filesystems\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-01T13:51:50","slug":"add-a-couple-of-disks-to-your-zpool-and-grow-some-filesystems","status":"publish","type":"post","link":"\/blog\/index.php\/add-a-couple-of-disks-to-your-zpool-and-grow-some-filesystems\/","title":{"rendered":"Add a couple of disks to your zpool and grow some filesystems"},"content":{"rendered":"<p>First, check the status of your pool<br \/>\nbash-3.00# zpool status -v<br \/>\npool: amx002zpool1<br \/>\nstate: ONLINE<br \/>\nscrub: none requested<br \/>\nconfig:<br \/>\nNAME STATE READ WRITE CKSUM<br \/>\namx002zpool1 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393543d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393536d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393530d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393441d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393434d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030433435d0 ONLINE 0 0 0<br \/>\nerrors: No known data errors<br \/>\nThen add a couple of disks to it:<br \/>\nbash-3.00# zpool add amx002zpool1 c6t60060480000190101353533031343236d0<br \/>\nbash-3.00# zpool add amx002zpool1 c6t60060480000190101353533031343243d0<br \/>\nNow check if they&#8217;re added:<br \/>\nbash-3.00# zpool status -v<br \/>\npool: amx002zpool1<br \/>\nstate: ONLINE<br \/>\nscrub: none requested<br \/>\nconfig:<br \/>\nNAME STATE READ WRITE CKSUM<br \/>\namx002zpool1 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393543d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393536d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393530d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393441d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030393434d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533030433435d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533031343236d0 ONLINE 0 0 0<br \/>\nc6t60060480000190101353533031343243d0 ONLINE 0 0 0<br \/>\nerrors: No known data errors<br \/>\nList free space on the pool:<br \/>\nbash-3.00# zpool list<br \/>\nNAME SIZE USED AVAIL CAP HEALTH ALTROOT<br \/>\n99\/433<br \/>\ngskhr009zpool1 69.5G 5.87G 63.6G 8% ONLINE &#8211;<br \/>\ngskhr009zpool2 139G 73.6G 65.4G 52% ONLINE &#8211;<br \/>\ngskhr009zpool3 1.70T 1.24T 468G 73% ONLINE &#8211;<br \/>\nList all the filesystems in the pool:<br \/>\nbash-3.00# zfs list<br \/>\nNAME USED AVAIL REFER MOUNTPOINT<br \/>\namx002zpool1 345G 157G 24.5K \/amx002zpool1<br \/>\namx002zpool1\/amx21 64.6G 6.37G 64.6G \/amx21<br \/>\namx002zpool1\/amx22 32.9G 4.12G 32.9G \/amx22<br \/>\namx002zpool1\/amx23 26.1G 4.95G 26.1G \/amx23<br \/>\namx002zpool1\/amx24 58.9G 6.15G 58.9G \/amx24<br \/>\namx002zpool1\/amx25 49.6G 7.39G 49.6G \/amx25<br \/>\namx002zpool1\/oracle 6.50G 1.50G 6.50G \/oracle<br \/>\namx002zpool1\/oracle-export 21.6G 23.4G 21.6G \/oracle\/export<br \/>\namx002zpool1\/oracle2 24.5K 8.00G 24.5K \/opt\/oracle<br \/>\namx002zpool1\/psreports 24.5K 3.00G 24.5K \/opt\/reports<br \/>\namx002zpool1\/vendor 690K 20.0G 690K \/opt\/vendor<br \/>\nGet a quota and reservation for the filesystem to grow:<br \/>\nbash-3.00# zfs get quota amx002zpool1\/amx21<br \/>\nNAME PROPERTY VALUE SOURCE<br \/>\namx002zpool1\/amx21 quota 71G local<br \/>\nbash-3.00# zfs get reservation amx002zpool1\/amx21<br \/>\nNAME PROPERTY VALUE SOURCE<br \/>\namx002zpool1\/amx21 reservation 71G local<br \/>\nGrow the filesystem:<br \/>\nbash-3.00# zfs set quota=100G amx002zpool1\/amx21<br \/>\nbash-3.00# zfs set reservation=100G amx002zpool1\/amx21<br \/>\nThat&#8217;s it, have fun<br \/>\n100\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>First, check the status of your pool bash-3.00# zpool status -v pool: amx002zpool1 state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM amx002zpool1 ONLINE 0 0 0 c6t60060480000190101353533030393543d0 ONLINE 0 0 0 c6t60060480000190101353533030393536d0 ONLINE 0 0 0 c6t60060480000190101353533030393530d0 ONLINE 0 0 0 c6t60060480000190101353533030393441d0 ONLINE 0 0 0 c6t60060480000190101353533030393434d0 ONLINE 0 0 0 c6t60060480000190101353533030433435d0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}