Migration to RAID1

Aus HS Syswiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 37: Zeile 37:
  
 
/etc/init.d/mysql start
 
/etc/init.d/mysql start
 +
 +
umount /mysql2
 +
 +
# Remove /mysql2 from /etc/fstab
 +
</pre>
 +
 +
== Change partition's system id ==
 +
 +
<pre>
 +
# 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
 
</pre>
 
</pre>

Version vom 9. Februar 2018, 14:27 Uhr

Check for Backup for this server on Backupserver!!!

Partition migration table

SWAPsda1md0
VARsda2md1
ROOTsda3md2
TMPsda5md3
HOMEsda6md4
MYSQLsdb7md5

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
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Navigation
Werkzeuge