Skip to content →

check zpool features on memory disks (FreeBSD)

Share on FacebookShare on Google+Tweet about this on TwitterShare on VKShare on TumblrPin on Pinterest

#create /dev/md0

mdconfig -a -t malloc -s 64m

#create /dev/md1

mdconfig -a -t malloc -s 64m

# create pool

zpool create -m /test ztest /dev/md0

# list devices in out zpool

zpool status ztest

# 4 testing

 cp ~%username%/.history /test/history
 zpool attache ztest /dev/md1

# list our mirrors

 zpool status

# everithing ok

 less /test/history

# destroy pool

 zpool destroy ztest

# free our memory

 mdconfig -d -u md0
 mdconfig -d -u md1
Share on FacebookShare on Google+Tweet about this on TwitterShare on VKShare on TumblrPin on Pinterest

Published in administration IT