tag:blogger.com,1999:blog-4717269872457503530.post511065724643308860..comments2023-11-20T02:38:38.279-05:00Comments on Raspberry Pi Python Adventures: ZFS file system on Raspberry PiFrancois Dionhttp://www.blogger.com/profile/10442105466634552900noreply@blogger.comBlogger18125tag:blogger.com,1999:blog-4717269872457503530.post-7954509478689511262016-02-25T22:31:51.717-05:002016-02-25T22:31:51.717-05:00By the way: ZoL compiles for Raspbian just fine. I...By the way: ZoL compiles for Raspbian just fine. It'll most likely perform better than zfs-fuse thanks to its kernel module, which is pretty important in a pi.Anonymoushttps://www.blogger.com/profile/07107590671473531166noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-53671354102582259822015-08-31T17:37:32.504-04:002015-08-31T17:37:32.504-04:00Paragraphs 1 & 2
Fish, it scales.
well play...Paragraphs 1 & 2<br /><br />Fish, it scales. <br /><br />well played sir, well played :DAnonymoushttps://www.blogger.com/profile/18415086201075256739noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-1280381735754933732014-09-11T03:29:09.318-04:002014-09-11T03:29:09.318-04:00Hi,
Congratulations for these tuto.
Is possible to...Hi,<br />Congratulations for these tuto.<br />Is possible to create only a FS in zfs without mirror?<br />Thanks<br />absoluthttps://www.blogger.com/profile/12534806627863441150noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-10078498735457318072014-02-21T14:18:29.020-05:002014-02-21T14:18:29.020-05:00Just seen this blog because I was google-ing Raspb...Just seen this blog because I was google-ing Raspberry Pi and ZFS.<br /><br />I'm going to give native ZFS a try on a raspberry pi this weekend using Gentoo.<br />My laptop already runs root on ZFS with Gentoo and the ability to jump back to snapshots instantly is a god send when an emerge goes bad.<br /><br />Just got my first R-PI today and cant wait to try it out, I will use my laptop to cross compile over distcc though because I think I could wait a long time for the R-PI to compile just the kernel let alone everything else.Anonymoushttps://www.blogger.com/profile/06901689487936619655noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-10232630920428789032013-05-10T11:23:53.504-04:002013-05-10T11:23:53.504-04:00Hi, I believe we have native ZFS support in linux ...Hi, I believe we have native ZFS support in linux now. Did you try it ?Dantehttps://www.blogger.com/profile/02882219018810617545noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-2638124615911926062013-05-01T14:44:42.926-04:002013-05-01T14:44:42.926-04:00This is nice. Thanks for sharing.
mass notificati...This is nice. Thanks for sharing.<br /><br /><a href="http://reachplus.com" rel="nofollow">mass notifications</a>Anonymoushttps://www.blogger.com/profile/09099695426869070748noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-62051034106568235082013-04-11T23:46:41.992-04:002013-04-11T23:46:41.992-04:00zfs-fuse/zfs_ioctl.c: In function 'zfs_ioc_set...zfs-fuse/zfs_ioctl.c: In function 'zfs_ioc_set_prop':<br />zfs-fuse/zfs_ioctl.c:2292:24: warning: comparison between pointer and integer [enabled by default]Seth Leedyhttps://www.blogger.com/profile/08302861451156167443noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-20324305024859124482013-04-11T23:28:24.615-04:002013-04-11T23:28:24.615-04:00Also saw this;
"lib/libzpool/vdev.c: In funct...Also saw this;<br />"lib/libzpool/vdev.c: In function 'vdev_open_children':<br />lib/libzpool/vdev.c:1085:3: warning: comparison between pointer and integer [enabled by default]"Seth Leedyhttps://www.blogger.com/profile/08302861451156167443noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-70168376571965599552013-04-11T23:16:41.664-04:002013-04-11T23:16:41.664-04:00When running scons, is this something to worry abo...When running scons, is this something to worry about ?<br />"scons: warning: BuildDir() and the build_dir keyword have been deprecated;<br /> use VariantDir() and the variant_dir keyword instead.<br />File "/root/zfs/zfs-fuse-arm/src/lib/libzpool/SConscript", line 4, in "Seth Leedyhttps://www.blogger.com/profile/08302861451156167443noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-46500273669059563462013-03-16T05:34:43.421-04:002013-03-16T05:34:43.421-04:00I was hoping someone had done this when i found th...I was hoping someone had done this when i found this blog... def gonna check that out!Anonymoushttps://www.blogger.com/profile/05626852098311384388noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-84082237564423774902013-02-13T02:41:39.652-05:002013-02-13T02:41:39.652-05:00Hello. I have an external hard drive that is forma...Hello. I have an external hard drive that is formatted in NTFS file system and I would like to have it in FAT32 so I can use it on my ps3 system. Thing is that the drive is half full with data and my main drive isn't big enough to copy, reformat and copy back. Is there any software that could change the file system without deleting the data from the drive? Thank you for your answer.<br /><br /><br /><a href="http://phlebotomytrainingpro.net/nevada/" rel="nofollow">phlebotomy training in nevada</a>Anonymoushttps://www.blogger.com/profile/06106007750484567313noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-62468112713259458442013-02-11T08:51:02.452-05:002013-02-11T08:51:02.452-05:00Yes, I do have a freebsd Pi too. My long term goal...Yes, I do have a freebsd Pi too. My long term goal though is to run IllumOS on the Pi.<br /><br />See: http://solarisdesktop.blogspot.com/2013/02/illumos-on-raspberrypi.htmlFrancois Dionhttps://www.blogger.com/profile/10442105466634552900noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-67357912453008126922013-02-11T04:44:05.138-05:002013-02-11T04:44:05.138-05:00Have you tried running freebsd on your pi? Freebsd...Have you tried running freebsd on your pi? Freebsd has native zfs support so it may be easier than having to install fuse and zfs separatelyAnonymoushttps://www.blogger.com/profile/10489160450685163425noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-4581483398713317342013-01-31T05:56:33.232-05:002013-01-31T05:56:33.232-05:00I am far from expert in this field and I had some ...I am far from expert in this field and I had some issues however I managed to resolve them - building from scratch I had some additional steps:<br /><br />install Raspbian<br />http://www.raspbian.org/RaspbianInstaller<br /><br />install gcc:<br />sudo apt-get install git gcc build-essential libsdl1.2-dev<br /><br />install openssl library and headers:<br />sudo apt-get install libssl-dev<br /><br />then follow this post.<br /><br />Thanks for the great info!Anonymoushttps://www.blogger.com/profile/05626852098311384388noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-30474945541193264312012-10-04T14:34:17.797-04:002012-10-04T14:34:17.797-04:00It takes a while for zfs to give up on IO to devic...It takes a while for zfs to give up on IO to devices - it can be 5 minutes or more before zfs offlines the device. If you generate some IO to the device then wait it should eventually notice the device is gone. Shortening device timeouts will help here.andrum99https://www.blogger.com/profile/10535177906895474948noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-53557807912186893422012-10-04T10:58:20.143-04:002012-10-04T10:58:20.143-04:00Writing didn't do it, but something else did:
...Writing didn't do it, but something else did:<br /><br />fdion@raspberrypi ~ $ sudo zpool status<br /> pool: mymirror<br /> state: ONLINE<br /> scrub: none requested<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror ONLINE 0 0 0<br /> mirror-0 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20054054620F3CC11EC2-0:0-part1 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20052845410F3CC16219-0:0-part1 ONLINE 0 0 0<br /><br />errors: No known data errors<br /><br />I then pulled the plug on one device (the reason they are not sda1 and sdb1 is that I shutdown the Pi to bring it to CHS last night - and I had to do a zpool export mymirror and zpool import mymirror for it to mount again):<br /><br /><br />fdion@raspberrypi ~ $ sudo zpool status<br /> pool: mymirror<br /> state: ONLINE<br /> scrub: none requested<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror ONLINE 0 0 0<br /> mirror-0 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20054054620F3CC11EC2-0:0-part1 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20052845410F3CC16219-0:0-part1 ONLINE 0 0 0<br /><br />errors: No known data errors<br /><br /><br />Still showing online, although clearly it is not since I pulled it. Let's try some writes<br /><br /><br />fdion@raspberrypi ~ $ sudo cp -r hardware_projects /mymirror/<br />fdion@raspberrypi ~ $ sudo zpool status<br /> pool: mymirror<br /> state: ONLINE<br /> scrub: none requested<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror ONLINE 0 0 0<br /> mirror-0 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20054054620F3CC11EC2-0:0-part1 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20052845410F3CC16219-0:0-part1 ONLINE 0 0 0<br /><br />errors: No known data errors<br /><br /><br />Alright, we got to get this to trigger. Let's do a scrub.<br /><br />fdion@raspberrypi ~ $ sudo zpool scrub mymirror<br />fdion@raspberrypi ~ $ sudo zpool status<br /> pool: mymirror<br /> state: DEGRADED<br />status: One or more devices could not be opened. Sufficient replicas exist for<br /> the pool to continue functioning in a degraded state.<br />action: Attach the missing device and online it using 'zpool online'.<br /> see: http://www.sun.com/msg/ZFS-8000-2Q<br /> scrub: scrub completed after 0h0m with 0 errors on Thu Oct 4 10:45:16 2012<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror DEGRADED 0 0 0<br /> mirror-0 DEGRADED 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20054054620F3CC11EC2-0:0-part1 ONLINE 0 0 0<br /> disk/by-id/usb-SanDisk_Cruzer_Edge_20052845410F3CC16219-0:0-part1 UNAVAIL 0 76 0 cannot open<br /><br />errors: No known data errors<br /><br /><br /><br />So that works, but normally on native zfs that works right away without scrub. I dont want to have to schedule scrubs every 5 minutes :)<br /><br />I'm thinking there might be an unimplemented message. I'll have to look at the code when I have a few minutes.Francois Dionhttps://www.blogger.com/profile/10442105466634552900noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-75046486056240550012012-10-04T10:32:33.159-04:002012-10-04T10:32:33.159-04:00What's the chance that the file data was in th...What's the chance that the file data was in the arc cache hence zfs didn't notice the disk vanish. Try a write, that'll force IO to the disk which should cause the failure notification.Anonymoushttps://www.blogger.com/profile/15289006679930740740noreply@blogger.comtag:blogger.com,1999:blog-4717269872457503530.post-20544845832161741462012-10-03T13:44:46.356-04:002012-10-03T13:44:46.356-04:00Mirroring works fine, and if a device fails, it is...Mirroring works fine, and if a device fails, it is handled properly, however zpool status doesn't reflect the reality. I hadn't tested that part yet, so I'll have to dig in the code.<br /><br />No failure:<br />pi@raspberrypi ~ $ sudo zpool status -v<br /> pool: mymirror<br /> state: ONLINE<br /> scrub: none requested<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror ONLINE 0 0 0<br /> mirror-0 ONLINE 0 0 0<br /> sda1 ONLINE 0 0 0<br /> sdb1 ONLINE 0 0 0<br /><br />errors: No known data errors<br /><br />I then pulled the second usb device:<br />pi@raspberrypi ~ $ ls /dev/sd*<br />/dev/sda /dev/sda1<br /><br />sdb and sdb1 are gone, but:<br />pi@raspberrypi ~ $ sudo zpool status -v<br /> pool: mymirror<br /> state: ONLINE<br /> scrub: none requested<br />config:<br /><br /> NAME STATE READ WRITE CKSUM<br /> mymirror ONLINE 0 0 0<br /> mirror-0 ONLINE 0 0 0<br /> sda1 ONLINE 0 0 0<br /> sdb1 ONLINE 0 0 0<br /><br />errors: No known data errors<br />pi@raspberrypi ~ $ sudo zfs list<br />NAME USED AVAIL REFER MOUNTPOINT<br />mymirror 55.4M 7.27G 55.3M /mymirror<br /><br /><br />Before doing this I was accessing a file in a loop, it is still looping. So the zfs side of things is working, just not the notification to the status.<br /><br />Francois Dionhttps://www.blogger.com/profile/10442105466634552900noreply@blogger.com