- Joined
- Jan 27, 2011
- Location
- Beautiful Sunny Winfield
Hi folks,
I'm in the process of migrating my NAS RAID (running Linux on a small dedicated system) and copying data from one drive to the other is going slower than expected. In the long run I'm more concerned about this happening correctly rather than speedily, but I'm also concerned that if something is not right now, it will not be right down the road.
At present the system boots off a laptop drive and uses a 2TB and a 3TB drive for storage. Over a year ago I replaced a 2TB Seagate that had thousands of remapped sectors with a 3TB WD Red. At the time I configured the 3TB as a 2TB match for the other drive. Since then I purchased another three TB drive and with the other Seagate starting to developed remapped sectors, it seems like a good time to put that into service. I failed and removed the 3TB from the raid, repartitioned it and created a new RAID (all are mirrored sets) in degraded mode. In other words, both RAIDs are operating on only one drive.
After formatting and mounting the new RAID I'm using rsync to copy files from one to the other. The exact command is:
This forks a couple more instances of rsync (a reader and writer I presume.)
There is about 1.6TB of data to copy and the internal transfer rate I get from the WD web site is 147 MB/s (http://www.wdc.com/wdproducts/library/SpecSheet/ENG/2879-800002.pdf) An approximate calculation of the time to write the data is:
1,600,000 MB/(147*60*60) => 3 hours
It's been running over 8 hours and is less than half way done. At the rate so far, it will take about 20 hours. I understand that there will be some overhead but a factor of 7 seems excessive. Does the internal data rate not reflect the ability of the drive to write data or just read? Did I screw up my calculation? Does the overhead for the file system and RAID add that much? I would suppose of filesystem operations require the drive heads to move back and forth across the platter, that could slow things a lot. Incidentally the drive being read from is rated for sustained throughput of 95 MB/s so I suppose that will determine overall speed. Still not a factor of 7.
Here are the particulars of the system:
Both drives are formatted as ext4:
Is everything OK or do I need to start looking for problems?
Hmmm... Here is the partition table from the 'from' drive:
Starting at 1049 looks not so good, no? The drive reports a sector size of 512 but is really a 4096 byte/sector drive. Maybe not. That's the same as the 3TB drive which does report the correct physical sector size and should be correctly partitioned.
Thanks!
I'm in the process of migrating my NAS RAID (running Linux on a small dedicated system) and copying data from one drive to the other is going slower than expected. In the long run I'm more concerned about this happening correctly rather than speedily, but I'm also concerned that if something is not right now, it will not be right down the road.
At present the system boots off a laptop drive and uses a 2TB and a 3TB drive for storage. Over a year ago I replaced a 2TB Seagate that had thousands of remapped sectors with a 3TB WD Red. At the time I configured the 3TB as a 2TB match for the other drive. Since then I purchased another three TB drive and with the other Seagate starting to developed remapped sectors, it seems like a good time to put that into service. I failed and removed the 3TB from the raid, repartitioned it and created a new RAID (all are mirrored sets) in degraded mode. In other words, both RAIDs are operating on only one drive.
After formatting and mounting the new RAID I'm using rsync to copy files from one to the other. The exact command is:
Code:
rsync -aH /srv/ /mnt/newraid
This forks a couple more instances of rsync (a reader and writer I presume.)
There is about 1.6TB of data to copy and the internal transfer rate I get from the WD web site is 147 MB/s (http://www.wdc.com/wdproducts/library/SpecSheet/ENG/2879-800002.pdf) An approximate calculation of the time to write the data is:
1,600,000 MB/(147*60*60) => 3 hours
It's been running over 8 hours and is less than half way done. At the rate so far, it will take about 20 hours. I understand that there will be some overhead but a factor of 7 seems excessive. Does the internal data rate not reflect the ability of the drive to write data or just read? Did I screw up my calculation? Does the overhead for the file system and RAID add that much? I would suppose of filesystem operations require the drive heads to move back and forth across the platter, that could slow things a lot. Incidentally the drive being read from is rated for sustained throughput of 95 MB/s so I suppose that will determine overall speed. Still not a factor of 7.
Here are the particulars of the system:
Code:
Motherboard: ASRock Q1900-ITX
Processor: Intel Celeron J1900
RAM: 4GB
From drive: Seagate Barracuda LP ST32000542AS
To drive: WDC WD30EFRX-68EUZN0
Both drives are formatted as ext4:
Code:
root@oak:/home/hbarta/Documents# grep /dev/md /etc/mtab
/dev/md2 /srv ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/md0 /mnt/newraid ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
Is everything OK or do I need to start looking for problems?
Hmmm... Here is the partition table from the 'from' drive:
Code:
1 1049kB 2000398844kB 2000397795kB ext4 ext4 raid
Thanks!