*sigh*

Aug. 24th, 2011 08:00 pm
andrewducker: (Default)
[personal profile] andrewducker
I have a new NAS box. I am currently copying over the files from the old NAS box. They both have gigabit ethernet connections, but sadly the switch they are plugged into is only 100MBit.

I started off copying the files from Windows, using drag/drop, but this proved to be a little slow (I assume that it was copying the files from NAS1->PC->NAS2). So I found this guide which showed me how to SSH into NAS2, and then use smbclient to pull the files direct from NAS1.

Which seems to be getting about 10MB/s. Which is 80MBit, and so probably about as fast as the switch can usefully manage.

Now I just have to leave it for 12 hours while all 400Gig of videos copies over...

Date: 2011-08-24 07:32 pm (UTC)
zz: (Default)
From: [personal profile] zz
your pc doesn't have 2 gigabit ethernet sockets by any chance...?

Date: 2011-08-24 07:39 pm (UTC)
From: [identity profile] hirez.livejournal.com
Aren't there a pile of tweaks to samba required to make the performance anything other than a bit grim?

(Crossover cable and scp?)

Date: 2011-08-24 07:49 pm (UTC)
ext_267: Photo of DougS, who has a round face with thinning hair and a short beard (Default)
From: [identity profile] dougs.livejournal.com
Some more recent Ethernet ports auto-detect when you should have used a crossover cable, and do the crossover thing themselves. Might be worth a try.

Date: 2011-08-24 07:54 pm (UTC)
From: [identity profile] hirez.livejournal.com
[FX: Wil E. Coyote moment]

Ah. Good point.

Date: 2011-08-24 08:19 pm (UTC)
ext_267: Photo of DougS, who has a round face with thinning hair and a short beard (Default)
From: [identity profile] dougs.livejournal.com
ah, I was thinking of two gigabit servers rather than two gigabit NAS boxes. And the last NAS box I played with had multiple Ethernet ports and SSH command-line login.

Date: 2011-08-24 08:34 pm (UTC)
From: [identity profile] call-waiting.livejournal.com
On nas2:

% nohup
% (sleep 120; scp-or-smbclient-or-whatever-batch-copy)

Then disconnect the two NAS boxes from the switch, connect them to each other via the crossover (you have 120 seconds to do so. Change that number if you like ;)

Then wait for the lights to stop blinking.

Date: 2011-08-24 10:52 pm (UTC)
From: [identity profile] pete stevens (from livejournal.com)
If they're how I remember you should be able to open them both up, pull a disk out of each and boot the new one up. SSH in and check that /proc/mdstat has an unhappy raid array. You should then be able to plug your old disk in, and do something like

mdadm --assemble /dev/md4 /dev/sdb1
mkdir /mnt/old
mount /dev/md4 /mnt/old
cp -a /mnt/old/

At this point you'll discover that the CPU maxes out at about 300Mbits as far as I recall but hey, taking things apart is Fun!

Date: 2011-08-25 08:21 am (UTC)
From: [identity profile] pete stevens (from livejournal.com)
You'd want to run smartctl across your raid 5 array before pulling a disk to make very sure you don't have a sector error on any of your source disks or it'll all go horribly tits up. You'd also need to make sure the kernels have ext4 and xfs support when you copy. So there's a non trivial probability of it all going horribly wrong and deleting all your data. But hey, you've got backups :-)

Date: 2011-08-27 10:56 pm (UTC)
From: [identity profile] apostle-of-eris.livejournal.com
dunno if it's any faster, but would robocopy make it any easier?

May 2026

S M T W T F S
      1 2
3 45 6 7 8 9
10 11 1213 14 1516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 15th, 2026 03:45 pm
Powered by Dreamwidth Studios