Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How To Ximeta Netdisk on Gentoo 2.6.14
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Fri Dec 16, 2005 1:49 am    Post subject: How To Ximeta Netdisk on Gentoo 2.6.14 Reply with quote

Hi Ximeta Netdisk Users

updated 05.12.2007:
  • Your new ebuild won't install, because you cannot browse through the Licence text with any keypress?
  • try this:
    # ps -A
    # kill <PID of the last/only "more" process>


updated 28.07.2007:
  • broken links: most of the links here in this how to are broken, cause Ximeta changed their layout. So please use this link here to Ximeta its Codebase: http://code.ximeta.com/trac-ndas/wiki/WikiStart
  • the nightly ebuild from cdiesch works on my systems (2.6.21-r3), so get it here and try it out:
    https://bugs.gentoo.org/show_bug.cgi?id=168295 .
    There is also a new ebuild for kernel 2.6.22-ck1, cause the other one won't compile.

    For successful use, put that into your /etc/make.conf: PORTAGE_OVERLAY="/usr/local/portage".
    create this directory if needed and put the ebuild there: /usr/local/portage/net-fs/ndas.
    Now build it with 'ebuild ndas-1.0.4_pre38.ebuild compile'. After then replace 'compile' with 'install', then with 'qmerge'.


updated 04.11.2006:
  • lot of things changed so far and some links too. Feel free to read this article for some background infos 'in the beginning' or go there for ximeta's updated information: http://code.ximeta.com/
  • version ndas-1.0.3-101: On executing 'make install' an error occured. Because of this I had to copy mknod.sh by hand to /usr/share/ndas/mknod.sh for a working gentoo- driver. Jhpark will change this in a coming version

updated 30.04.2006:

updated 18.01.2005:
  • did some general small changes and additions

updated 28.12.2005:
  • automatic activating at startup
  • boot entry in /etc/fstab
  • Devices- entry 'storing'


My Intention here is to give you a little help for a NDAS- Ximeta Disk. It might be unreadable for linux beginners. You should be able to managed your kernel-sources. Try it, learn it, use it..

I was never able to use the NDAS-Feature with a linux (non-Mandriva,Suse,Redhat) Computer
until Dec. 2005.

Tested Devices:
  • all ndas-devices from ximeta
  • FreeCom's NDAS Classic SL Network Drive


Some tools are necessary for compiling the modules. If you did install a gentoo-sources kernel by your own, you probably have everything you need.

If not, install kernel-sources (this must be already installed anyway, if you are using gentoo. I never heard of an rpm oder deb installed kernel), kernel-headers, gcc-compiler.

Technical Specification

NDAS stands for Network Direct Attached Storage and was developed my ximeta.com
Advantages:
  • no use of tcp/ip, also no ip adresses, no vulnerability against common scan tools
  • very high network performance (my measure tests proofs, that 10MB/s in an 10MB/s Network are possible)
  • easy usage
  • raid- ability

Disavantages:
  • proprietary drivers

Ximeta provides a very good and fast support for the linux drivers.
Using this on gentoo was a little bit tricky, but now it's very easy.

The main problem was, that those drivers worked only with older linux-kernels say 2.4.x.
For the guys syncing servers every day and using recent kernels, those drivers are not usuable.

Last week, I tried to compile the needed modules myself. After loading it with insmod an error occured
and finally there was no chance to solve it by myself(Cause: Different 'things' between 2.4.x and 2.6.x)
So I opened a ticket on the the ximeta database. 5 Days later (thanks to jhpark), a new driver was
there, which should work with 2.6.14 kernels.

Enough words, try it now.

I did no automation at all, but this could be done very easy.. See file ndas.spec for this

how to get ximeta netdisk working on gentoo
get the package at the end of the page at this link:
http://code.ximeta.com/cgi-bin/trac.cgi/ticket/14
use package: ndas-1.0.0-3.tar.gz


