Koozali.org: home of the SME Server

replacing HDD with bigger ones (80GB --> 250GB --> 1TB)

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
« 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!
« Last Edit: April 27, 2012, 12:55:06 PM by jader »
...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
« Reply #1 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
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline Jáder

  • *
  • 1,099
  • +0/-0
    • LinuxFacil
Re: replacing HDD with bigger ones (80GB --> 250GB --> 1TB)
« Reply #2 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?
...