DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2011-02-27 01:13:03

Caneli70
New member
Registered: 2011-02-27
Posts: 2

Fastest method for migrating data from one DNS-323 to another

Hi,

I'm sure this was covered somewhere before, but i can't find a straight answer for it. I have the following configuration:

1. OLD DNS-323 named "Backup Server" , 2 x 500 GB drives in RAID 1 mode. Disks are Full.
2. New DNS-323 named "Entertainment Server", 2 x 2TB drive in Standard disk mode.

I want to move or copy in the fastest and easiest way my movies/music/pictures (257 GB) data from Backup Server to Entertainment Server without chocking my network or going over network.


Please help with a script or an application or a step by step guide for migrating the data from one HD to another.

Thx,

Caneli

Offline

 

#2 2011-02-27 10:51:40

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Fastest method for migrating data from one DNS-323 to another

Fast: Put one drive from each into the NAS or a PC and copy the files between disks.

Safe and moderately fast: Mount one NAS directly from the other and copy the files. Using a USB enclosure also falls in the category.

Safest and slow: Copy from your PC from one to the other.

Last edited by FunFiler (2011-02-27 10:55:33)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#3 2011-02-27 20:20:47

Caneli70
New member
Registered: 2011-02-27
Posts: 2

Re: Fastest method for migrating data from one DNS-323 to another

Fast: I put one drive from the Backup Server into the Entertainment Server and started copying some files but it looks like it was copying to my computer first and then to the second NAS. Do i need funplug to copy directly from one drive to the other?

Safe and moderately fast: I thought of chaining the two NAS together but i could not find any information as how to do that. Any ideas? Or as you say, i can install funplug and mount one drive through the USB port on the NAS.

Any help as to how to do it and what software i need to use will be appreciated.

Thx,

Caneli.

Offline

 

#4 2011-02-28 05:48:16

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Fastest method for migrating data from one DNS-323 to another

If you are only going to do this once and you don't want to mess with a fun_plug, I'd say do it the slow way - use a PC to copy the data from one NAS to the other.  You can let it run overnight and it won't take that much longer.  The NAS is likely going to be the bottleneck anyway since it does not have much memory or speed.  And so doing the internal disk copy may not buy you much, unless you have your NAS's  attached over a really slow network.

Yes, for the fast method, you'll have to install a fun_plug.  You can use the ffp fun_plug and not bother with the installation past the point of getting telnet working.  Then telnet into the NAS and copy the files with a command like:

cp -a /mnt/HD_b2/music /mnt/HD_a2/music

assuming that your source disk is the 'B' disk in the left drive bay.  You would run this command on the NAS at the telnet prompt, not from your PC.

Once finished, you can uninstall ffp.

The USB drive method isn't much different.  You'd still need a fun_plug and you'd have to get the USB drive working.  There are instructions for that on the wiki.

250 GB isn't that much anyway - it should take 4-8 hours.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#5 2011-05-20 04:04:40

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Fastest method for migrating data from one DNS-323 to another

Disk to disk copy within a DNS is not as fast as say a modern PC where the disk itself quickly becomes the limiting factor in copy performance.

Would booting Linux using a LiveCD on a PC and invoking 'cp -a' speed up the copy considerably or would one run into file ownership/permission issues?


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#6 2011-05-20 04:11:32

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Fastest method for migrating data from one DNS-323 to another

Any file permission issues could easily be fixed in a telnet/ssh session after copying if required if FFP is installed.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#7 2011-05-20 04:57:29

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Fastest method for migrating data from one DNS-323 to another

I'd like to try this method with my upcoming hard drive upgrade. I hope I don't have to check file and folder attributes manually since I won't know up front what they should be.

I have ffp installed on every drive.


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#8 2011-05-20 19:29:59

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Fastest method for migrating data from one DNS-323 to another

Yeah, you could plug both drives into a "modern" PC and boot a live linux (or whatever) CD to do the copy.

If you pick the right copy method and select the right parms to preserve ownership and permissions for whatever copy command you use, you should not encounter problems that need repair later.  It is wiser to avoid the problem upfront.  Also, repairing permissions and ownership problems is NOT trivial in places such as the ffp tree, where they really are important.

You can use plain old cp with -a or whatever options you'd like.

The tar and cpio commands are also good at preserving file attributes:

cpio example:
cd fromdir
find . | cpio -pdumv todir

tar example:
cd fromdir; tar cf – . | (cd todir; tar xfp -)

where fromdir and todir are your mount points for the two drives.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#9 2011-05-21 03:14:48

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Fastest method for migrating data from one DNS-323 to another

Thanks for the Linux command line insights, karlrado


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#10 2011-05-21 04:41:02

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: Fastest method for migrating data from one DNS-323 to another

karlrado wrote:

It is wiser to avoid the problem upfront.  Also, repairing permissions and ownership problems is NOT trivial in places such as the ffp tree, where they really are important.

If copied to a temporary or isolated directory, then it is as simple as:
chown -R nobody:501 /path to new directory/

smile


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#11 2011-05-21 09:00:20

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Fastest method for migrating data from one DNS-323 to another

Just finished copying the contents of an almost full 1TB drive to the new 2TB drive using a PC booted to Ubuntu. Took about 5 hours which is a lot faster than drive to drive within the DNS.

Since I have a backup on another NAS, I used rsync to check whether permissions were the same and they were!


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#12 2011-05-22 14:31:54

ZBB
Member
Registered: 2011-01-11
Posts: 11

Re: Fastest method for migrating data from one DNS-323 to another

unmesh wrote:

Just finished copying the contents of an almost full 1TB drive to the new 2TB drive using a PC booted to Ubuntu. Took about 5 hours which is a lot faster than drive to drive within the DNS.

FWIW, when I upgraded my DNS-323 drives from 1TB to 2TB a couple months back, I did the data move by SSHing into the DNS and using the cp command.  Took about 10 hours, most of which was overnight...

Offline

 

#13 2011-05-22 22:04:20

jhtopping
Member
From: Ohio, USA
Registered: 2011-05-08
Posts: 10

Re: Fastest method for migrating data from one DNS-323 to another

FunFiler wrote:

Fast: Put one drive from each into the NAS or a PC and copy the files between disks.

Would this approach work if the firmware was not the same on both machines?

My primary server has 1.09 installed and is starting to have thermostat problems and then hang during the reboot process.  The disks are both 2TB drives, WD20EADS.  The test server is running 1.10b7 and the drives are WD10EARS.  Space is not a problem in going to the smaller disks, but I am concerned about about the 1.10 machine reading disks formatted differently.

Offline

 

#14 2011-05-23 16:27:12

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Fastest method for migrating data from one DNS-323 to another

jhtopping wrote:

FunFiler wrote:

Fast: Put one drive from each into the NAS or a PC and copy the files between disks.

Would this approach work if the firmware was not the same on both machines?

My primary server has 1.09 installed and is starting to have thermostat problems and then hang during the reboot process.  The disks are both 2TB drives, WD20EADS.  The test server is running 1.10b7 and the drives are WD10EARS.  Space is not a problem in going to the smaller disks, but I am concerned about about the 1.10 machine reading disks formatted differently.

If you are just copying files and not reformatting the destination disk, you should be fine.  The machine doing the copy (NAS or PC) would need to have support for the filesystem types (e.g., ext2, ext3) of course.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB