Installation GENTOO + RAID sur VMWARE



Similar documents
Setup software RAID1 array on running CentOS 6.3 using mdadm. (Multiple Device Administrator) 1. Gather information about current system.

How To Set Up Software Raid In Linux (Amd64)

Installing Debian with SATA based RAID

Shared Storage Setup with System Automation

Ubuntu bit + 64 bit Server Software RAID Recovery and Troubleshooting.

Linux Software Raid. Aug Mark A. Davis

Cloning Complex Linux Servers

Backtrack 4 Bootable USB Thumb Drive with Full Disk Encryption

How To Manage Your Volume On Linux (Evms) On A Windows Box (Amd64) On A Raspberry Powerbook (Amd32) On An Ubuntu Box (Aes) On Linux

These application notes are intended to be a guide to implement features or extend the features of the Elastix IP PBX system.

Replacing a Laptop Hard Disk On Linux. Khalid Baheyeldin KWLUG, September 2015

TECHNICAL HOWTO. Imaging Linux systems with hardware changes. author:

Abstract. Microsoft Corporation Published: August 2009

Typing some stupidities in text files, databases or whatever, where does it fit? why does it fit there, and how do you access there?

RocketRAID 2640/2642 SAS Controller Ubuntu Linux Installation Guide

WES 9.2 DRIVE CONFIGURATION WORKSHEET

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

Using Linux mdadm Multipathing with Sun StorEdge Systems

Creating a Cray System Management Workstation (SMW) Bootable Backup Drive

w1r3 Network Documentation

How you configure Iscsi target using starwind free Nas software & configure Iscsi initiator on Oracle Linux 6.4

Navigating the Rescue Mode for Linux

USTM16 Linux System Administration

10 Red Hat Linux Tips and Tricks

Restoring a Suse Linux Enterprise Server 9 64 Bit on Dissimilar Hardware with CBMR for Linux 1.02

Linux Template Creation Guide. How to build your own Linux VM templates for deployment in Cloudturk.

RocketRAID 174x SATA Controller Ubuntu Linux Installation Guide

The Logical Volume Manager (LVM)

Advanced Linux System Administration on Red Hat

Intel Rapid Storage Technology enterprise (Intel RSTe) for Linux OS

How To Write A Backup On A Linux Computer (For A Non-Freebie)

System administration basics

Ubuntu Professional Training Course Overview (E-learning, Ubuntu LTS)

NATIONAL POPULATION REGISTER (NPR)

TimeIPS Server. IPS256T Virtual Machine. Installation Guide

Do it Yourself System Administration

Installing VMware Tools on Clearswift v4 Gateways

Backup and Restore of SAP Systems on Amazon Web Services Infrastructure

Support Notes for SUSE LINUX Enterprise Server 9 Service Pack 3 for the Intel Itanium 2 Processor Family

Configuring Linux to Enable Multipath I/O

Redundant Array of Inexpensive/Independent Disks. RAID 0 Disk striping (best I/O performance, no redundancy!)

Backup, Booten, RAID, LVM, Virtualization

BackTrack Hard Drive Installation

Using the Software RAID Functionality of Linux

Installing Windows 98 in Windows Virtual PC 7 (Windows Virtual PC)

Intel ESB2 SATA RAID Setup Guidelines

NI Real-Time Hypervisor for Windows

Unix System Administration

Make a Bootable USB Flash Drive from the Restored Edition of Hiren s Boot CD

UNIX - FILE SYSTEM BASICS

Installing and Configuring VMware Tools

ENTERPRISE LINUX SYSTEM ADMINISTRATION

Total Backup Recovery Server for Linux. User s Guide

Extended installation documentation

Higher National Unit specification: general information. Open Source Operating Systems: Advanced Server Administration

PA-5000 Series SSD Storage Options Configuring RAID and Disk Backup

Data storage, backup and restore

Intel Rapid Storage Technology (Intel RST) in Linux*

GL-250: Red Hat Linux Systems Administration. Course Outline. Course Length: 5 days

Intel ICH7R/ICH9R/ICH10R HostRAID Setup Guidelines

User manual Ver: 2.0. SATA Channel PCI RAID Card

Converting Linux and Windows Physical and Virtual Machines to Oracle VM Virtual Machines. An Oracle Technical White Paper December 2008

Resilient NAS by Design. Buffalo. A deployment guide to disaster recovery. Page 1

How to Restore a Linux Server Using Bare Metal Restore

