Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having issues trying to partition 4x 1tb harddrives. I booted in to the usb linux, tried "Everything Else" and selected the drives individually to partition, but then it gives me an error. Since I already have a OS drive (80gb drive son /sde/sde1), I don't actually want to install ubuntu again.
I would prefer to do it in bash, but I can't seem to find a HOWTO with clear directions. Any suggestions?
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x96ba8f41
Device Boot Start End Blocks Id System
/dev/sda1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0009745c
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1953523711 976760832 b W95 FAT32
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00070991
Device Boot Start End Blocks Id System
/dev/sdc1 2048 1953523711 976760832 b W95 FAT32
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0bbe68ef
Device Boot Start End Blocks Id System
/dev/sdd1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000962e4
Device Boot Start End Blocks Id System
/dev/sde1 * 2048 139599871 69798912 83 Linux
/dev/sde2 139601918 156301311 8349697 5 Extended
/dev/sde5 139601920 156301311 8349696 82 Linux swap / Solaris
root@evocati-desktop:/home/evocati#
Got it. Thanks for your help! I was exhausted lastnight... and frustrated after 4 days.
So I managed get everything partitioned, awesome, but now it's giving me a wierd error.
Quote:
root@evocati-desktop:/home/evocati# mdadm --create --verbose /dev/md0 --level=5 \ --raid-devices=4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: only give one device per ARRAY line: /dev/md/Server and 1
mdadm: no raid-devices specified.
How do I handle that? I looked for it online, but I can't seem to find a answer.
I think the implications of this page http://linux.die.net/man/8/mdadm (both syntax defn & examples) imply that the /dev/mdX name should come immediately after the -C
Code:
# also, use a single long line (ie no '\') & short circuit dev names
mdadm --create /dev/md0 --verbose --level=5 --raid-devices=4 /dev/sd{a,b,c,d}1
So, that all worked (YAY!), but after I managed to get the network set up and mapped in to windows, I saw that it was only 800gb. so with a simple cat /proc/mdstat:
They're 1tb harddrives, so they should come out to roughly 3tb when in Raid 5. After some perusing, I've found that it's most likely that I'm running 64 bit and the kernel doesn't have large block support incorporated. Now, I have to figure out how to add large block support in. Why isn't that standard, I wonder.
Also:
Code:
evocati@evocati-desktop:~$ sudo fdisk -l
[sudo] password for evocati:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000d85e0
Device Boot Start End Blocks Id System
/dev/sda1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcd5266e8
Device Boot Start End Blocks Id System
/dev/sdb1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6c8d855f
Device Boot Start End Blocks Id System
/dev/sdc1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
81 heads, 63 sectors/track, 382818 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001417d
Device Boot Start End Blocks Id System
/dev/sdd1 2048 1953525167 976761560 b W95 FAT32
Disk /dev/sde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000962e4
Device Boot Start End Blocks Id System
/dev/sde1 * 2048 139599871 69798912 83 Linux
/dev/sde2 139601918 156301311 8349697 5 Extended
/dev/sde5 139601920 156301311 8349696 82 Linux swap / Solaris
WARNING: GPT (GUID Partition Table) detected on '/dev/md0'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/md0: 3000.6 GB, 3000607703040 bytes
2 heads, 4 sectors/track, 732570240 cylinders, total 5860561920 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
evocati@evocati-desktop:~$
I'm not sure how mdadm will handle MS FAT32 disks and in any case you are limited by FAT32 itself, which is very old(!) tech and will not address that size of disk I believe.
Why don't you use a native Linux FS eg ext3/ext4?
If you want to mount this afterwards from MSWin, there are drivers for ext3 under MS I believe, or (better) use network mounting via Samba or NFS.
Actually, the disk partition types need to be set to 'fd' = Linux RAID.
ext3/ext4 is the Filesystem type.
I managed to get this all working last weekend. As it turns out, if you just use an EXT4 partition on the raid and a Fat32 (or MSDOS w/e) on the drives themselves with a GPT selection, it works just fine. I had some issues getting things cleaned up, but once I was able to get the system to recognize the full raid size, I was golden.
Now, I'm needing to go through and clean out the auto-mount fstab file so it stops pausing during boot and then change the raid name so it isn't some long list of numbers/letters... that's annoying. I'd prefer to have it auto-mount with a particular name so the rest of the comps can connect to it immediately.
One odd thing is that one of the machines keeps having connectivity issues and dropping the connection. I've heard that that's been an issue, but I figured it was resolved. I'll have to get a screen shot the next time it happens.
Either way, I now have 4Tb+ on a network. Yay. (2.73Tb WD Black Raid5 + 1.8Tb WD Green solo)
Lastly, I didn't want to have to fool with the windows boxes incase there were something I needed to do to them. I wanted something that you could just plug a computer in to the router and be able to communicate with it immediately. The drivers seemed like one more thing to remember to get if I were to do a wipe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.