Author Topic: SNAP plugin for 5.0beta13+  (Read 13195 times)

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
SNAP plugin for 5.0beta13+
« on: January 24, 2012, 01:36:45 AM »
Hurray!  A new plugin for unRAID 

I've posted a new web gui version of SNAP for unraid 5.0 beta. 
When installed, the plugin creates a web page to manage SNAP drives with.  A SNAP button is added to the unraid Settings tab.  This plugin has been tested on unRAID 5.0b12a, 5.0b13, 5.0b14.
The latest plugin file will always be available here, at the bottom of this post.

I'm testing in FF, IE and Chrome.  If you report a bug, please include the browser you are using - thanks. :)

Installation:
1. Download the 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



Special note for those using the older beta version of this plugin (Snap-5.0beta-noarch-1.plg.zip)
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.

« Last Edit: February 18, 2012, 10:30:52 AM by queeg »
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline naxiand

  • Full Member
  • ***
  • Posts: 160
Re: SNAP plugin for 5.0beta13+
« Reply #1 on: January 24, 2012, 03:14:37 AM »
Does this works for esata mount?
Regards

Sent from my Optimus 2X using Tapatalk

Offline p1lot

  • Full Member
  • ***
  • Posts: 201
Re: SNAP plugin for 5.0beta13+
« Reply #2 on: January 24, 2012, 06:38:38 AM »
Thanks for the port, will try it in the next few days.

How stable do you consider it, or in other words, did you test it a lot or just coded and uploaded it?

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #3 on: January 24, 2012, 11:35:36 AM »
Does this works for esata mount?
Regards

Sent from my Optimus 2X using Tapatalk

Yes, it works with hard drives connected via eSata or USB.  It works for USB thumbdrives, cameras etc.
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #4 on: January 24, 2012, 11:50:06 AM »
Thanks for the port, will try it in the next few days.

How stable do you consider it, or in other words, did you test it a lot or just coded and uploaded it?

I consider it pretty stable.  I've made sure it won't interfere with unraid array drives.  The bones of the code has been heavily tested while it was SNAP.4.7 version.  The SNAP.4.7 version resided in /boot/config/snap while the new version is in /boot/config/plugins/snap. 
Installing the new version changes the entry in to the /boot/config/go (or adds an entry) and starts it.
« Last Edit: January 24, 2012, 12:24:11 PM by queeg »
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline sacretagent

  • Sr. Member
  • ****
  • Posts: 498
  • i need a big case !
    • EZTV
Re: SNAP plugin for 5.0beta13+
« Reply #5 on: January 26, 2012, 05:00:19 AM »
can't get it to work

Code: [Select]
PriorVersion=5.00
INSTALLDIRECTORY=/tmp/snap
New version of SNAP: 5.00
SNAP version 5.00 is currently installed.
NewVersion-PriorVersion-REINSTALL is 5.00-5.00-no
Stopping snapNotify.sh...
Stopping snapSambaNotify.sh...
Now starting SNAP...
/boot/config/plugins/snap/snap.sh: All shares mounted.
success
 plugin successfully installed

i tried rebooting and reinstalling from terminal

snap folder is in /usr/local/emhttp/plugins
but no icon in the settings page ... maybe due to the simple feature GUI plugin i am using .....

but trying to open one of the pages in the snap folder like snap.php with my editor give me a doesn't exist warning
which is weird ... owner is set to root ... and 0777 file properties .... so normally i should be able to open it ?

seems you used some funky permissions ?

anyway what should the url be ?
//tower/Settings/snap/snap.php ?


« Last Edit: January 26, 2012, 05:54:36 AM by sacretagent »
UNRAID 5.0RC8a
Server P5BPlus
Asus P5BPlus - Core 2 Duo E6550 - 4 GB Kingston
NZXT Tempest Cage -1 Kingwin alike 4 in 3 cage - 3 x 2 sata pci x1 cards
7 X 1 TB EADS/EACS/EARS WD - 1 x 750gb AACS WD - 1 x Hitachi 1TB
1 x 2 TB EARX - 1 x 2TB Samsung Parity - 1 x 500gb Samsung Cache