unpack it (
Code:
tar -xzf ndas-1.0.0-3.tar.gz
)
declare some kernel variables, please use YOUR kernel, see output of uname -a:
Code:
export NDAS_KERNEL_PATH=/usr/src/linux-2.6.14-gentoo-r3
export NDAS_KERNEL_VERSION=2.6.14

important: don't forget to use both export parameters. Make compiles everything without mistakes, but later on you will get some real troubles with fedora llc psnap and p802 modules, which we don't need anyway.
Code:
make

scroll down (SPACE), type yes (ximeta README like the one from nvidia)

check if modules are compiled (sorry for that stupid check point)
Code:
ls *.ko

  • ndas_block.ko
  • ndas_core.ko
  • ndas_sal.ko

copy those modules into the right place (you have to create some missing directories, if any)
Code:
install -m 644 *.ko /usr/lib/ndas/
install -m 700 mknod.sh /usr/lib/ndas/

copy daemon script and make it executable
Code:
install -m 744 ndas /etc/init.d/


copy ndasadmin into /usr/sbin/
Code:
install -s -m 755 ndasadmin /usr/sbin/


connect your netdisk to local network and turn the power switch on
then start the ultimative ndas daemon:
Code:
/etc/init.d/ndas start


check dmesg for messages and errors

register netdisk
Code:
ndasadmin register VGBAY-4L8AD-LLJ4K-SH97M-1234 --name ndisk1


'ndisk1' is registered successfully.

test netdisk
Code:
ndasadmin probe

NDAS device
--------------------
VGBAY4L8ADLLJ4K*****
--------------------

enable netdisk
Code:
ndasadmin enable -s 1 -o w

Block device /dev/ndas-00411073:0 is ready to use.

Please check the last messages with dmesg for device names. This differs from disk to disk. As I heard recently, the naming specification will be changed again, that you can use the --name ndisk1 as a /dev/ndisk1/n1 (or similar I guess) device.

if you get this message:
Quote:
enable: You did not provide a valid write key or slot 1 is exclusively accessed by other host.


here you try to enable the disk on a 2nd linux system. Multiwrite access is not possible. Enabeling with -o s does only take it over to the new computer.

Execute the following command to send the request for write permission.
Code:
ndasadmin request -s 1

this seems not to work on linux as I tested it so far. Ximeta says, that there is no ext2/3 multiwrite driver and there will be no one in the future. They recommend GFS http://code.ximeta.com/cgi-bin/trac.cgi/wiki/HowToGFS which I did not test.

now use it as a usual device
show device:
Code:
fdisk  /dev/ndas-00411073\:0

create your partitions, format it with common tools and go on

here we see an example entry in /etc/fstab. noauto will prevent auto-mount.
Code:
/dev/nd/ndas-00411073:0p1           /mnt/ndisk/n1   ext3            noauto,user        0 0


now we add the ndas as a gentoo bootinit script:
Code:
rc-update add ndas default


If your device /dev/nda disappears after a reboot to that:
To prevent that, change RC_DEVICE_TARBALL="yes" in /etc/conf.d/rc

Overview of tools/files
/etc/init.d/ndas this is the start script for ndas. This loads all modules
/usr/sbin/ndasadmin manipulate disk, register, show and so on
/usr/lib/ndas here are the modules and mknod.sh
install does nearly the same as cp *.ko and chmod 777 *.ko

IOOOIIOIOIO
module won't compile
Quote:
There are some extra flags like NDAS_EXTRA_CFLAGS
Be sure, that they are not used

strange module load errors (I suppose you will load them with insmod)
Quote:
could be, that you use an old installation with old config-files and old modules. Use a fresh TAR- package and compile again

Module won't load, crashes and cannot be killed by kill -9
Quote:
I unhappily could fix that only with a reboot

Modules: I have no llc, p802 psnap modules, what's wrong?
Quote:
Those Modules are not necessary on Gentoo (only Fedora). Did you specify both export parameters? It seems, that you did not, don't you?

