ZPOOL: Verify/change properties of a zpool

ZPOOL: Verify/change properties of a zpool

# Tested on RHEL 6 & 7


# Check the properties of the zpool

zpool get all $ZPOOL
   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
   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
There are no attachments for this article.
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
Using etckeeper with git
Viewed 939 times since Sun, Jun 3, 2018
How to manage Linux password expiry with the chage command
Viewed 500 times since Tue, Sep 11, 2018
LUKS dm-crypt/Device encryption GUIDE
Viewed 573 times since Fri, Jul 13, 2018
Red Hat Cluster Tutorial
Viewed 700 times since Sun, Jun 3, 2018
YUM How to use yum command on CentOS/RHEL
Viewed 2072 times since Thu, Oct 25, 2018
RHEL: Forgotten ’root’ password / using single-user to gain access
Viewed 937 times since Sat, Jun 2, 2018
SYS: Configure a local repository. local repo
Viewed 618 times since Mon, Oct 29, 2018
linux unix aix banner /etc/issue
Viewed 519 times since Fri, Aug 3, 2018
CentOS / RHEL : How to move a Volume Group from one system to another
Viewed 590 times since Mon, Jan 28, 2019
RHEL: Route network packets to go out via the same interface they came in
Viewed 1055 times since Sat, Jun 2, 2018