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
LVM: Reduce an existing Volume Group by removing one of its disks
Viewed 2957 times since Sat, Jun 2, 2018
stunnel: Authentication
Viewed 9617 times since Fri, Sep 28, 2018
LVM: Mount LVM Partition(s) in Rescue Mode
Viewed 5649 times since Sat, Jun 2, 2018
Linux - How to get Memory information
Viewed 2415 times since Fri, Jun 8, 2018
Fałszujemy rozpoznania skanerów #2
Viewed 3460 times since Mon, May 21, 2018
LOGROTATE – ARCHIWIAZACJA LOGÓW
Viewed 2551 times since Fri, Nov 30, 2018
How do I add ethtool settings to a network device permanently?
Viewed 7328 times since Mon, May 21, 2018
How to disable SSH cipher/ MAC algorithms for Linux and Unix
Viewed 49579 times since Fri, Aug 21, 2020
RHEL: Retrieve and generate a unique SCSI identifier
Viewed 3824 times since Sat, Jun 2, 2018
Extending Linux LVM partitions - scripts
Viewed 7122 times since Sun, May 20, 2018