Trying to ¨start over¨ and following this guide: http://dennisfleurbaaij.blogspot.com/2013/01/setting-up-linux-mdadm-raid-array-with.html
I used fdisk and mdadm to create a raid 5, and I believe I should have used 4096 size.
Following those instructions I get:
GNU Parted 2.3
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
Warning: The existing disk label on /dev/md0 will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes
(parted) unit s
(parted) mkpart primary 2048s 100%
Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel?
I stopped at that point because I need to realign. Here is fdisk info:
Disk /dev/md0: 3000.2 GB, 3000211537920 bytes 255 heads, 63 sectors/track, 364754 cylinders, total 5859788160 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 65536 bytes / 196608 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/md0p1 1 4294967295 2147483647+ ee GPT Partition 1 does not start on physical sector boundary.
My goal is to set this drive up right, and mount it so I know that I can start transferring files that I plan to store. I set up the raid and let it build before, then used Samba to set up a share. I transferred files with my Windows machine over. I turned everything off and the network link was no longer valid in Windows. That is when I backtracked and started getting alignment errors.
This is my first server, btw. Trying to get this drive shared permanently each time I boot/reboot.
------- EDIT --------------- So I am still confused if I have selected the correct size for my array.
Also, I have tried to add to fstab but I am not sure what (options) to use.