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 Quick and Practical Reference for tcpdump
Viewed 14073 times since Fri, Jul 27, 2018
How to sort IP addresses in Linux
Viewed 4589 times since Sun, May 20, 2018
SSH: Execute Remote Command or Script – Linux
Viewed 3238 times since Mon, Feb 18, 2019
Sample logrotate configuration and troubleshooting part 2
Viewed 10646 times since Fri, Nov 30, 2018
RHEL: Displaying system info (firmware, serial numbers... )
Viewed 13512 times since Sun, May 27, 2018
Przekazywanie portów TCP rinetd
Viewed 47317 times since Thu, May 24, 2018
OEL 7 – How to disable IPv6 on Oracle Linux 7 – Follow Up
Viewed 10589 times since Wed, Jul 25, 2018
LVM: Reduce SWAP size by removing a Logical Volume
Viewed 3468 times since Sat, Jun 2, 2018
Linux Customizing Bash
Viewed 3093 times since Sun, Dec 6, 2020
Method 2 – Use shell scripts How to install yum cron on a CentOS/RHEL 6.x/7.x
Viewed 5189 times since Tue, Dec 4, 2018