UNRAID 5.0RC10
Server P8H67
ASUS P8H67 - G840 - 4 GB Kingston
Lian-Li A70-F - 1 x 4 in 3 Lian -LI EX-36A2(crap thing)
1 x 2 sata Adaptec pci-E card - 1 x BR10 8 sata card
8 x 1TB EADS/EACS/EARS WD - 2 x Hitachi 1TB - 2 x 500GB AAJS/AAKS (1 cache)
3 x samsung 2TB (1 Parity)

Offline jluopajarvi

  • Newbie
  • *
  • Posts: 3
Re: SNAP plugin for 5.0beta13+
« Reply #6 on: January 26, 2012, 10:24:27 AM »
I'm having the same problem as sacretagent...

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #7 on: January 27, 2012, 12:53:32 AM »
can't get it to work

Code: [Select]
PriorVersion=5.00
INSTALLDIRECTORY=/tmp/snap
New version of SNAP: 5.00
SNAP version 5.00 is currently installed.
NewVersion-PriorVersion-REINSTALL is 5.00-5.00-no
Stopping snapNotify.sh...
Stopping snapSambaNotify.sh...
Now starting SNAP...
/boot/config/plugins/snap/snap.sh: All shares mounted.
success
 plugin successfully installed

i tried rebooting and reinstalling from terminal

snap folder is in /usr/local/emhttp/plugins
but no icon in the settings page ... maybe due to the simple feature GUI plugin i am using .....

but trying to open one of the pages in the snap folder like snap.php with my editor give me a doesn't exist warning
which is weird ... owner is set to root ... and 0777 file properties .... so normally i should be able to open it ?

seems you used some funky permissions ?

anyway what should the url be ?
//tower/Settings/snap/snap.php ?

The icon points to http://tower/Settings/snap

Edit:  The problem was identified in the next post down.  Sorry for the goof.  I forgot to remember not to test an install on a development machine - again.
« Last Edit: January 27, 2012, 01:34:47 AM by queeg »
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #8 on: February 07, 2012, 01:31:25 AM »
I've made a new build.  Some linked files were being left out.  :-[  Please follow this link for instructions.

http://lime-technology.com/forum/index.php?topic=5904.msg162583#msg162583
NOTE:  The new version is now available here:  http://lime-technology.com/forum/index.php?topic=18046.msg162098#msg162098

Edit:  1/27/2012 1:00 pm
Edit:  2/6/2012 4:20 pm
New build available.  Again, follow the link to get information.

New version has improvements.  Doubleclick to edit sharename now.  Rightclick menu has more options including running preclear on any drive that's not part of the unRAID array.   Manual control for unmount and mount/share now available.  New status column showing if the drive is mounted, shared, busy, precleared or preclearing.  The busy indicates if any process is holding up a file or directory on the share.
To handle the preclearing I had to make a modified copy of the preclear_disk.sh (ver 13) which  gets installed with this plugin's folder (named p13.sh).  I'm going to submit the changes to Joe so they can be incorporated in future versions.

Edit: 2/12/2012 New build available at the link above.  That link is the only place to get the plugin for now.  Eventually I'll put it on the bottom of the first page in the SNAP thread.
« Last Edit: February 16, 2012, 12:43:30 PM by queeg »
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline JM2005

  • Full Member
  • ***
  • Posts: 153
Re: SNAP plugin for 5.0beta13+
« Reply #9 on: February 07, 2012, 05:54:27 AM »
Well your pliugin work with unRaid version 5.0 Beta 12a?


