Large disk raid
|
| Author | Content |
|---|---|
| penguinist Dec 04, 2013 6:57 PM EST |
When you partition large (>2TB) disks, you can no longer use fdisk but parted becomes the tool of choice. However, parted seems to be rather sparsely documented, so after tracking down the particulars I felt that I needed to drop this info somewhere. Maybe it will help someone, but at least I'll know where to find the info next time I need it. If you want to set up raid1 on a pair of 4TB hard drives, do something like this: parted -a optimal /dev/sdx mklabel gpt mkpart primary 0% 100% set 1 raid on parted -a optimal /dev/sdy mklabel gpt mkpart primary 0% 100% set 1 raid on mdadm --create /dev/md0 --raid-devices=2 --level=raid1 /dev/sdx1 /dev/sdy1 mkfs.ext4 /dev/md0 mount /dev/md0 /mnt/my_mountpoint There are many possible variations, but this gives you a starting point as a reference. |
| jdixon Dec 04, 2013 8:12 PM EST |
Concerns about this were why I limited my recent drive purchase to a 2 TB drive. However, the command line tool for gpt disks that's equivalent to fdisk is gdisk. |
| Bob_Robertson Dec 05, 2013 8:38 AM EST |
That's....a lot of disk. |
| penguinist Dec 05, 2013 10:15 AM EST |
This disk was added onto a server that is doing nightly backups for ten other machines. For backup duty, you can use all the raid1 (or raid6) disk you can get. The amazing part is that you can get 4TB drives now for $150 each. |
| Bob_Robertson Dec 05, 2013 10:54 AM EST |
Where firms are allowed to compete, the push is always to profit from better serving the customers than anyone else. Yeah, drive prices are dropping again. |
Post a reply to this thread:
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help
Sign up and post (it is free) or Log in and post
