ZPOOL: Verify/change properties of a zpool

ZPOOL: Verify/change properties of a zpool

# Tested on RHEL 6 & 7


ZPOOL=my_pool

# Check the properties of the zpool

zpool get all $ZPOOL
   NAME     PROPERTY       VALUE       SOURCE
   my_pool  size           19.9G       -
   my_pool  capacity       0%          -
   my_pool  altroot        -           default
   my_pool  health         ONLINE      -
   my_pool  guid           8636061670390873201  default
   my_pool  version        28          default
   my_pool  bootfs         -           default
   my_pool  delegation     on          default
   my_pool  autoreplace    off         default
   my_pool  cachefile      -           default
   my_pool  failmode       wait        default
   my_pool  listsnapshots  off         default
   my_pool  autoexpand     off         default
   my_pool  dedupditto     0           default
   my_pool  dedupratio     1.00x       -
   my_pool  free           19.9G       -
   my_pool  allocated      105K        -
   my_pool  readonly       off         -
   my_pool  ashift         0           default



# Get one the properties

zpool get autoexpand $ZPOOL
   NAME     PROPERTY    VALUE   SOURCE
   my_pool  autoexpand  off     default


# Change one of the properties (in this case, we enable the automatic pool expansion when a
# larger disk replaces a smaller disk, so the whole size of the new disk will be used
# instead of limiting the pool to the original size).

zpool set autoexpand=on $ZPOOL
0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Linux Audit The Linux security blog about Auditing, Hardening, and Compliance lynis
Viewed 2316 times since Thu, Jan 16, 2020
Using etckeeper with git
Viewed 7126 times since Sun, Jun 3, 2018
Linux nslookup Command Examples for DNS Lookup
Viewed 9192 times since Sat, Sep 29, 2018
RHEL: Handling SCSI disks
Viewed 12767 times since Sun, May 27, 2018
Monitoring bezpieczeństwa Linux: integracja auditd + OSSEC cz. I
Viewed 2663 times since Fri, Apr 5, 2019
LVM: Create a new Volume Group
Viewed 2281 times since Sat, Jun 2, 2018
Check a Website Availability from the Linux Command Line
Viewed 6891 times since Mon, Feb 18, 2019
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 3469 times since Tue, Aug 6, 2019
Set Up SSH Tunneling on a Linux / Unix / BSD Server To Bypass NAT
Viewed 11503 times since Fri, May 15, 2020
Enabling or disabling a repository using Red Hat Subscription Management
Viewed 11280 times since Mon, Oct 29, 2018