Thanks
UnRAID 5.0-rc12a
Intel Xeon E3-1240 Sandy Bridge 3.3GHz 4 x 256KB L2 Cache 8MB L3 Cache LGA 1155 80W Quad-Core Server Processor
Kingston 16 GB DDR3 SDRAM ECC Unbuffered DDR3
SUPERMICRO MBD-X9SCM-F-O LGA 1155 Intel C204 Micro ATX Intel Xeon E3 Server Motherboard
3 - IBM ServeRAID BR10i
ESX 5.1 - Norco 4220 Case
APC Smart UPS NS-1250

Offline dikkiedirk

  • Hero Member
  • *****
  • Posts: 1395
  • Software is always Beta.
Re: SNAP plugin for 5.0beta13+
« Reply #10 on: February 07, 2012, 07:25:41 AM »
I'm on 5.0b14 now. I had SNAP installed under 4.7 and it is still working.

Must it be uninstalled before moving to this version. If so, how?

Unraid 5.0RC12a on X9SCM-F - E3-1240 - 2 M1015 - ARC1200 with 3 TB RAID0 Parity and 500 GB RAID1 cache volume - unraid VM to follow.

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #11 on: February 07, 2012, 11:13:36 AM »
Well your pliugin work with unRaid version 5.0 Beta 12a?


Thanks

Probably. 
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #12 on: February 07, 2012, 11:17:58 AM »
I'm on 5.0b14 now. I had SNAP installed under 4.7 and it is still working.

Must it be uninstalled before moving to this version. If so, how?

Normally SNAP is started at boot up time when the /boot/config/go file is run.  Look in the go file to see what version is being started. 

For ver 4.7 it will show:
/boot/config/snap/snap.sh -b

For ver 5.0 it will show:
/boot/config/plugins/snap/snap.sh -b
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.

Offline sacretagent

  • Sr. Member
  • ****
  • Posts: 498
  • i need a big case !
    • EZTV
Re: SNAP plugin for 5.0beta13+
« Reply #13 on: February 07, 2012, 06:07:35 PM »
Well your pliugin work with unRaid version 5.0 Beta 12a?


Thanks

Probably.

It does
i run it on 12A

Greetz  8)
UNRAID 5.0RC8a
Server P5BPlus
Asus P5BPlus - Core 2 Duo E6550 - 4 GB Kingston
NZXT Tempest Cage -1 Kingwin alike 4 in 3 cage - 3 x 2 sata pci x1 cards
7 X 1 TB EADS/EACS/EARS WD - 1 x 750gb AACS WD - 1 x Hitachi 1TB
1 x 2 TB EARX - 1 x 2TB Samsung Parity - 1 x 500gb Samsung Cache

UNRAID 5.0RC10
Server P8H67
ASUS P8H67 - G840 - 4 GB Kingston
Lian-Li A70-F - 1 x 4 in 3 Lian -LI EX-36A2(crap thing)
1 x 2 sata Adaptec pci-E card - 1 x BR10 8 sata card
8 x 1TB EADS/EACS/EARS WD - 2 x Hitachi 1TB - 2 x 500GB AAJS/AAKS (1 cache)
3 x samsung 2TB (1 Parity)

Offline queeg

  • Hero Member
  • *****
  • Posts: 1552
  • Red Dwarf back-up computer
    • QueegTech Store
Re: SNAP plugin for 5.0beta13+
« Reply #14 on: February 08, 2012, 02:38:51 AM »
Well your pliugin work with unRaid version 5.0 Beta 12a?


Thanks

Probably.

It does
i run it on 12A

Greetz  8)

Thanks for reporting about that.  :)
Like us on facebook
If You Didn't Buy Your Server From Me - You Paid Too Much!    
Queeg's unRAID Servers - Best Price Guaranteed! 
(coupon codes)


My Rig Pimped and the TinyTen thread discussion of modding the smallest 10 drive unRAID server.  SNAP - Share Non-Array Partitions
New SNAP plugin for unRAID 5.0beta available here.