Changes

From SME Server
Jump to navigationJump to search
706 bytes added ,  01:41, 16 December 2012
no edit summary
Line 34: Line 34:  
# Boot up login to admin panel and add sdb to the array, and wait for raid to fully sync.
 
# Boot up login to admin panel and add sdb to the array, and wait for raid to fully sync.
 
# Reboot with both drives in place, and check RAID health is OK.
 
# Reboot with both drives in place, and check RAID health is OK.
 +
 +
 +
mdadm --grow /dev/md2 --size=max
 +
pvresize /dev/md2
 +
lvresize -l +100%FREE main/root
 +
ext2online -C0 /dev/main/root 
 +
 +
In the last command above, the -C0 is: dash C zero
 +
 +
If you receive an  "command not found" error,  try this:
 +
resize2fs /dev/mapper/main-root &
 +
 +
TIP: I put an "&" at end to allow it to run in background even if I close ssh session.
 +
 +
 +
Notes : 
 +
* All of this can be done while the server is up and running with the exception of #1.
 +
* These instructions should work for any raid level you have as long as you have >= 2 drives
 +
* If you have disabled lvm 
 +
# you don't need the pvresize or lvresize command
 +
# the final line becomes ext2online -C0 /dev/md2 (or whatever / is mounted to)

Navigation menu