<div class="gmail_quote">2009/4/25 dnk <span dir="ltr"><<a href="mailto:d.k.emaillists@gmail.com">d.k.emaillists@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there, I have a system with the following:<br>
</blockquote><div><snip> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Disk /dev/md0: 1000.2 GB, 1000202174464 bytes<br>
2 heads, 4 sectors/track, 244189984 cylinders<br>
Units = cylinders of 8 * 512 = 4096 bytes<br>
<br>
Disk /dev/md0 doesn't contain a valid partition table<br>
<br>
<br>
Now I just added a new hard drive (sdc).<br>
<br>
I was wondering how to go about (if possible) to add this drive to my<br>
existing partitions with LVM.<br>
<br>
Now I never setup this system (Another person had), and if i am<br>
reading the above right, it appears as though they did not use LVM for<br>
the raid.<br>
<br>
The system has the OS on a standalone drive, the home folder is on the<br>
two raided drives. I was hoping to extend my home folder to take<br>
advantage of my new drive.<br>
<br>
Recommendations?<br>
</blockquote><div><br>It should be possible to extend your raid1 to a third drive pretty easily which would give you an extra 500GB of space...<br><br>You'll probably want to look at mdadm using grow to take the array up to 3 drives and manage to add the new disk and once you're done extending the array, you'll likely want to look at resize2fs to extend the filesystem to use the extra space...<br>
<br>If you wanted to get a whole extra TB of space rather than just 500GB, it would be a bit more complex, the simplest solution I can think of right now would be something along the lines of backing up the existing home folder to the new drive, destroying the existing array then creating a new degraded raid5 array across the two old disks, restoring the home folder back to the new array before adding the new disk into the array...<br>
<br>Of course... backups recommended before doing this...<br><br>d<br></div></div>