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
RHEL7: How to get started with Firewalld.
Viewed 12256 times since Wed, May 22, 2019
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
Viewed 2873 times since Mon, Nov 23, 2020
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 4289 times since Tue, Dec 4, 2018
www.unixarena.com
Viewed 2566 times since Fri, Jul 27, 2018
How To Create a Linux Swap File
Viewed 2593 times since Fri, Jun 8, 2018
Find All Large Files On A Linux System
Viewed 2347 times since Mon, Oct 29, 2018
How To: Linux Hard Disk Encryption With LUKS [ cryptsetup Command ]
Viewed 7465 times since Fri, Jul 13, 2018
Setup SSL Tunnel Using Stunnel on Ubuntu
Viewed 2829 times since Fri, Sep 28, 2018
Odpalenie polecenia tylko na jedną godzinę
Viewed 2961 times since Thu, May 24, 2018
Improve security with polyinstantiation
Viewed 13479 times since Fri, May 15, 2020