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
A tcpdump Tutorial and Primer with Examples
Viewed 5019 times since Sun, Jun 17, 2018
Using grep to find string in files
Viewed 2075 times since Fri, May 15, 2020
30 Handy Bash Shell Aliases For Linux / Unix / MacOS
Viewed 4544 times since Thu, Feb 11, 2021
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 2953 times since Tue, Jul 17, 2018
Secure Remote Logging to Central Log Server Using RSYSLOG on CentOS 6 / CentOS 7 and stunnel
Viewed 3579 times since Sun, Dec 6, 2020
How to encrypt a partition with DM-Crypt LUKS on Linux
Viewed 8122 times since Fri, Jul 13, 2018
Installing and Configuring an OCFS2 Clustered File System
Viewed 5775 times since Sat, Jun 2, 2018
RHCS6: Show/Add GFS2/GFS journals
Viewed 12636 times since Sun, Jun 3, 2018
zabbix linux How to solve apache error No space left on device: Cannot create SSLMutex
Viewed 2303 times since Wed, Nov 11, 2020
Nagrywanie sesji SSH do pliku
Viewed 2851 times since Thu, May 24, 2018