January 3, 201214 yr Author Hi all This is my first post, and first foray into Linux world What I just finished building is an 8tb system Now I have to migrate my 4Tb of TV and movies to it, all of which are on externals SNAP with it's hotplugging sounds like it would be a great way to plug in an external and let it copy over The problem is, I can't get those script things to work I managed to install SNAP, name and mount an external but that's all I can get to happen Any starting tips on scripting? You can configure SNAP to automatically perform file copies (and other actions) when you plug a drive into your tower. Review post 2 of this thread. http://lime-technology.com/forum/index.php?topic=5904.msg55848#msg55848 Then search this thread using "hotplug" as search text to get some more discussion of it. There are some examples of code you can cut and paste. The code needs to get pasted into the /boot/config/snap/snapEvents.sh shell script file. You should be able to get to that file by browse your \\tower\flash\config\snap using Windows explorer for example. Remember, that file lives in linux (unraid) so it needs to have linux style line breaks. You can use EditPad Lite (download it's free) and under the Convert menu you can set it to unix style (LF only) line breaks. Or You can also just look search this thread for "rsync" to get some syntax which you can manually type in after you telnet to your unraid server to do some manual file moves.
January 4, 201214 yr See the post three above your question re 5b14? Mick I did see that, but I was trying to set it up on b14 long before that post and I assumed that 5b14 wouldn't be that far removed from other betas! Seems it was never going to work, but I'm new to all this and it's a steep learning curve and lots and lots of reading. Great job queeg, and can't wait for a the webui version, that will be great. I am enjoying learning doing things manually though, it's a good experience!
January 4, 201214 yr Hi, My SNAP Drive (on onboard SATA) never spin down and I can't force it in Unmenu. Did normally the SNAP Drives spin down? How do it manually or by script (at the end of an rsync script for exemple)? Thanks, Fred.
January 6, 201214 yr What am I doing wrong? The Install from the first Page, no Problem. Then when I list the Devices with snap.sh -listDevInfo I get: .... unRAID=No SNAP=No 399 /dev/hdb ata-WDC_WD5000AAJS-00YFA0_WD-WCAS81466161 this is the Drive I want to use SNAP on Then I... snap.sh -a WD-WCAS81466161 Music snap.list -> WD-WCAS81466161=Music ok for me But I dont find any option in UnMenu to format ist. The Drive is absolutely clean, no Partition on it. So I trey to ceate one wit cfdisk. so far so good, writing to the MBR, Quit, Rebooting no fromat option ok, then telnet mkreiserfs -q /dev/disk/by-id/ata-WDC_WD5000AAJS-00YFA0_WD-WCAS81466161-part1 root@MediaServer:/boot/config/snap# mkreiserfs -q /dev/disk/by-id/ata-WDC_WD500 AAJS-00YFA0_WD-WCAS81466161-part1 mkreiserfs 3.6.21 (2009 www.namesys.com) Stat of the device '/dev/disk/by-id/ata-WDC_WD5000AAJS-00YFA0_WD-WCAS81466161-p rt1' failed.root@MediaServer:/boot/config/snap# also nothing also tryed csnap.sh -b /boot/config/snap/snap.sh: All shares mounted. I can't find any share.... root@MediaServer:/boot/config/snap# snap.sh -s Music No such device exists: WD-WCAS81466161-part1 so I'm hanging and trying for hours now.... :'( Is the a step by step guide or can someone bring light to this? cu
January 9, 201214 yr I was thinking of using SNAP to add a 30gig SSD to my system. I thought I would do 2 partitions. 1 would be used for a MySQL and Shared Thumbs for XBMC and the 2nd partition for a swapfile for unRAID. What format would I want to use for the SSD to do this? Did you successfully do this? I just found this thread and am now thinking of doing the same... a small SSD or something small and fast to run my XBMC mysql and thumbs..
January 12, 201214 yr Author See the post three above your question re 5b14? Mick I did see that, but I was trying to set it up on b14 long before that post and I assumed that 5b14 wouldn't be that far removed from other betas! Seems it was never going to work, but I'm new to all this and it's a steep learning curve and lots and lots of reading. Great job queeg, and can't wait for a the webui version, that will be great. I am enjoying learning doing things manually though, it's a good experience! Thanks for the compliment. I've been testing and I need to make an installer for it.
January 12, 201214 yr Author Hi, My SNAP Drive (on onboard SATA) never spin down and I can't force it in Unmenu. Did normally the SNAP Drives spin down? How do it manually or by script (at the end of an rsync script for exemple)? Thanks, Fred. Yes, typically drives will spin down. I usually do it in unMenu as well.
January 12, 201214 yr Author What am I doing wrong? root@MediaServer:/boot/config/snap# snap.sh -s Music No such device exists: WD-WCAS81466161-part1 so I'm hanging and trying for hours now.... :'( Is the a step by step guide or can someone bring light to this? cu The message is indicating no partition exists. When you run "ls /dev/disk/by-id" do you see an entry for that disk with a -part1 on the end? If not then the partition needs to be created, then a filesystem written to it. I think fdisk is the way to make a partition. You have the mkfs figured out it looks like.
January 24, 201214 yr Author NOTE: The new version is available here: http://lime-technology.com/forum/index.php?topic=18046.msg162098#msg162098 **NEW** version of SNAP for unRAID 5.0beta. I have tested it entirely on 5.0beta13 (for no specific reason). It likely works on later versions of unRAID. Note: This version doesn't run on unRAID 4.7. 1. Download the Snap-5.0beta-noarch-1.txt (below) and change the .txt to .plg 2. Place the Snap-5.0beta-noarch-1.plg file in /boot/config/plugins Example: In windows you can use file explorer to copy the .plg file to your unraid machine here: \\tower\flash\config\plugins 3. Then telnet into your unRAID server and type this command to install the plugin (or just reboot): installplg /boot/config/plugins/Snap-5.0beta-noarch-1.plg 4. After it installs you should be able to run the web page. Open a browser to this address and click the SNAP button. //tower/Settings The SNAP page has 3 tabs. One to configure shares, one to view log files if needed, and one that will allow you to edit the SnapEvents.sh file to add code for syncing files and that sort of thing. SNAP's main feature is to automatically mount and share devices as you plug them in. Cheers. Edit: The grid will display all the drive devices currently plugged in, and any that have shares but aren't currently plugged in. You can edit the share name by clicking on the cell with the share name in it. You can add new serial numbers even if the drive isn't currently plugged in. The grid doesn't currently auto-refresh, after plugging in a new device you will have to refresh the page to see the change in the grid. Also, when refreshing the page, the state of the Info and Events tabs are not preserved (eventually the will be). Edit again: I updated the plugin application in google code at 1/23/2012 11:45PM. The plg file has not changed. Fixed a bug. Newly added shares weren't getting mounted/shared. Now they will. I'll be continuing to make small changes and will post them. Edit again again: I modified the install directions above for better readability.
January 26, 201214 yr Minor problem with the new SNAP plugin, the web files are archived as a link to /boot/config/em/snap/.
January 27, 201214 yr Author Minor problem with the new SNAP plugin, the web files are archived as a link to /boot/config/em/snap/. Hmm, that is the project folder I use in my development. Are you saying that the installed files are linking back to that folder on your machine? I'll look at the way I'm creating my tar archive.
January 27, 201214 yr Author NOTE: The new version is now available here: http://lime-technology.com/forum/index.php?topic=18046.msg162098#msg162098 1. Download the Snap-5.0beta-noarch-1.plg.zip Snap-5.0-1.plg.zip(below) and unzip it. 2. Place it in /boot/config/plugins Example: In windows you can use file explorer to copy the .plg file to your unraid machine here: \\tower\flash\config\plugins 3. Then telnet into your unRAID server and type this command to install the plugin (or just reboot): installplg /boot/config/plugins/Snap-5.0-1.plg 4. After it installs you should be able to run the web page. Open a browser to this address and click the SNAP button. //tower/Settings Edit: 2/6/2012: New plugin file uploaded. EDIT 2/12/2012: New plugin file uploaded (Snap-5.0-1.plg) The new version of SNAP has a button for installing updates so hopefully this plugin will be good for quite a while. Make sure you remove the old SNAP plugin that had "beta" in it's filename. The new installer can't install correctly over the prior beta version - so please rename your /boot/config/plugins/snap folder before installing this new version. You can copy snap.list and the snapEvent* files from the old folder to the new folder after installing. Sorry for the inconvenience, updates will be much easier going forward. This plugin also handles auto-reinstalling every time you boot. I'm not sure if I mentioned that I mainly use Firefox and Chrome. I haven't done any testing in IE. If anyone must use IE then you will have to help me test it to see what doesn't work.
January 27, 201214 yr well i get the icon now and the tabs appear... i can add a serial number but the window that opens is not big enough it truncates the serialnumber once i added the serialnumber name it auto mounted it but the "grid" stays empty although i can use the disk and it is shared over SMB
January 27, 201214 yr once i added the serialnumber name it auto mounted it but the "grid" stays empty although i can use the disk and it is shared over SMB This is likely due to the json error "Fatal error: Call to undefined function json_encode() in /usr/local/emhttp/plugins/snap/manageList.php on line 435" when doing a list. The fix is to edit jsonwrapper.php and jsonwrapper_inner.php, change the require line to: jsonwrapper.php: require_once 'jsonwrapper/jsonwrapper/jsonwrapper_inner.php'; jsonwrapper_inner.php: require_once 'jsonwrapper/jsonwrapper/jsonwrapper_inner.php'; queeg, Would you mind if I cleaned up the PHP and plg and posted a new version on the forums?
January 27, 201214 yr queeg, Would you mind if I cleaned up the PHP and plg and posted a new version on the forums? I can't speak for queeg but in general the best approach is to make the changes and then send it to the creator. Posting multiple version can get very confusing (Simple Features case in point) plus the original creator might want to have control over his creation until otherwise stated.
January 27, 201214 yr Author Thanks billy_rud10 for identifying the problem. I've updated my build scripts and re-built the plugin. The plg file itself didn't change so just re-installing the plugin should get the new build. Thanks prostuff1. Your comment is appreciated. Again, thanks for helping me beat the bugs out of my build scripts.
January 27, 201214 yr Author and the tabs appear... i can add a serial number but the window that opens is not big enough it truncates the serialnumber once i added the serialnumber name it auto mounted it but the "grid" stays empty although i can use the disk and it is shared over SMB The serial number window issue should be fixed by re-installing the plugin using the same plg file you have. Let me know if the "grid stays empty" continues after re-installing. Thanks.
January 28, 201214 yr ALL OK now just reinstalling fucked up the new share for a bit.... probably due to the fact i didn't delete the share.... but after a reboot all OK
January 28, 201214 yr Author ALL OK now just reinstalling f* up the new share for a bit.... probably due to the fact i didn't delete the share.... but after a reboot all OK In what way was the share affected?
January 29, 201214 yr well somehow the drive was empty after reinstall .... but then after a reboot all the info was still there .... It was nothing important to begin with but i had to reboot anyway cause i wanted to hookup a longer ethernet cable as the current cable was a bit short to move the server out of the desk ... and after the reboot everything was there again .... bit weird... now to be honest it can be because i used not the complete serialumber too... i added first time only the number without the "wd-" in front i reinstalled saw in the columns that the wd- was supposed to be there ... so i deleted the mount/share and made a new one with the same share name on the complete serialnumber in the grid and then saw my data was missing...... moved some stuff to the disk .... then powered down .... put longer cable ... reboot... and everything was back anyway all is well at the end
January 29, 201214 yr Author well somehow the drive was empty after reinstall .... but then after a reboot all the info was still there .... It was nothing important to begin with but i had to reboot anyway cause i wanted to hookup a longer ethernet cable as the current cable was a bit short to move the server out of the desk ... and after the reboot everything was there again .... bit weird... now to be honest it can be because i used not the complete serialumber too... i added first time only the number without the "wd-" in front i reinstalled saw in the columns that the wd- was supposed to be there ... so i deleted the mount/share and made a new one with the same share name on the complete serialnumber in the grid and then saw my data was missing...... moved some stuff to the disk .... then powered down .... put longer cable ... reboot... and everything was back anyway all is well at the end A bit of an adventure. When a new drive has been plugged in then the serial number will automatically appear in the grid. But in the case when you want to add a serial number for a drive that hasn't been plugged in yet, I think I'm going to need to include a tool tip explaining how much of the drive's serial number is to be entered. I'll add that to my todo list. As far as the stuff disappearing...by deleting the share and then making a new one can easily cause Windows (the client in this case I believe) to get confused for a little bit thinking the old share still exists and not yet noticing the new share.
January 29, 201214 yr Copying data via snap through a esata toaster speed issue. Hi, am using the latest beta from snap with beta 5.14, am seeing the shares and can acces them. When copying from this share, the speed is 1 Mb/sec. Isn't that a bit slow? How can I check possible speed probs?
January 30, 201214 yr Author Copying data via snap through a esata toaster speed issue. Hi, am using the latest beta from snap with beta 5.14, am seeing the shares and can acces them. When copying from this share, the speed is 1 Mb/sec. Isn't that a bit slow? How can I check possible speed probs? Copying from where to where?
January 30, 201214 yr Copying data via snap through a esata toaster speed issue. Hi, am using the latest beta from snap with beta 5.14, am seeing the shares and can acces them. When copying from this share, the speed is 1 Mb/sec. Isn't that a bit slow? How can I check possible speed probs? Copying from where to where? Soory about that, I want to copy data to the array from an old sata laptop harddrive. It's a 320 Gb drive So I thought esata will be faster than usb2. but it less than 1 MB/s.
Archived
This topic is now archived and is closed to further replies.