Tag Info

New answers tagged


For now I put together a little script, zfs-online-disks.sh that pulls the online disks out of zpool status: #!/bin/bash # Return a list of online disks for a storage pool ONLINE=$(zpool status $1 | grep -Po "\S*(?=\s*ONLINE)") while read -r line; do if ! [ -b "/dev/disk/by-id/$line" ]; then continue fi echo $line done <<< "$ONLINE"

Top 50 recent answers are included