Editing Install

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 250: Line 250:
 
sudo zpool export $poolname
 
sudo zpool export $poolname
 
</syntaxhighlight>
 
</syntaxhighlight>
 
Alternatively, you can run:
 
<syntaxhighlight lang="bash">
 
sudo zpool export -a
 
</syntaxhighlight>
 
which will try to export all pools for you.
 
  
 
Make sure they have exported successfully.
 
Make sure they have exported successfully.
Line 264: Line 258:
  
 
It should say, "no pools available."
 
It should say, "no pools available."
 +
 +
Alternatively, you can use this script to export all pools:
 +
<syntaxhighlight lang="bash">
 +
#!/bin/bash
 +
 +
if [ x$(which zpool) != x ]
 +
then
 +
zpool list -H | awk -F '\t' '{print $1;}' | xargs -I '#' sudo zpool export '#'
 +
else
 +
cd ~/Developer/zfs
 +
./cmd.sh zpool list -H | awk -F '\t' '{print $1;}' | xargs -I '#' sudo ./cmd.sh zpool export '#'
 +
fi
 +
</syntaxhighlight>
  
 
Get any [[zfsadm]] updates:
 
Get any [[zfsadm]] updates:

Please note that all contributions to OpenZFS on OS X may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenZFS on OS X:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)