Question about Raid disk format
A quick overview. I have just converted an old server which was previously set up as JBOD with 4 drives to 2 distinct drives and a further 2 as a Raid1 array.
This as a precursor to getting some new large drives and doing the job correctly by way of a bit of self learning.
Previously I had 4 drives, /dev/sda to /dev/sdd set up as follows:
All under Slackware 13.37
All formatted as ReiserFS
So, moved the /home and the /var/www/partitions onto /dev/sda and then using WEBMIN, created a Raid0 array formatting to Ext4.
Set as /dev/md0=MediaFiles
Activated the array and tested it by transferring some of the files from /media to MediaFiles and it all seems to work OK,
However, interrogating the drives individually still shows /dev/sdc/and /dev/sdd as being formatted as ReiserFS, whilst interrogating /dev/md0 shows the array formatted as Ext4.
The ultimate aim is for 4 1Tb drives set up as Raid10
So, to a couple of questions. How is it possible to have this discrepancy about the formatted drive types and is there any danger in leaving them well alone?
How do I know that the stripe is actually striping?
Is there any way of looking at the data and seeing half of it on /dev/sdc and the other half on /dev/sdd?
As I said, just a self education exercise at the moment.
Though in RAID 0 it's either working completely or not at all.
Thanks for that. A bit clearer now.
Anyone with more knowledge and experience, please correct me if I am wrong... However, according to my research, the superblock locations of a md array and of a Reiserfs filesystem are different.
For both ReiserFS and MD arrays, the superblock contains the metadata of the filesystem. The exact information that is kept and location differs for both filesystems.
According the info I read for Reiserfs, the superblock is the 16th block from the start of the disk, where the first 64k is kept for partition information/boot loader stuff.
The superblock location for an mdarray depends on the version of metadata it utilizes. All modern versions of mdadm utilize version 1.2 metadata by default. A 1.2v metadata superblock is located 4k from the beginning of the device.
I believe when you are quering /dev/sdc and /dev/sdd individually, the residual superblock data from reiserfs still exists, which is why you see the same data.
Unless you defined a different blocksize for your reiserfs disks, the default is 4k. As an experiment, you can try the following:
I recommend creating two files, /MediaFiles/test
and an abritrary test file on of of the non-raid disks, i.e. /home/test
and perform the following:
It is important to note however, that this is not a complete apples to apples test (more like gala apples and granny smith). The filesystem overhead will be different between you're /root partition and /MediaFiles, considering /root is still in RiserFS and /MediaFiles is in ext4.
Note: IO performance increases significantly for Raid array's when the block size is a multiple of the chunk size. I can't recall the sweet spot, but I remember you will get different results for different block sizes.
a. Linux MD Raid Wiki: https://raid.wiki.kernel.org/index.p...rblock_formats
b. ReiserFS: http://homes.cerias.purdue.edu/~flor...r/reiserfs.php
|All times are GMT -5. The time now is 02:12 AM.|