Bienvenido a   :: LINUX SOLUTIONS CENTER ::

México,  Viernes 21 de Noviembre del 2008   
  Hora Local
Home Manuales Backup procedure with mkcdrec (through NFS)
LINUX es nuestra Especialidad: · Servidores de Internet · Monitoreo de Servidores y Enlaces · Virtualizacion · Firewalls con OpenSource · Proxy Servers (Web Cache) · DNS y DHCP · Web Server · Webmail · NAT's · IP Forwarding · FTP Server · Email Attachmnt Filtering · Reportes estadisticos · Linux Gateway/Router · Bloqueo de Puertos · Email Server · Reporte de todo el trafico interno/externo · Administracion de Ancho de banda · VPN's con Open VPN · Soporte Ténico comercial · Administración de servidores Linux (RedHat EL/AS, Debian, CentOs, etc) · Instalación y Configuración de Servidores · Configuración de servidores de E-Mail (Sendmail, Qmail, Postfix con virtual domains) · Antvirus con OpenSource · Administración de LVM · y mas... mucho mas
Linux Solutions C.
Acerca de
Actualidad
GNU/Linux
Gente en Línea
Tenemos 49 invitados conectado
Estadísticas
Ver contenido por hits : 192201
Acceso



Google Translation

 
Temas Relacionados

GULEV | Software Libre


Banner Advertisement
Backup procedure with mkcdrec (through NFS) PDF Imprimir E-mail
Manuales
Escrito por Gusvenom   
Jueves, 03 de Abril de 2008 18:37

1.1 mkcdrec installation

1. Connect through SSH on the Linux machine to upgrade

2. Login with root privilege

3. En SSH copy mkCDrec_v0.8.2.tar.gz file to its own home directory (ex : /home/ie84948 with my account)

4. #cd /opt

5. #tar zxvf /home/mkCDrec_0.8.2.tar.gz (create a mkcdrec directory into /opt and untar mkcdrec files)

6. #mkdir /opt/mkcdrec/ISOFS_DIR

7. #mkdir /opt/mkcdrec/CDREC_ISO_DIR

8. Type the following command to verify packages requirements : #make test

9. If all packages are there, you must have something like this (all tests passed) :

make test output of mkCDrec v0.8.2

Test 1: Are we root? Passed

Test 2: missing executables needed by mkCDrec Passed

Test 3: Filesystem for Initial ramdisk allowed? Passed

Test 4: loopback device works? Passed

Test 5: ram device available Passed

Test 6: romfs supported by the kernel? N/A

Test 7: cramfs supported by the kernel? N/A

Test 8: strip (from binutils) available? Passed

Test 9: BOOT_FLOPPY_DENSITY=ED ok? Passed

Test 10: cdrecord -scanbus N/A

Test 11: Header files present? Passed

Test 12: DEVFS supported by kernel? N/A

Test 13: filesystem tools present?

ext2: Passed

ext3: Passed

Test 14: initrd must be compiled in kernel! Passed

Test 15: Amount of memory available 513 Mb

Test 16: scripts/Config.sh a link? Passed

Test 17: serial console N/A

Test 18: supported architecture? Passed

Test 19: is RAMDISK_SIZE=64 big enough? Passed

make[1]: Leaving directory `/opt/mkcdrec'

10. Otherwise, if packages are required, we could read something like this :

gcc Not found

mkisofs Not found

cdrecord Not found

In this case, install the missing packages in this sequence to respect dependencies:

#rpm -ivh cdrecord-xxx.rpm

#rpm -ivh mkisofs-xxx.rpm

#rpm -ivh cpp-xxx.rpm

#rpm -ivh glibc-kernheaders-xxx.rpm

#rpm -ivh glibc-headers-xxx.rpm

#rpm -ivh glibc-devel-xxx.rpm

#rpm -ivh gcc-xxx.rpm

11. If all tests are passed, configure /opt/mkcdrec/Config.sh file by modifying the following lines :

ISOFS_DIR=/opt/mkcdrec/ISOFS_DIR

CDREC_ISO_DIR=/opt/mkcdrec/CDREC_ISO_DIR

EXCLUDE_LIST="/opt/mkcdrec/ISOFS_DIR/*

/opt/mkcdrec/CDREC_ISO_DIR/*

/proc/*

/mnt/*"

12. Verify that permission mask on /opt/mkcdrec/Config.sh are well 755

1.2 Backup the system

To launch the backup (creation of disaster recovery ISO files) ,type :

#cd /opt/mkcdrec

#make CD-ROM

Remarks :

· MkCDrec supports ext2, ext3, minix, xfs , jfs, reiserfs file systems, LVM, hardware and software RAID (multiple devices)

· The backup procedure via NFS session may last a long time (several hours according the total size to backup and the bandwith of network). So we recommend to start the backup procedure long time before the upgrade procedure

· Let’s assume, there is enough free space on the NFS target drive (in our example : /mnt/nfs/server-name directory)

· Do a "tail -f /opt/mkcdrec/tmp/xxxx_.log" to see backup progress

1.3 Verification

When mkCDrec has finished making the disaster recovey CD-ROM, it implants a checksum into the ISO9660 image. To check the integrity of the ISO9660 image or CD-ROM use the following command (build in mediacheck/ directory):

# checkisomd5 CDrec.iso

Read 0 MB

8852a5d88200444987f429bc527a8010

8852a5d88200444987f429bc527a8010

Md5sums match

1.4 Restore procedure

1. Create the recovery CD-ROM by burning the ISO files (see next section for instructions)

2. Boot from the CD #1 (so, eventually change your boot sequence in Bios to boot from CD-ROM first)

3. Start the recovery:
# cd /etc/recovery
# ./start-restore.sh
(restoration from scratch)
Press Enter to continue with ./start-restore.sh, or Crtl-C to quit : type <Enter>
Do you want to restore disk (ex:/dev/had) ? type <Yes>
Are you ready to reformat (ex:/dev/had) ? type <Yes>

4. when the restoration is finished, reboot your system on disk

1.5 Instruction to burn a CD from Linux

The ISO files created by mkCDRec can be burned on any CD recorder using any software, but since our repository server is running on Linux and there is a CD burner right there, the best thing is to use it to burn recovery CDs, here's the instruction.

1. Find out the device address of the CD recorder:
# cdrecord -scanbus
You will see a result like this:
scsibus0:
0,0,0 0) 'MATSHITA' 'UJDA745 DVD/CDRW' '1.03' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *

2. Then, run this command to burn a CD:
# cdrecord -v -eject speed=4 dev=0,0,0 path-to-ISO-file

Actualizado ( Martes, 08 de Abril de 2008 18:48 )
 


LSC Support Online
SysOp
Tech Support
Encuestas
¿Cuál es tu navegador favorito?
 
Anunciate aquí

Centro de Soluciones Linux

KoalaSoft-Sitio de Amigos

ODM SYSTEM MEXICO

No. de Visitas
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterHoy428
mod_vvisit_counterAyer636
mod_vvisit_counterEsta Semana2575
mod_vvisit_counterEste Mes9213
mod_vvisit_counterTotal76919
Linuxsc en RSS
Archivo Historico

Ultimo Reporte