Why does Multi-Sharing in write mode will not work (EXT2/3)?
Quote:
This is what it is. Use GFS instead (Please report your instructions here)

Cannot mount my drive with entry in /etc/fstab
Quote:
I noticed, that the name of the device is /dev/nd/ndas-00411073\:0 but for /etc/fstab I must use /dev/nd/ndas-00411073:0p1. The only difference is the \ before :0p1

The physical 2nd partition is defined as the first one :0p1 instead of :0p2?
Quote:
You created more than one partition on the disk and defined only the second partition beyond the first (physically). Later on, you assigned the first partition too. No problem. Just mount it right and create a new filesystem on the right partition



This does not covers everything, but it is a good start to get a working ndas device.
If you think or know of something important or uncovered, please report it to this thread.

yours,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759


Last edited by netral on Wed Dec 05, 2007 5:23 pm; edited 15 times in total
Back to top
View user's profile Send private message
supernerd
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 79

PostPosted: Tue Dec 27, 2005 4:46 pm    Post subject: A couple more pointers Reply with quote

This is a good start to a guide, which I am very appreciative of, since I have had this ndas drive for close to a year now, and haven't been able to use it other than usb.

I thought that the driver was a kernel patch and tried to follow the guide before compiling my kernel. It didn't work very well.

The guide requires that you already have a compiled and working kernel. It works similarly to the nvidia-kernel ebuild for those that are familar.

From reading the README it appears that you need to make sure that the following are built in your kernel: llc, p802, psnap

I didn't see options for them all, actually only one option for the llc2 module, but my make modules_install process revealed that it built modules for those modules as well.
_________________
http://www.supernerd.com
Back to top
View user's profile Send private message
supernerd
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 79

PostPosted: Tue Dec 27, 2005 5:12 pm    Post subject: Reply with quote

Thank you so much for this howto, it is working perfectly for me.

BTW if you get this message :
Quote:
# ndasadmin enable -s 1 -o w
enable: You did not provide a valid write key or slot 1 is exclusively accessed by other host.
Execute the following command to send the request for the write permission.
ndasadmin request -s 1


It means another machine on the network already has it enabled in write mode, change their mode to read only.
If it is enabled in read mode, you need to disable it and then re-enable it in write mode.

Does anyone know any good way to automate this so that the device is loaded on boot (if available) and mounted?

Has anyone been able to get it to work in shared write mode (my other machine is windows)?
_________________
http://www.supernerd.com
Back to top
View user's profile Send private message
supernerd
Tux's lil' helper
Tux's lil' helper


Joined: 23 Feb 2003
Posts: 79

PostPosted: Tue Dec 27, 2005 8:08 pm    Post subject: Reply with quote

Apparently I spoke too soon. I am having troubles after a reboot.

Quote:

# ndasadmin enable -s 1 -o w
enable: block device /dev/nda is already enabled
# cat /dev/nda
cat: /dev/nda: No such file or directory


This doesn't make any sense to me, perhaps the node isn't being created, but I would have thought that the init.d script would have done that.
_________________
http://www.supernerd.com
Back to top
View user's profile Send private message
jhpark
n00b
n00b


Joined: 27 Dec 2005
Posts: 3

PostPosted: Tue Dec 27, 2005 8:38 pm    Post subject: Reply with quote

Please make sure that the NDAS kernel modules are loaded on every boot.

insmod /usr/lib/ndas/ndas_sal.ko
insmod /usr/lib/ndas/ndas_core.ko
insmod /usr/lib/ndas/ndas_block.ko

/usr/sbin/ndasadmin start

and check if the node are created correctly.

ls -l /dev/nd*

I wish I could test the driver on Gentoo by my self sometime soon.

Regarding the solution to automate the write permission pass over,
I recommend to use GFS.

http://code.ximeta.com/cgi-bin/trac.cgi/wiki/HowToGFS

