Migration to RAID1

Aus HS Syswiki
Wechseln zu: Navigation, Suche
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