ZFS i/o error - all block copies unavailable

Image_1.jpg


May iI report a question, iI can't boot from ZFS yesterday, how can iI fix it?
iI tried rewrite bootcode but it is not work.

My rewrite step:
Code:
myhost 15:24 [/root] -root- gpart show mfid0
=>        34  1757614617  mfid0  GPT  (3.76T)
          34           6       - free -  (3.0k)
          40          88    1  freebsd-boot  (44k)
         128     8388608    2  freebsd-swap  (4.0G)
     8388736  1749225912    3  freebsd-zfs  (3.76T)
  1757614648           3       - free -  (1.5k)

Boot from FreeBSD LiveCD
Code:
#zpool import -f -R /mnt ztank
#gpart delete -i 1 mfid0
#gpart add -b 34 -s 94 -a 4k -t freebsd-boot -l boot0 mfid0
#gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 mfid0
#rm -fr /boot/zfs/zpool.cache
#zpool export ztank
#zpool import -o altroot=/mnt -o cachefile=/tmp/zpool.cache ztank
#cp /tmp/zpool.cache /mnt/boot/zfs/zpool.cache

Hardware infomation : DELL R520
Hard drive: SAS 2TB *3 For RAID5 by Dell PERC H710P Mini
DSET report -->https://db.tt/g1HRNOjo passwd:dell

OS:FreeBSD 9.1 Release

This is my zfs on root script.
Code:
gpart create -s gpt mfid0
gpart add -b 34 -s 94 -a 4k -t freebsd-boot -l boot0 mfid0
gpart add -t freebsd-swap -l swap0 -s 4G mfid0
gpart add -a 4k -t freebsd-zfs -l disk0 mfid0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 mfid0

gnop create -S 4096 /dev/gpt/disk0
zpool create -f -o altroot=/mnt -o cachefile=/tmp/zpool.cache ztank /dev/gpt/disk0.nop
zpool export ztank
zpool import -o altroot=/mnt -o cachefile=/tmp/zpool.cache ztank

zpool set bootfs=ztank ztank
zfs set checksum=fletcher4 ztank

zfs create ztank/home
zfs create ztank/usr
zfs create ztank/var
zfs create ztank/data

rc.conf
zfs_enable="YES"
/boot/loader.conf
zfs_load="YES"
vfs.root.mountfrom="zfs:ztank"
 
Last edited by a moderator:
Hi, You must NOT be using a ZFS on RAID array. You have to flash or switch your RAID card to IT (initiator target) mode to let ZFS use disks on it's own. Seems the problem you have - just a misunderstanding between ZFS & RAID controller.

One thing - You have a very nice controller and flashing it to IT mode - hmmm... bad idea - think its going to be better to use UFS - it will surelly outperform ZFS, just because of installed cache.
 
Back
Top