zac_haryy
March 31st, 2009, 06:45 PM
I am having this problem with my RAID 5 setup and really need some help here. I setup my RAID 5 server using this guide: http://bfish.xaedalus.net/?p=188. All went well with that about 1 year ago. I installed 4 - 1TB hdd's in my server. Then I wanted to add double the amount after the price of the 1TB hdd's went down. I have 8 - 1TB hdd's in my server right now and they are all in the array but I can only use 4.13TB of that 8TB (which if I could get it going right I would be able to use 7TB with RAID5). So To grow the array I used this guide: http://scotgate.org/2006/07/03/growing-a-raid5-array-mdadm/ This is where I ran into problems. When I went to run this command "resize2fs /dev/md0" I would get an error after about an hour of resize2fs running. This is the error:
resize2fs: Memory allocation failed while trying to resize /dev/md0
So trying to find people with this same issue was pretty hard to do. I found a person on this forum with the same problem here: http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-09/msg01430.html Basically what I learnt from this site was this quote from there
However, there is one last issue. The resize2fs tool does not want
to grow the file system beyond 4.3TB. I was able to run:
# resize2fs /dev/array2/rd2 4300G
So then I ran the command "resize2fs /dev/md0 4300G" and I able to get the array to 4.13TB but the problem is I want it bigger so that I can actually use all the 7TB of data that I should be able to store data on. I have been stuck on this for about 5 months now and have gotten nowhere at all with it. I had thought about just making two different RAID 5 arrays with the size varying between the two but then I would have to sets of RAID 5 arrays with two spare disks instead of one. I would rather just have it be one big array so that I can add multiple spares for more protection. If anybody can point me in any direction that would be great I would really like to get this up and running! Thanks!
-haryy
resize2fs: Memory allocation failed while trying to resize /dev/md0
So trying to find people with this same issue was pretty hard to do. I found a person on this forum with the same problem here: http://linux.derkeiler.com/Mailing-Lists/SuSE/2008-09/msg01430.html Basically what I learnt from this site was this quote from there
However, there is one last issue. The resize2fs tool does not want
to grow the file system beyond 4.3TB. I was able to run:
# resize2fs /dev/array2/rd2 4300G
So then I ran the command "resize2fs /dev/md0 4300G" and I able to get the array to 4.13TB but the problem is I want it bigger so that I can actually use all the 7TB of data that I should be able to store data on. I have been stuck on this for about 5 months now and have gotten nowhere at all with it. I had thought about just making two different RAID 5 arrays with the size varying between the two but then I would have to sets of RAID 5 arrays with two spare disks instead of one. I would rather just have it be one big array so that I can add multiple spares for more protection. If anybody can point me in any direction that would be great I would really like to get this up and running! Thanks!
-haryy