LVM and Raid. Scott Gilliland

SATA1.5G/ATA133 RAID Controller Card RC215 User Manual

Buildroot for Vortex86EX (2016/04/20)

Root-on-LVM-on-RAID HOWTO

RH033 Red Hat Linux Essentials or equivalent experience with Red Hat Linux..

2. Boot using the Debian Net Install cd and when prompted to continue type "linux26", this will load the 2.6 kernel

Introduction to AIX 6L System Administration Course Summary

ASM_readme_6_10_18451.txt README.TXT

Abstract. Microsoft Corporation Published: November 2011

760 Veterans Circle, Warminster, PA Technical Proposal. Submitted by: ACT/Technico 760 Veterans Circle Warminster, PA

CBMR for Linux v6.2.2 User Guide

Linux System Administration on Red Hat

TELE 301 Lecture 7: Linux/Unix file

Embedded MegaRAID Software

Deploying a Virtual Machine (Instance) using a Template via CloudStack UI in v4.5.x (procedure valid until Oct 2015)

Table of Contents. Software-RAID-HOWTO

ThinkServer RD540 and RD640 Operating System Installation Guide

How To Run An Apa On An Amazon.Com

BrightStor ARCserve Backup for Linux

VMware Tools Configuration Utility User's Guide

RAID Software Suite for Linux

RedHat (RHEL) System Administration Course Summary

Implementing SAN & NAS with Linux by Mark Manoukian & Roy Koh

RSA Security Analytics Virtual Appliance Setup Guide

Support Notes for SUSE LINUX Enterprise Server 10 Service Pack 2 for HP Integrity Servers

LiveCD Howto (CentOS 4) - Step by step - 01/12/ Ver 1.1

JovianDSS Evaluation and Product Training. Presentation updated: October 2015

INSTALL ZENTYAL SERVER

Parallels Virtuozzo Containers 4.7 for Linux

NetVault : Backup. User s Guide for the VaultDR System Plugins

Transcription:

Installation GENTOO + RAID sur VMWARE Chargement modules modprobe raid0 modprobe raid1 modprobe dm-mod Partitionnement /dev/sdx1 ext2 32M /dev/sdx2 swap =RAM /dev/sdx3 ext3 reste du disque Pour supprimer un raid existant mdadm --manage --stop /dev/mdx mdadm --zero-superblock /dev/sdyz (si msg d erreur alors c est OK) mdadm --zero-superblock /dev/sdy puis suppression des partitions fdisk /dev/sda sfdisk -d /dev/sda sfdisk --force /dev/sdb (on duplique le partionnement) mknod /dev/md1 b 9 1 mknod /dev/md2 b 9 2 mknod /dev/md3 b 9 3 mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1 mdadm --create /dev/md2 --level=0 --raid-devices=2 /dev/sda2 /dev/sdb2 mdadm --create /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3 watch -n 60 cat /proc/mdstat mkfs.ext2 /dev/md1 mkfs.ext3 /dev/md3 mkswap /dev/md2 swapon -p 1 /dev/md2 swapon -v -s Installation des fichiers d installation mount /dev/md3 /mnt/gentoo mkdir /mnt/gentoo/boot mount /dev/md1 /mnt/gentoo/boot

date si besoin : date 030600162006 (Format : MMJJhhmmAAAA) cd /mnt/gentoo links http://www.gentoo.org/main/en/mirrors.xml tar xvjpf stage3-*.tar.bz2 Options de compilation nano -w /mnt/gentoo/etc/portage/make.conf CFLAGS="-march=native -O2 -pipe" (native = autodectect) MAKEOPTS="-j4" # nombre de cœur x2 mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf mirrorselect -i -r -o >> /mnt/gentoo/etc/portage/make.conf Installation du système de base de Gentoo cp -L /etc/resolv.conf /mnt/gentoo/etc/ mount -t proc none /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash env-update source /etc/profile export PS1="(chroot) $PS1" emerge-webrsync emerge --sync eselect profile list exemple : eselect profile set 2 ls /usr/share/zoneinfo cp /usr/share/zoneinfo/europe/paris /etc/localtime Configuration du noyau emerge gentoo-sources ls -l /usr/src/linux cd /usr/src/linux make menuconfig

