Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I hope you can help me out. First to qualify this, I am not the most linux savy, so please don't bash me if I say something stupid :)

I have a media/file server built on 12.04 with two 3TB drives in a mirror(s). These drives are partitioned into 3 parts each; 1 50GB OS, 1 35GB Swap, and 2.9TB Files. Each partition is mirrored to an identical setup on the second drive, so there are technically 3 separate Raid Arrays. What I am looking to do is to simply expand the "Files" partition/raid array across a new drive (two technically, one for each side of the mirror), while still maintaining the mirror. Essentially what I'm hoping to end up with is a 5.9TB "Mirrored JBOD" for the files partition. Obviously if at all possible, I would like to accomplish this with as little risk to the existing data as possible. I have various ideas, but too many questions to be sure how to proceed with this. Here is my current disk setup...

XXXXX@HomeFS:/etc$ sudo parted -l
Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name       Flags
 1      1049kB  5243kB  4194kB               BIOS Boot  bios_grub
 2      5243kB  50.0GB  50.0GB               OS         raid
 3      50.0GB  85.0GB  35.0GB               SWAP       raid
 4      85.0GB  3001GB  2916GB               Files      raid


Model: ATA ST3000DM001-1CH1 (scsi)
Disk /dev/sdb: 3001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt

Number  Start   End     Size    File system  Name       Flags
 1      1049kB  5243kB  4194kB               BIOS Boot  bios_grub
 2      5243kB  50.0GB  50.0GB               OS         raid
 3      50.0GB  85.0GB  35.0GB               SWAP       raid
 4      85.0GB  3001GB  2916GB               Files      raid

...
..
.



XXXXX@HomeFS:/etc$ sudo mdadm -D /dev/md0 | grep "\/dev\/\|level\|Size\|Raid Devices"
/dev/md0:
     Array Size : 48795520 (46.54 GiB 49.97 GB)
  Used Dev Size : 48795520 (46.54 GiB 49.97 GB)
   Raid Devices : 2
       0       8        2        0      active sync   /dev/sda2
       1       8       18        1      active sync   /dev/sdb2

XXXXX@HomeFS:/etc$ sudo mdadm -D /dev/md1 | grep "\/dev\/\|level\|Size\|Raid Devices"
/dev/md1:
     Array Size : 34147200 (32.57 GiB 34.97 GB)
  Used Dev Size : 34147200 (32.57 GiB 34.97 GB)
   Raid Devices : 2
       0       8        3        0      active sync   /dev/sda3
       1       8       19        1      active sync   /dev/sdb3

XXXXX@HomeFS:/etc$ sudo mdadm -D /dev/md2 | grep "\/dev\/\|level\|Size\|Raid Devices"
/dev/md2:
     Array Size : 2847121216 (2715.23 GiB 2915.45 GB)
  Used Dev Size : 2847121216 (2715.23 GiB 2915.45 GB)
   Raid Devices : 2
       0       8        4        0      active sync   /dev/sda4
       1       8       20        1      active sync   /dev/sdb4

Any help is appreciated!!

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.