XIMETA,Inc have a multi-write driver for NTFS in MS Windows,
but XIMETA, Inc has no plan to make a multi-write driver for ext2/3 in linux as GFS is all about it.

Please issue a ticket at http://code.ximeta.com/cgi-bin/trac.cgi/newticket if you think you found a bug.

Please note that any opinions in this posting are my own and not those of my employers.
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Tue Dec 27, 2005 10:26 pm    Post subject: Reply with quote

jhpark wrote:
Please make sure that the NDAS kernel modules are loaded on every boot.

insmod /usr/lib/ndas/ndas_sal.ko
insmod /usr/lib/ndas/ndas_core.ko
insmod /usr/lib/ndas/ndas_block.ko

/usr/sbin/ndasadmin start

and check if the node are created correctly.

ls -l /dev/nd*



@supernerd, /dev Devices disappears after restart, because udev creates its devices dynamically. To prevent this use the solution under 2nd

1st:
start /etc/init.d/ndas at boot time, this will load all needed modules
do that with
Code:
rc-update add ndas default
should work (I hope so, not fully tested, eventually boot instead of default works also)
for a proper solution, some depend(){ need } commands should be used in the /etc/init.d/ndas script.

2nd:
in your /etc/conf.d/rc
activate RC_DEVICE_TARBALL="yes"
to get the devices after each reboot

Please feel free to report some errors to this thread, I will update the manual until its mature status.
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
LukeLemmings
n00b
n00b


Joined: 25 Feb 2004
Posts: 25

PostPosted: Sun Jan 15, 2006 8:23 pm    Post subject: FreeCom's NDAS too? (FREECOM CLASSIC SL) Reply with quote

Hi,

I suppose this should work for FreeCom's NDAS drive too?
Can anyone confirm this?

In the mean time I'll give it a try and let you know.

Lucas.
Back to top
View user's profile Send private message
LukeLemmings
n00b
n00b


Joined: 25 Feb 2004
Posts: 25

PostPosted: Tue Jan 17, 2006 8:13 pm    Post subject: Re: FreeCom's NDAS too? (FREECOM CLASSIC SL) Reply with quote

LukeLemmings wrote:
Hi,

I suppose this should work for FreeCom's NDAS drive too?
Can anyone confirm this?

In the mean time I'll give it a try and let you know.

Lucas.


Yep: The FreeCom drive works too / 2.6.11 kernel.
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Wed Jan 25, 2006 7:42 pm    Post subject: new version Reply with quote

Do not use the newest version of the ndas drivers (I tried 1.0.0-66).

They changed insmod to modprobe, which won't work with the manual.
All modules are not copied into /lib/modules/<kernel>, so modprobe won't find them anyway.

What else did change? I found (or it found me) a declaration of a new variable /etc/init.d/ndas (_NDAS_SHARE_..)

There are probably more changes which won't be visible so easy.
As a next thing, the module ndas_sal module won't load.

That was enough of failing and I stopped testing that driver.
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
jhpark
n00b
n00b


Joined: 27 Dec 2005
Posts: 3

PostPosted: Fri Feb 03, 2006 4:59 am    Post subject: Reply with quote

Do
Code:
emerge module-init-tools


After installing ndas-kernel module(from 1.0.0-82), execute
Code:
depmod

then modprobe will load the ndas_* modules.
Back to top
View user's profile Send private message
jhpark
n00b
n00b


Joined: 27 Dec 2005
Posts: 3

PostPosted: Sat Feb 18, 2006 3:10 am    Post subject: Reply with quote

Here is the update for the recent changes.

you can find the original version of this document at http://code.ximeta.com/cgi-bin/trac.cgi/wiki/Gentoo

Install the build tools.
Code:
emerge module-init-tools make

Download the tarball from http://code.ximeta.com/download/1.0.0/125/linux/ndas-1.0.0-125.tar.gz

