Raid configuratie uitbreiden

Nogal een gedoe voor Elanor. Onderstaande benadering is gebaseerd op http://forum.qnap.com/viewtopic.php?t=55051. Het probleem lijkt hem te zitten in het unmount gedeelte…

  1. Unmount /dev/md0
  2. Check /dev/md0
  3. Bereid de uitbreiding voor
  4. Start de uitbreiding
Raid expansion
#Investigation
df /dev/md0                       #Check the size of the RAID
mdadm -D /dev/md0                 #Check the state of the RAID
#
#Unmount the RAID volume
cat /etc/mtab | grep /dev/md0     #Which filesystem (should be ext4)
/etc/init.d/services.sh stop      #Stop services
umount /dev/md0                   #Unmount the RAID volume
#
#Prepare for expansion
tune2fs -O ^has_journal /dev/md0  #Turn ext4 journaling off
e2fsck -f /dev/md0                #Check the filesystem, -f=force checking
#
#Execute expansion
mdadm --grow --size=max /dev/md0  #RAID voodoo (without this resize2fs said that there is nothing to do) with:
resize2fs /dev/md0                #Extend the RAID, this will take a while
e2fsck -n /dev/md0                #Recheck the filesystem, -n=make no changes
tune2fs -j /dev/md0               #Turn journaling back on
#
#Speed up regeneration
cat /proc/mdstat                  #See what's up
echo 500000 > /proc/sys/dev/raid/speed_limit_max
echo 100000 > /proc/sys/dev/raid/speed_limit_min
#
#And after all is done...
reboot                            

Unmount /dev/md0

http://unix.stackexchange.com/questions/15024/umount-device-is-busy-why

Bekijk wie het RAID gebruiken met lsof /dev/md0

Niet essentiele services stoppen:
/etc/init.d/shellinabox.sh stop
/etc/init.d/Symform.sh stop
/etc/init.d/CloudLink.sh stop
/etc/init.d/twonkymedia6.sh stop
/etc/init.d/twonkymedia.sh stop
/etc/init.d/ssots.sh stop         #Logitech media server
/etc/init.d/SpotWeb.sh stop
/etc/init.d/mariadb.sh stop
/etc/init.d/mysqld.sh stop
/etc/init.d/Optware.sh stop
/etc/init.d/Headphones.sh stop
/etc/init.d/CouchPotato2.sh stop
/etc/init.d/QDMS.sh stop           #Media streaming addon
/etc/init.d/QMediaService.sh stop
/etc/init.d/phpMyAdmin.sh stop
/etc/init.d/sabnzbd.sh stop
/etc/init.d/sickbeard.sh stop
/etc/init.d/btd.sh stop            #Download Station
En op het laatst
/etc/init.d/samba4.sh stop
/etc/init.d/Qthttpd.sh stop         #Web server
/etc/init.d/ldap_server.sh stop

http://download.qnap.com/Storage/tsd/utility/blkdevMonitor.sh

Stopt niet naar behoren
killall shellinaboxd
killall dhcpd
/share/Web/dokuwiki/data/pages/beheer/raid-configuratie-uitbreiden.txt · Laatst gewijzigd: 2016/02/06 21:58 door pieter
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5