Migration to RAID1
Aus HS Syswiki
Version vom 9. Februar 2018, 14:27 Uhr von 84.253.15.193 (Diskussion)
Check for Backup for this server on Backupserver!!!
Partition migration table
SWAP | sda1 | md0 |
VAR | sda2 | md1 |
ROOT | sda3 | md2 |
TMP | sda5 | md3 |
HOME | sda6 | md4 |
MYSQL | sdb7 | md5 |
Move MySQL to SDA
/etc/init.d/mysql stop # Kill by PID if fails rsync -avz --progress /mysql2/ /mysql1/ rm /home/www/mysql ln -s /mysql1 /home/www/mysql /etc/init.d/mysql start umount /mysql2 # Remove /mysql2 from /etc/fstab
Change partition's system id
# t --> change a partition's system id # p --> print (print and recheck before writing!!!) # w --> write fdisk /dev/sdb t 1 fd t 2 fd t 3 fd t 5 fd t 6 fd t 7 fd p w