Internal Error Failed To Initialize Zfs Library
library References Hardware Pentium 4 (i386) system with three 80-GB hard disks: ad2, ad4, and ad6. 3 GB RAM. Goals Have only ZFS. Have a mirror setup in the zpool. Have the system bootable from any of the disks in the mirror. Procedure First I did a standard UFS2 minimal install of FreeBSD 8.0-BETA2 to ad2, csup to RELENG_8 (also known as 8-STABLE), and rebuilt world and kernel with ZFS loader support. I also built a custom kernel with "options KVA_PAGES=512" (necessary for i386, see the ZFS tuning guide) and a more specific configuration for my hardware. These settings are on the ad2 system (they also need to be on the resulting ZFS system): echo 'KERNCONF=KRZFSOHM GENERIC' >> /etc/make.conf echo 'LOADER_ZFS_SUPPORT=YES' >> /etc/make.conf echo 'daily_status_zfs_enable="YES"' >> /etc/periodic.conf These need to be only on the resulting ZFS system, not on the UFS system: echo 'zfs_load="YES"' >> /ohm/boot/loader.conf echo 'vfs.root.mountfrom="zfs:ohm"' >> /ohm/boot/loader.conf echo 'zfs_enable="YES"' >> /ohm/etc/rc.conf ohm is the name of my zpool. Here we go: # Force the zpool creation due to the disks being slightly different sizes, # since they are from different manufacturers. ZFS should make use of the # smaller disk's size for the mirror (according to the ZFS cheat sheet, see # the references section). zpool create -f ohm mirror ad4 ad6 zpool set bootfs=ohm ohm sh -c 'for fs in tmp usr/home var/log; do zfs create -p ohm/$fs; done' chmod -v 1777 /ohm/tmp mkdir -v /ohm/dev cd /ohm && ln -s -w -v usr/home home cd /ohm/var && ln -s -w -v ../tmp tmp && cd zfs create -V 6gb ohm/swap zfs set org.freebsd:swap=on ohm/swap zfs set checksum=off ohm/swap # Go to single user mode for safety and speed. shutdown now find -d / -not -path /ohm\* -not -path /etc/fstab -not -path /dev\* -not -path /tmp\* -not -path /var/tmp\* -not -path /usr/obj\* | cpio -pmuvd /ohm echo 'vfs.root.mountfrom="zfs:ohm"' >> /ohm/boot/loader.conf echo 'zfs_enable="YES"' >> /ohm/etc/rc.conf echo -e "#Device\t\tMountpoint\tFStype\tOptions\t\tDump\tPass#" > /ohm/etc/fstab zpool export ohm
running poorly with stderr outputAgile Board ExportXMLWordPrintable Details Type: Bug Status: Open Priority: Minor Resolution: Unresolved Affects Version/s: FACT 1.7.5 Fix Version/s: None Component/s: None Labels: None Template: customfield_10700 true Description facter will run this command as long as a zfs executable is found: if http://kenyonralph.com/~kenyon/FreeBSD_ZFS_boot/ Facter::Util::Resolution.which('zfs') zfs_v = Facter::Util::Resolution.exec('zfs upgrade -v') But, if zfs is installed but not running, this produces stderr output: [root@kvm-test02 ~]# facter -y connect: No such file or directory Please make sure that the zfs-fuse daemon is running. https://tickets.puppetlabs.com/browse/FACT-473 internal error: failed to initialize ZFS library connect: No such file or directory Please make sure that the zfs-fuse daemon is running. internal error: failed to initialize ZFS library -- kernelrelease: "3.13.7-100.fc19.x86_64" zfs upgrade -v should not be expected to run without stderr output just because it exists. Activity All Comments Work Log History Activity Links Explorer There are no comments yet on this issue. People Assignee: Eric Sorenson Reporter: Karl Mueller Votes: 0 Vote for this issue Watchers: 1 Start watching this issue Dates Created: 2014/04/30 5:08 PM Updated: 2014/04/30 5:08 PM Agile View on Board Atlassian JIRA Project Management Software (v6.4.14#64029-sha1:ae256fe) About JIRA Report a problem Atlassian
a database backup or a 7z backup of an entire virtual machine / server. Many of these backups are of the same thing but https://craig.mayhew.io/blog/tag/ZFS at different points in time. For instance, my Windows 7 Virtual machine http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-05/msg01513.html is backed up 7 times for a total of 961GB after 7zip compression.Looking at my latest Windows 7 back up of Virtual Disks (My virtual C drive and data drive): 238GB Without Compression or dedupeSo looking at an individual backup, 7zip clearly wins - although it takes 24 hours to internal error compress a 238GB backup on my 4 core 3.9Ghz 32GBs RAM machine (detailed here).1.00x original files1.04x zfs dedupe 2.45x 7zip However, if I put the complete 2.4TBs (After 7z compression) onto the ZFS filesystem and decompress it as it copies over to the ZFS partition I get 2.52x :)ZFS ZFS on FreeBSDby Craig Mayhew on Sun 10th Mar 2013 under General/TechieFor this internal error failed test I will be running FreeBSD in a VirtualBox virtual machine. These instructions will work regardless of this.Download the 64bit iso of FreeBSD. I am using version 9.1.Install FreeBSD form the livecd. I decided to drop the games from the install.I initially tried to get a bootable zfs partition going, but after several hours of failed attempts using this guide: https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/9.0-RELEASE, I decided I would leave plenty of drive space spare when partitioning the disk. I set 64GBs up for the operating system and left the rest spare for the ZFS.Note: I have used da0 for my drive as it is a SAS drive. If you are using SATA then you will need ada0. # gpart add -t freebsd-zfs -l disk1 da0So, assuming you have booted freebsd, you now need to create the zfs volume. # kldload opensolaris # kldload zfs # zpool create -m /zfs disk1 da0p1Enable dedupe using fletcher4, verify hashes when writing to disk and enable compression: # zfs set dedupe=on disk1 # zfs set dedup=fletcher4,verify disk1 # zfs set compression=gzip disk1We will want it to mount the volume every time the system bo
zfs.ko [norman@harmonia ~]$ zfs list internal error: failed to initialize ZFS library Anyway thx for the info.. At least now I know why it "should" not work ;-) bye Norman 2008/5/29 Pawel Jakub Dawidek