Untar the tarball
Code:
tar -zxvf ndas-1.0.0-125.tar.gz

Build the driver.
Code:
make install

Now you are ready to go.

Please refer to /usr/share/ndas/README or http://code.ximeta.com/cgi-bin/trac.cgi/file/linux/trunk/README to use the NDAS driver.
Back to top
View user's profile Send private message
cdiesch
n00b
n00b


Joined: 04 Feb 2007
Posts: 5

PostPosted: Sun Feb 25, 2007 6:50 am    Post subject: Reply with quote

To support the installation of the NDAS driver in the gentoo environment i just supplied an ebuild and the Ximeta EULA under bug 168295
Have fun!
Back to top
View user's profile Send private message
wrinkols
n00b
n00b


Joined: 17 Mar 2007
Posts: 1

PostPosted: Sat Mar 17, 2007 9:17 am    Post subject: Reply with quote

I'm trying to use this through emerge but I keep getting the prompt for accepting the user agreement. It just infinitely repeats itself and I can't answer "yes". Any idea what I'm missing?


BTW this is my first post in the forums. Till now I've just been a troll reading all the great documentation.



******** EDIT *********

Well, I just used the source which was stored in the /var/tmp/portage dir and it worked fine now. So I guess nevermind on my original question. Thank you for all this support. I've been waiting to be able to use my (until now) wasted netdisk drive in linux. It comes in handy for keeping certain files shared easily over my network.
Back to top
View user's profile Send private message
cdiesch
n00b
n00b


Joined: 04 Feb 2007
Posts: 5

PostPosted: Sun Mar 18, 2007 3:56 pm    Post subject: Reply with quote

Getting the question for acceptance of the EULA and interactive answer during install is intended by Ximeta.
On my system, when using my ebuild I just get the question once with the compilation stopped until the answer is typed in.
With this information, it is hard to tell wether something needs to be changed in the ebuild or in your setup.
Are there any other experiences using the ebuilds?

Regards,

Christoph
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Mon Mar 19, 2007 9:38 pm    Post subject: Reply with quote

Me too, I got the same problem here on two different machines.

Typing yes is not possible at all.
First I thought it has something to do with distcc, which could be so.

It may be also important for you to know, that this happened with a new ximeta tarball somewhen last year and another (older one) worked fine.

yours,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
mighty goblin
n00b
n00b


Joined: 10 Jun 2007
Posts: 1
Location: Denver

PostPosted: Sun Jun 10, 2007 10:53 pm    Post subject: Reply with quote

Since there is not much out there in the net on this topic, and it could use some updating, I'll add a few notes from my experience just getting this to work on a AMD64 with a 2.6.21-gentoo-r2 kernel:

information used :
this page - https://forums.gentoo.org/viewtopic-t-413143.html
http://code.ximeta.com/trac-ndas/wiki/Gentoo
also:
http://code.ximeta.com/trac-ndas
http://code.ximeta.com/trac-ndas/wiki/Usage
http://code.ximeta.com/trac-ndas/wiki/HowToBuildManual

Installation source:
http://code.ximeta.com/dev/current/linux64/ driver version 1.1-2 as of 2007.06.10
for reference, though i didn't use it: http://code.ximeta.com/dev/current/linux/


The info on this original forum how-to and on ximeta's has lots of broken links, which caused me a few problems.

first off I had compile errors, stuff about format %d expects type 'int' but argument 2 has type 'long unsigned int'. a few google turned up nothing relevant, then i realized after a more careful reading of the code.ximeta.com site, that i need 64-bit source (duh) which i eventually found under installation source link above. The driver listed on the http://code.ximeta.com/trac-ndas/wiki/Gentoo is not the most current(1.0.3-101), and is 32-bit.

Once I obtained the proper source, compiling when smoothly. I still received error message about
. ERROR: Kernel configuration is invalid.
. include/linux/autoconf.h or include/config/auto.conf are missing.
. Run 'make oldconfig && make prepare' on kernel src to fix it.
but i just ignored it, autoconf.h is indeed there.

then following the USAGE instructions on http://code.ximeta.com/trac-ndas/wiki/Usage i could not get the device to register, response to
$ /usr/sbin/ndasadmin register <NDAS ID>-<NDAS key> --name <NetDisk Name to be>
was
. Failed to open /dev/ndas
. Check NDAS device file exists, driver module is loaded and started by administration tool

so I try enable, and the cat /proc commands, noting.
modprobe ndas_sal.ko, modprobe ndas_core.ko, nothing.

Finally I see in /usr/share/ndas/ some promising scripts, I try
$ /usr/share/ndas/ndas start
and ...
. Starting NDAS: modules inserted node created started

Easy sailing from there, "enabled" device per the usage instructions, created mount points, set up fstab, mounted partitions.

We have some NTFS partitions on the netdisk, which is nice under windows multiple users can have read and write access. With the linux sources, as expected it doesnt share nice, one user is rw, other machines read-only. Maybe we can find a way around this.

thanks to all those who have worked on this and those who make the forums so helpful....
Back to top
View user's profile Send private message
KGust
n00b
n00b


Joined: 15 Feb 2006
Posts: 2
Location: Batavia, IL, USA

PostPosted: Thu Jun 21, 2007 5:28 am    Post subject: How To Ximeta Netdisk on Gentoo 2.6.14 Reply with quote

I can't seem to enable my Ximeta in write mode. It works just fine in read mode.

I'm running 2.6.17-gentoo-r8 and have installed ndas-1.0.3-101. I had an error at the end of the install, so I had to manually create the /etc/init.d/ndas link. Otherwise it seems to work fine.

Whenever I try to enable the driver in write mode...
Code:
# ndasadmin enable -s 1 -o w
enable: You did not provide a valid write key or slot 1 is exclusively accessed by other host.
Execute the following command to send the request for the write permission.
ndasadmin request -s 1


Running 'ndasadmin request -s 1' does not appear to do anything. I've triple-checked the key. I've verified that I can enable the drive in read-only mode, mount it, etc. Any ideas?

BTW, what should /etc/ndas.conf look like? Mine is mostly binary data.
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Sat Jul 28, 2007 7:29 am    Post subject: Re: How To Ximeta Netdisk on Gentoo 2.6.14 Reply with quote

KGust wrote:
I can't seem to enable my Ximeta in write mode. It works just fine in read mode.

Whenever I try to enable the driver in write mode...
enable: You did not provide a valid write key or slot 1 is exclusively accessed by other host.
Execute the following command to send the request for the write permission.
ndasadmin request -s 1[/code]

Running 'ndasadmin request -s 1' does not appear to do anything. I've triple-checked the key. I've verified that I can enable the drive in read-only mode, mount it, etc. Any ideas?

BTW, what should /etc/ndas.conf look like? Mine is mostly binary data.


Do you use the disc by a second system? This could be a problem, cause only one system can have rw access.

/etc/ndas.conf: mine is the same.. binary data..

cheers,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759


Last edited by netral on Mon Jul 30, 2007 8:40 am; edited 1 time in total
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Sat Jul 28, 2007 9:16 am    Post subject: use of ebuilds Reply with quote

very short ebuild install instruction:
  • add this line to /etc/make.conf/ if you didn't do that already:
    PORTAGE_OVERLAY="/usr/local/portage"
  • get ebuild from https://bugs.gentoo.org/show_bug.cgi?id=168295
  • put it here: /usr/local/portage/net-fs/ndas/
    you must create missing directories if needed

build the package now:
  • ebuild ndas-1.1-r8.ebuild digest
  • ebuild ndas-1.1-r8.ebuild compile
  • ebuild ndas-1.1-r8.ebuild install
  • ebuild ndas-1.1-r8.ebuild qmerge

you could use qmerge instead of compile install qmerge. Would be enough too.

cheers,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 229

PostPosted: Wed Dec 05, 2007 1:03 pm    Post subject: Brand new device, working on the first day! Reply with quote

Hello everyone!

Just bought a "SUNGOO Externel Hard Disk Drive LAN" 320 GB and it sure is nice. I found the sources and the link on http://code.ximeta.com/cgi-bin/tracX.cgi/wiki/Gentoo directed me streight here - thanks :-)

The recent source at http://code.ximeta.com/dev/current/linux/ is
    ndas-1.1-15.tar.gz (2007-11-30)

It works to just use the ndas-1.1-r8.ebuild from https://bugs.gentoo.org/show_bug.cgi?id=168295 and rename it to ndas-1.1-r15.ebuild.
    # ebuild ndas-1.1-r15.ebuild digest
    # echo "net-fs/ndas ~x86" > /etc/portage/package.keywords

    I have the ebuild located in /usr/local/portage/, and the PORTDIR_OVERLAY variable in /etc/make.conf is set accordingly.

    # emerge net-fs/ndas


Works like a charm, only when the EULA is displayed I cannot get past it. Every key that is pressed is echoed with no effect at all. So I went into a second console and killed the more process.
    # ps -A
    # kill <PID of the last/only "more" process>

This got me past the lock and I got the message: "Do you agree to the above license terms? [yes or no]", typing "yes <enter>" then works.

The device works fine afterwards. I then started the init-script and registered the device:
    # /etc/init.d/nas start

    This got me a lot of error messages about illegal path settings or something like that, but the status was "started" anyways.
    NOTE: The init-script is added to the default runlevel by the above mentioned ebuild.

    # ndasadmin register <NDAS ID>-<NDAS key> --name ndisk1

    No error message, everything okay with that.

    # ndasadmin probe
    Probing is disabled for this software release.

    # ndasadmin enable -s 1 -o s
    WARNING: shared-write mode is only useful for clustering file system and is not recommended for other file systems
    Block device /dev/ndas-12345678-0 is ready to use.

    The warning is normal I guess, since there is still the original FAT32 file system on the disk.


I'm using gentoo-sources-2.6.23-r2 (~x86 at the time of writing).

By the way, does anyone of you know:
  • Is shared-write mode possible with FAT32?
  • If yes, can I use it with Windows and Linux simultaniously?
  • Do I have to disable a device before shutdown?


