doc:appunti:linux:sa:install
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| doc:appunti:linux:sa:install [2008/09/06 14:06] – external edit 127.0.0.1 | doc:appunti:linux:sa:install [2014/04/04 17:11] (current) – [Sistemare /etc/mdadm/mdadm.conf] niccolo | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| < | < | ||
| mount /dev/md0 /mnt/md0 | mount /dev/md0 /mnt/md0 | ||
| - | mount -t proc proc / | + | # |
| + | # Check for existing virtual fs and remount them into the chroot: | ||
| + | mount -o bind /proc / | ||
| + | mount -o bind /dev / | ||
| + | mount -o bind /dev/shm / | ||
| + | mount -o bind /dev/pts / | ||
| + | # | ||
| chroot /mnt/md0 /bin/bash | chroot /mnt/md0 /bin/bash | ||
| export LC_ALL=C | export LC_ALL=C | ||
| Line 57: | Line 63: | ||
| dpkg-reconfigure locales | dpkg-reconfigure locales | ||
| dpkg-reconfigure tzdata | dpkg-reconfigure tzdata | ||
| - | dpkg-reconfigure console-data | + | |
| + | # If using Linux raid: | ||
| + | apt-get install mdadm | ||
| + | |||
| + | # Configure console keyboard: | ||
| + | # For Debian Lenny: | ||
| + | #dpkg-reconfigure console-data | ||
| + | # For Debian Squeeze: | ||
| + | dpkg-reconfigure keyboard-configuration | ||
| + | dpkg-reconfigure console-setup | ||
| dpkg-reconfigure debconf | dpkg-reconfigure debconf | ||
| dpkg-reconfigure passwd | dpkg-reconfigure passwd | ||
| Line 68: | Line 84: | ||
| </ | </ | ||
| - | L' | + | L' |
| * / | * / | ||
| Line 75: | Line 91: | ||
| * / | * / | ||
| + | ===== GRUB ===== | ||
| + | |||
| + | La procedura per installare il boot loader è diversa a seconda che si usi GRUB legacy oppure GRUB2. Cambia anche lo schema di numerazione delle partizioni (in GRUB2 inizia da 1). Vedere la pagina [[..: | ||
| + | |||
| + | ===== Sistemare / | ||
| + | |||
| + | Dopo aver pasticciato con l' | ||
| + | |||
| + | **ATTENZIONE** lo UUID dei dischi RAID è quello mostrato da: | ||
| + | |||
| + | < | ||
| + | mdadm --detail /dev/md0 | ||
| + | </ | ||
| + | |||
| + | non quello che si vede in ''/ | ||
| + | |||
| + | Eventualmente eseguire: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | che genera a video un nuovo file di configurazione. | ||
| + | |||
| + | Il numero (indice) assegnato al volume raid dipende anche dal **nome** che ha il volume stesso (verificarlo con **'' | ||
| + | |||
| + | < | ||
| + | ARRAY /dev/md/9 metadata=1.2 UUID=d37e6c4c: | ||
| + | </ | ||
| + | |||
| + | Per far assemblare il volume con un diverso numero di indice è possibile modificare la parte **''/ | ||
| + | |||
| + | < | ||
| + | mdadm --assemble /dev/md4 --update=name --name=grml: | ||
| + | </ | ||
| + | |||
| + | Dopo aver aggiornato il contenuto del file, si deve aggiornare anche '' | ||
| + | |||
| + | < | ||
| + | update-initramfs -u -k all | ||
| + | </ | ||
doc/appunti/linux/sa/install.1220702787.txt.gz · Last modified: (external edit)
