Dan McDonald wrote: > Say I'm firing off an at(1) or cron(1) job to do scrubs, and say I want to > scrub two pools sequentially > because they share one device. The first pool, BTW, is a mirror comprising > of a smaller disk and a subset of a larger disk. The other pool is the > remainder of the larger disk. > > I see no documentation mentioning how to scrub, then wait-until-completed. > I'm happy to be pointed at any such documentation. I'm also happy to be > otherwise clued-in if no such documentation exists, or if no such feature > exists. >
This is pretty trivial to code in a script. Here is a ksh function I use for testing resilvering performance. function wait_for_resilver { date while zpool status $POOLNAME | grep "resilver in progress" do sleep 10 date done } For your case, a longer sleep and fewer dates would make good sense. You probably want to redirect the grep output or use the -q flag for grep (caveat: I don't know which grep you prefer to use, so check the flags for your version) -- richard _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss