Help - Search - Members - Calendar
Full Version: DiskSync on Debian... It IS possible!
The Planet Forums > Operating Systems > Others
chyne
:!: Update: An even better solution!

Just thought I'd post my experiences with installing and running DiskSync on Debian in case anyone else is interested.

Download the DiskSync rpm:
CODE
# wget http://address.of.download/

Use alien to create a deb package (you could just use rpm in Debian, but that would bypass dpkg):
CODE
# alien --to-deb DiskSync-x.y-z.i386.rpm

Install the deb package:
CODE
# dpkg -i disksync_x.y-z_i386.deb

Follow the DiskSync install instructions, basically:
CODE
# ./install.sh

At this point the DiskSync would start, but would crash whenever I tried to access it with the Agent Console with following error:
CODE
/usr/local/BUAgent/VV: relocation error: /usr/local/BUAgent/VV: undefined symbol: __dynamic_cast_2

An quick check with ldd revealed:
CODE
# ldd -r VV

       libcrypt.so.1 => /lib/libcrypt.so.1 (0x40018000)

       libdl.so.2 => /lib/libdl.so.2 (0x40045000)

       libpthread.so.0 => /lib/libpthread.so.0 (0x40049000)

       libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x4005d000)

       libm.so.6 => /lib/libm.so.6 (0x400a6000)

       libc.so.6 => /lib/libc.so.6 (0x400c7000)

       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

undefined symbol: __dynamic_cast_2      (./VV)

undefined symbol: __check_null_eh_spec  (./VV)

So I grabbed an libstdc++-lib6.2.2 rpm from Red Hat and aliened it too:
CODE
alien --to-deb libstdc++-2.96-110.i386.rpm

Extracted the deb package and moved the required shared library:
CODE
dpkg -x libstdc++_2.96-111_i386.deb /tmp

mkdir /usr/local/BUAgent/lib/

mv /tmp/usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/local/BUAgent/lib/

To get the program to run with the Red Hat library rather than the Debian default one I created a wrapper:
CODE
#!/bin/bash



export LD_PRELOAD=/usr/local/BUAgent/lib/libstdc++-3-libc6.2-2-2.10.0.so



/usr/local/BUAgent/VVAgent -f -p /usr/local/BUAgent

I used the -f option above because I run DiskSync under Daemontools rather than inittab.

And lo and behold, it works! Cool! wink.gif
Matt2k
There is a god in heaven!!!!!!! And his avatar on earth is chyne!!!
BBryant
Moved to the Others forum and stickied.
jscott
Greetings,

Debian is not directly supported in the RPM, as that is a package specifically constructed for RedHat Enterprise Linux 3.

However, the Agent Linux tarball installer detects Debian, and installs the proper version of the binary to prevent the undefined symbols errors you describe here.

CODE
wget http://downloads.theplanet.com/disksync/Agent-Linux-5-00.tar.gz

tar zxvf Agent-Linux-5-00.tar.gz

cd Agent-Linux-5.0

./install.sh

>> Installation directory? [/usr/local/BUAgent] <enter>

>> /usr/local/BUAgent doesn't exist.  Create it? ([Y]/n) <enter>


Done.

Since DiskSync Agent for Linux is supported for RedHat, Debian, and Gentoo, I'd be very interested to know if someone has been saying that any of these flavors of Linux are not supported.
chyne
I'd be very interested to know why no one told me that there was a tarball version. wink.gif

The email that I received when "Your DiskSync Account is Ready" did not contain any direct links to downloads. I found the RPM by clicking the "Back to DiskSync Backup" link at https://orbit.theplanet.com/nav_services/disksync_configure.html ://https://orbit.theplanet.com/nav_ser...configure.html ://https://orbit.theplanet.com/nav_ser...configure.html (which was in the email).

The DiskSync Backup page only includes links to the Windows and Linux (RPM) installers.

For the longest time I didn't even know DiskSync was supported on Linux at all, because to this date the FAQ still claims that a "Linux version of this software is planned for future release".

I hope that the DiskSync Backup page will be changed to reflect the availability of the tarball version.

But thanks for the info! Better late than never!
jscott
QUOTE (chyne)
I'd be very interested to know why no one told me that there was a tarball version. wink.gif


Interesting. It does exist on http://downloads.theplanet.com/disksync however. I will see if we can get the tarball linked inside Orbit as well.

QUOTE (chyne)
For the longest time I didn't even know DiskSync was supported on Linux at all, because to this date the FAQ still claims that a "Linux version of this software is planned for future release".


"At this time, Agent Console only operates under Windows operating systems. A Linux version of this software is planned for future release."

This means that Agent Console (which is how the backups are configured and controlled) is only available for Windows. We support Agent on all platforms except FreeBSD at this time.

QUOTE (chyne)
I hope that the DiskSync Backup page will be changed to reflect the availability of the tarball version.


I'll see what I can do.
chyne
QUOTE
It does exist on http://downloads.theplanet.com/disksync however.

That's a very useful link! You should provide it to people who sign up for the DiskSync service! wink.gif

Are there other useful sites on downloads.theplanet.com that might be of interest?

I'd like to try to install Urchin on Debian, are there any useful Urchin resources?
jscott
Chyne,

At this time, DiskSync is the only software available at that site.

I am afraid I am unfamiliar with any of our non-backup related products. As such, I would recommend opening a ticket with support for your Urchin issues.
cline
QUOTE (jscott)
This means that Agent Console (which is how the backups are configured and controlled) is only available for Windows. We support Agent on all platforms except FreeBSD at this time.

Is there hope for FreeBSD support?

--Joe
facecake
QUOTE (cline)
QUOTE (jscott)
This means that Agent Console (which is how the backups are configured and controlled) is only available for Windows. We support Agent on all platforms except FreeBSD at this time.

Is there hope for FreeBSD support?

--Joe


Whilst i don't have disksync, i see no reason why it shouldnt work in the linux compatability mode
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.