Rescue OVH : Différence entre versions
De SME Server Wiki
(→un petit probleme de grub avec LVM) |
|||
(5 révisions intermédiaires par le même utilisateur non affichées) | |||
Ligne 28 : | Ligne 28 : | ||
cd /mnt/sda2 | cd /mnt/sda2 | ||
chroot /mnt/sda2 | chroot /mnt/sda2 | ||
+ | |||
+ | |||
+ | ==en raid avec LVM avec md1 en boot et md3 en partition root (md2 swap)== | ||
+ | |||
+ | |||
+ | mkdir /mnt/md1 | ||
+ | mkdir /mnt/md2 | ||
+ | |||
+ | |||
+ | mount /dev/md1 /mnt/md1 | ||
+ | |||
+ | vgchange -ay main | ||
+ | mount /dev/main/root /mnt/md2 | ||
+ | |||
+ | mount -o bind /proc /mnt/md2/proc | ||
+ | mount -o bind /dev /mnt/md2/dev | ||
+ | mount -o bind /sys/ /mnt/md2/sys | ||
+ | mount /dev/md1 /mnt/md2/boot | ||
+ | cd /mnt/md2 | ||
+ | chroot /mnt/md2 | ||
+ | |||
+ | |||
== un petit rsync ? == | == un petit rsync ? == | ||
Ligne 35 : | Ligne 57 : | ||
cd /media/slash | cd /media/slash | ||
rsync -auvz * root@91.121.IP.IP:/mnt/sda2 --bwlimit=100 | rsync -auvz * root@91.121.IP.IP:/mnt/sda2 --bwlimit=100 | ||
+ | |||
+ | == un petit probleme de grub avec LVM == | ||
+ | |||
+ | |||
+ | grub | ||
+ | |||
+ | grub> find /grub/stage1 | ||
+ | find /grub/stage1 | ||
+ | (hd0,0) | ||
+ | grub> device (hd0) /dev/sda | ||
+ | device (hd0) /dev/sda | ||
+ | grub> root (hd0,0) | ||
+ | root (hd0,0) | ||
+ | Filesystem type is ext2fs, partition type 0xfd | ||
+ | grub> setup (hd0) | ||
+ | setup (hd0) | ||
+ | Checking if "/boot/grub/stage1" exists... no | ||
+ | Checking if "/grub/stage1" exists... yes | ||
+ | Checking if "/grub/stage2" exists... yes | ||
+ | Checking if "/grub/e2fs_stage1_5" exists... yes | ||
+ | Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. | ||
+ | succeeded | ||
+ | Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded | ||
+ | Done. | ||
+ | grub>quit | ||
+ | quit | ||
+ | # | ||
+ | |||
+ | == lancer RAID == | ||
+ | mdadm --create /dev/md1 --level=mirror --raid-devices=2 /dev/sda1 missing --metadata=0.90 | ||
+ | |||
+ | mdadm --create /dev/md3 --level=mirror --raid-devices=2 /dev/sda3 missing --metadata=0.90 | ||
+ | |||
+ | mdadm --create /dev/md2 --level=mirror --raid-devices=2 /dev/sda2 missing --metadata=0.90 |
Version actuelle en date du 12 mai 2013 à 18:19
Sommaire
en raid sans LVM avec md1 en boot et md3 en partition root (md2 swap)
mkdir /mnt/md1 mkdir /mnt/md3 mount /dev/md1 /mnt/md1 mount /dev/md3 /mnt/md3
mount -o bind /proc /mnt/md3/proc mount -o bind /dev /mnt/md3/dev mount -o bind /sys/ /mnt/md3/sys mount /dev/md1 /mnt/md3/boot cd /mnt/md3 chroot /mnt/md3
sans raid sans LVM
mkdir /mnt/sda1 mkdir /mnt/sda2 mount /dev/sda1 /mnt/sda1 mount /dev/sda2 /mnt/sda2
mount -o bind /proc /mnt/sda2/proc mount -o bind /dev /mnt/sda2/dev mount -o bind /sys/ /mnt/sda2/sys mount /dev/sda1 /mnt/sda2/boot cd /mnt/sda2 chroot /mnt/sda2
en raid avec LVM avec md1 en boot et md3 en partition root (md2 swap)
mkdir /mnt/md1 mkdir /mnt/md2
mount /dev/md1 /mnt/md1
vgchange -ay main mount /dev/main/root /mnt/md2
mount -o bind /proc /mnt/md2/proc mount -o bind /dev /mnt/md2/dev mount -o bind /sys/ /mnt/md2/sys mount /dev/md1 /mnt/md2/boot cd /mnt/md2 chroot /mnt/md2
un petit rsync ?
cd /media/boot rsync -auvz * root@91.121.IP.IP:/mnt/sda1 --bwlimit=100 cd /media/slash rsync -auvz * root@91.121.IP.IP:/mnt/sda2 --bwlimit=100
un petit probleme de grub avec LVM
grub
grub> find /grub/stage1 find /grub/stage1 (hd0,0) grub> device (hd0) /dev/sda device (hd0) /dev/sda grub> root (hd0,0) root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd0) setup (hd0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... yes Checking if "/grub/stage2" exists... yes Checking if "/grub/e2fs_stage1_5" exists... yes Running "embed /grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. succeeded Running "install /grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded Done. grub>quit quit #
lancer RAID
mdadm --create /dev/md1 --level=mirror --raid-devices=2 /dev/sda1 missing --metadata=0.90
mdadm --create /dev/md3 --level=mirror --raid-devices=2 /dev/sda3 missing --metadata=0.90
mdadm --create /dev/md2 --level=mirror --raid-devices=2 /dev/sda2 missing --metadata=0.90