Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: Jáder on April 27, 2012, 12:52:34 PM

Title: replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
Post by: Jáder on April 27, 2012, 12:52:34 PM
I just did this so I'm writing here to document, get comments, register and later put on Wiki.

I installed a new SME8 in a small HDD (80GB), tested it, and later put a 250GB HDD in RAID1... so I need to tell SME how to replicate data.
That was easy because the admin menu has Manage Redundancy Disks.
So I had a RAID1 of 80GB (a 80GB + a 250GB)... and because it worked I bought two new 1TB HDDs.
Replace the 80G HDD with a 1TB disk and sync RAID1 to get a RAID1 with 80GB (a 1000GB+250GB)... and then I need to make RAID grow... found no information about how to do it on Wiki.
Here is what I did on SME8b7:

Code: [Select]
df -h
mdadm --grow /dev/md2 --size=max
pvresize /dev/md2
lvresize -l +100%FREE main/rootresize2fs /dev/main/root
resize2fs /dev/main/root
(wait RAID1 to grow)
df -h

And it worked.
So next day, after a few tests I replace the 250GB with another 1TB disk and repeat procedure.
Now I have a 1TB RAID1... with no data lost!
Title: Re: replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
Post by: janet on April 27, 2012, 01:17:42 PM
jader

Quote
..... found no information about how to do it on Wiki.

http://wiki.contribs.org/Raid#Upgrading_the_Hard_Drive_Size
Title: Re: replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
Post by: Jáder on April 27, 2012, 05:53:26 PM
jader

http://wiki.contribs.org/Raid#Upgrading_the_Hard_Drive_Size

oops... :$

But I'm sure last command do not work in SME8... it exist on SME7 but do not in v8.
Could I/you/we update wiki with this new command for v8?