Software >> OS >> Unix >> Solaris >> 10 >> What are the examples of zpool/zfs commands

zpool

1.  To list zfs pools in brief format

# zpool list

2.  To show status of a particular pool

# zpool status poolname

3.  To check % resilver progress

# zpool status poolname | grep %

4.  To offline a device in a pool

# zpool offline poolname device

eg.

# zpool offline rpool c0t1d0

zfs

1.  to mount a zfs filesystem whose "canmount" paramter was not set to "off"

# zfs mount filesystem

eg.

# zfs mount rpool/opt

2.  To get the value of a property for a filesystem

# zfs get propertyname filesystem

e.g.

# zfs get canmount rpool/opt