A server having 2 disks, but running on single disk (history..) which has alsready some bad SMART values...
So, I've changed the server "on the fly" to a raid-1 (you can do it without loosing data, what would be quite bad :)
Beside the nice howto's on the net, here "the dark side":
- the server had LILO -- so switching that to Grub for more-easyness.
(on debian-etch, the update-grub creates a WRONG file (pointing allways to (hd0,0) as root-device, even if this is in my case the swap device...
- e2fsck.. the disk wasn't checked for very long time -- so it will at next boot. (which is maybe bad, when you want to check if the fiddle-with-the grub to boot from MD device will work; it may take hours? so doing it once before you touch the working system )
- for copy of sda to the created md device (a raid 1 with a non-filled disk) rsync is cool. it will give you several trys. (doing first the "big" data-move, then only deltas are transfered.)
I had to exclude some caching-directory to avoid that several-million-few-byte files. (they will regenerate themself later)
- grub.. its-a-trap. fiddling with the (hd1,0) (this is /dev/sdb1 ) is always a pain.
helpful for chroot:
===================
mount -o bind /dev /mnt/root/dev
mount -t proc none /mnt/root/proc
mount -t sysfs none /mnt/root/sysfs
So, I've changed the server "on the fly" to a raid-1 (you can do it without loosing data, what would be quite bad :)
Beside the nice howto's on the net, here "the dark side":
- the server had LILO -- so switching that to Grub for more-easyness.
(on debian-etch, the update-grub creates a WRONG file (pointing allways to (hd0,0) as root-device, even if this is in my case the swap device...
- e2fsck.. the disk wasn't checked for very long time -- so it will at next boot. (which is maybe bad, when you want to check if the fiddle-with-the grub to boot from MD device will work; it may take hours? so doing it once before you touch the working system )
- for copy of sda to the created md device (a raid 1 with a non-filled disk) rsync is cool. it will give you several trys. (doing first the "big" data-move, then only deltas are transfered.)
I had to exclude some caching-directory to avoid that several-million-few-byte files. (they will regenerate themself later)
- grub.. its-a-trap. fiddling with the (hd1,0) (this is /dev/sdb1 ) is always a pain.
helpful for chroot:
===================
mount -o bind /dev /mnt/root/dev
mount -t proc none /mnt/root/proc
mount -t sysfs none /mnt/root/sysfs
Leave a comment