[*] 64-bit kernel (leave blank for x86) General Setup ---> [*] Optimize very unlikely/likely branches Processor type and features ---> Processor Family (usually Core2/Newer Xeon) Device Drivers ---> Generic Driver Options [*] Maintain a devtmpfs filesystem to mount at /dev [*] Multiple devices driver support (RAID and LVM) ---> <*> RAID support [*] Autodetect RAID arrays during kernel boot <*> RAID-0 (striping) mode <*> RAID-1 (mirroring) mode <*> Device mapper support Misc Devices ---> [*] VMware Balloon Driver (manages memory between VM and host) [*] VMware VMCI Driver (Virtual Machine Communication Interface - low-latency access to host memory bus) SCSI device support ---> [*] SCSI low-level drivers ---> <*> VMware PVSCSI driver support (high throughput storage adapter) [*] Fusion MPT device support ---> <*> Fusion MPT ScsiHost drivers for SPI [*] Network device support ---> [*] Ethernet driver support ---> (disable every driver but this) [*] Intel Devices <*> (keep default intel) Graphics support ---> <*> Direct Rendering Manager <*> DRM driver for VMware Virtual GPU [*] Enable framebuffer console support under vmwgfx by default <*> Support for frame buffer devices File systems ---> (enable only those you anticipate using) <*> The Extended 4 (ext4) filesystem [*] Use ext4 for ext2/ext3 file systems [*] Ext4 POSIX ACL [*] Ext4 Security Label -*- Native language support ---> <*> NLS ISO 8859-15 (Latin 9; Western European Languages with Euro) Pseudo filesystems ---> [*] Tmpfs virtual memory file system support (former shm fs) [*] Tmpfs POSIX Access Control Lists make && make modules_install cp arch/x86_64/boot/bzimage /boot/kernel-3.x.y-gentoo emerge genkernel mdadm mdadm --examine --scan >> /etc/mdadm.conf nano /etc/mdadm.conf Editez et simplifiez exemple :

ARRAY /dev/md1 UUID=baebaec7:6d25ab9a:a9578716:3ff8487b ARRAY /dev/md2 UUID=f1c2304c:ab04bc3a:19d593b0:b7d7c179 ARRAY /dev/md3 UUID=0d3cce86:1e5a82a9:e53ae32f:9e7eea9d nano /etc/genkernel.conf MDADM="yes" MDADM_CONFIG="/etc/mdadm.conf" genkernel --mdadm --install initramfs ls /boot Configurer le système mkdir /mnt/cdrom nano -w /etc/fstab /dev/md1 /boot ext2 noauto,noatime 1 2 /dev/md3 / ext3 noatime 0 1 /dev/md2 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,user 0 0 nano -w /etc/conf.d/hostname HOSTNAME="nom_serveur" nano -w /etc/conf.d/net dns_domain="mynet67" config_enp2s0="192.168.223.1x/24" routes_enp2s0="default via 192.168.223.1" dns_servers="192.168.223.1" cd /etc/init.d ln -s net.lo net.enp2s0 rc-update add net.enp2s0 default nano -w /etc/hosts 127.0.0.1 localhost 192.168.223.1x SERVx.mynet67 SERVx passwd nano -w /etc/conf.d/keymaps keymap="fr" fix_euro="yes"

nano -w /etc/locale.gen fr_fr ISO-8859-1 fr_fr@euro ISO-8859-15 fr_fr.utf-8 UTF-8 fr_fr@euro.utf-8 UTF-8 locale-gen nano /etc/env.d/02locale LANG="fr_FR.UTF-8" LC_COLLATE="C" nano /etc/profile.d/alias.sh alias ll='ls -l' alias cp='cp -i' alias rm='rm -i' alias mv='mv -i' alias screen='screen -RD' env-update && source /etc/profile Installer les outils système emerge syslog-ng vixie-cron mlocate rc-update add syslog-ng default rc-update add vixie-cron default rc-update add sshd default Configurer le chargeur de démarrage emerge sys-boot/grub:2 grub2-install /dev/sda grub2-install /dev/sdb nano /etc/default/grub GRUB_CMDLINE_LINUX="domdadm" grub2-mkconfig -o /boot/grub/grub.cfg rm /stage3-*.tar.bz2* emerge gentoolkit

exit cd umount -l /mnt/gentoo/dev{/shm,/pts,} umount -l /mnt/gentoo{/boot,/proc,} reboot Réparation du RAID mdadm --zero-superblock /dev/sdbx mdadm a /dev/mdy /dev/sdbx cat /proc/mdstat (pour surveiller la reconstruction) Puis on réécrit le boot sur les deux partitions : grub2-install /dev/sda grub2-install /dev/sdb