I have to state, that this is absolutly new to me -- that a device, that is not supported by the linux kernel or by the distribution (Gentoo) out-of-the-box, works at the first day I switch it on. Okay, this technology and the (closed-source :( ) kernel modules have been out there for a while now, but for me it is a great experience that it worked on the first day, with only little work to do (by the gentoo standards).
The only setback is that the shared-write mode is only available for GFS and with Windows (NTFS?). I would really like to share (read/write) this drive with Linux and Windows -- at the same time, without reformating the drive - which makes no sense anyway.

Besides that, thanks for the help in this thread! Great work!
Andreas.
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Wed Dec 05, 2007 5:07 pm    Post subject: Sungoo Reply with quote

Hi There

Good to hear about your ndas success. It was not so easy in the beginning, but JHPARK was very helpful and did a lot of work.

Thanks for that ps -A |kill <PID of more>
Often I had the same problem and no clue how to solve that.

Perhaps we should send a ticket to ximeta.

# Is shared-write mode possible with FAT32?
as far as i know, that only works as you already know with gfs.

# Do I have to disable a device before shutdown?
no, but please unmount it (i had some corruptions in the past because of that)

yours,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
Atha
Apprentice
Apprentice


Joined: 22 Sep 2004
Posts: 229

PostPosted: Wed Dec 05, 2007 6:56 pm    Post subject: Re: Sungoo Reply with quote

Hi netral (aus der schönen deutschsprachigen? Schweiz)!

First of all, thanks for your work on the ebuild and this topic, this way a lot of people - but at least myself - got it easy to get the NDAS network drive running quickly.

About the ticket - I didn't get into it that much, and I'd probably get to it in a few months earliest, so if you have the time I'd be glad if you file the ticket at ximeta.

netral wrote:
# Do I have to disable a device before shutdown?
no, but please unmount it (i had some corruptions in the past because of that)

When I shut down my Gentoo box, one of the last text messages is: "unmounting all remaining devices". So, shouldn't the unmount be done automatically?
If not, is it a good idea to put [ -e /mnt/ndisk1/.mounted ] && umount /mnt/ndisk1 in my /etc/conf.d/local.stop? Of course you have to touch /mnt/ndisk1/.mounted first for this to work...

Thanks again,
Andreas.
Back to top
View user's profile Send private message
netral
n00b
n00b


Joined: 03 Dec 2004
Posts: 8
Location: Switzerland

PostPosted: Fri Dec 07, 2007 11:06 pm    Post subject: Re: Sungoo Reply with quote

[quote="Atha"]Hi netral (aus der schönen deutschsprachigen? Schweiz)!

yes, you're right, I'm from there, quite near to the German Border, surely we could speak german, but i tried to hold that thread international for everyone (and to build english sentences, which is not so easy at it seems).

I filled out a ticket about this more phenomenon. But I must also check, if portage could be the reason for that. When I disrupt the 'Licence Agreement Showing' this shows up:
File "/usr/lib/portage/pym/portage_exec.py
so this could be something with python or portage.

You're right with automatic unmounting. The ndas service does everything and at least gentoo unmount everything anyway.

But..
In the past, I did started up a wireless connection to my disc. Somehow I lost that connection when I was only hearing a song from that disc. After the restart the disc table of the netdisk was corrupted.

That was bad luck.. naja.

yours,
netral
_________________
think global, drink local
http://www.frappr.com/?a=myfrappr&id=183759
Back to top
View user's profile Send private message
manji_
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2007
Posts: 120

PostPosted: Tue Jan 22, 2008 9:15 pm    Post subject: Reply with quote

I just bought an external hdd case which uses the NDAS ptotocol over the lan connection. I wasn't aware at all with this protocol, and I think I made a silly choise. Although I have managed to install successfuly the driver on both my computers, and the drive is mounted fire with autofs, I can't make them have access at the same time, or something like that. After installing the driver on the second computer :
Code:
~ cat /proc/ndas/devices/NDAS/slots
1

~ndasadmin enable -s 1 -o w
enable: You did not provide a valid key or slot 1 is exclussively accesses...

~ndasadmin request -s 1
Request for surrending the eclusive write permission sent

~ndasadmin enable -s 1 -o w
enable: You did not provide a valid key...

The drive is formatted with nfs. Has anyone succeded doing multiwrite over NDAS ? (without using gfs)
Back to top
View user's profile Send private message
jedilady
n00b
n00b


Joined: 28 Aug 2008
Posts: 1

PostPosted: Thu Aug 28, 2008 6:47 pm    Post subject: Ximeta NDAS in Gentoo/Sabyon Reply with quote

Hi Ximeta Netdisk Users.

I have just successfully compiled and installed the gentoo version of the linux ndas drivers.

I have registered the device OK but when I run a cat /proc/ndas/devs, I get the error below.

ndas-3 XXXXXXXXXXXXXXX***** Yes 16823128 2 Login Error

I am running a wireles network card which is an Atheros. The NDAS stuff works perfectly with that card in XP.

If I connect to the NDAS drive via wired ethernet and I run the above cat /proc/ndas/devs I get

ndas-3 XXXXXXXXXXXXXXX***** Yes 16823128 2 Connected

I can also get my slot number and everything works perfectly.

Any suggestions as to why the wireless network doesn't appear to be passing all the MAC packets???

Jedilady.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum