wiki:BaseDeDatos

Version 7 (modified by adv, 16 years ago) (diff)

--

Integración temporal de EAC en HIDRA.

  • Las tablas de EAC se incluirán en la base de datos de Hidra.
  • El usuario usado por el modulo EAC es usuhidra.

las tablas EAC que no tienen similitud en Hidra son:

tareas_servidor(comando, parametros, descripcion, ip, id_proceso, finalizado)

  • PRIMARY KEY (comando,parametros,ip)
  • ENGINE=MEMORY
  • DESCRIPCION: Es tabla se usa para que el cliente que necesite solicitar un proceso en el servidor, la inserte en ella. El procedimiento EACserver (se renombrará a ogServer), se encarga de leer estas peticiones, si están autorizadas (SetDefaultBoot?, CreateTorrentFromImage?, EnvioMcast?, EnvioTorrent?) y si no estan autorizadas las elimina.
  • PRIMARY KEY (label)
  • ENGINE=InnoDB
  • DESCRIPCION: Esta tabla es el menu que mostrará a los clientes pxe. La función SetDefaultBoot?(label,IP), la usará para asignarla al cliente. NOTA: un menu está formado por un itemboot o varios. Normalmente un menuboot solo tiene un itemboot.
    INSERT INTO `menuboot` (`label`, `prompt`, `timeout`, `description`) VALUES ('1', 0, 10, 'mbr 1hd'),('11', 0, 10, '1hd 1partion'),('pxe', 0, 10, 'ogClient-pxe'),('ramfs', 1, 50, 'varios ramfs');
    

itemboot(label,kernel,append)

  • PRIMARY KEY (label)
  • ENGINE=InnoDB
  • DESCRIPCION: esta tabla recoge los elementos de arranque ya sean locales (discos duros) o remotos (clientes opengnsys o cualquier otro que queramos integrar)
    INSERT INTO `itemboot` (`label`, `kernel`, `append`) VALUES
    ('1', 'KERNEL syslinux/chain.c32', 'APPEND hd0'),
    ('1_localboot', 'LOCALBOOT 0', ' '),
    ('11', 'KERNEL syslinux/chain.c32', 'APPEND hd0 1'),
    
    ('ogClientNfs', 'KERNEL ogclients/ogClientNfs/netboot/vmlinuz-2.6.31-2-generic', 'APPEND root=/dev/nfs initrd=ogclients/ogClientNfs/netboot/initrd.img-2.6.31-2-generic nfsroot=repo_client:/opt/opengnsys/tftpboot/ogclients/ogClientNfs'),
    
    ('ogClientNfsUltraLight', 'KERNEL ogclients/ogClientNfsUltraLight/linux', 'APPEND initrd=ogclients/ogClientNfsUltraLight/initrd.gz'),
    
    ('ogClientRamfs', 'kernel ping-brutalix/kernel', 'append vga=normal devfs=nomount pxe ramdisk_size=33000 load_ramdisk=1 init=/linuxrc prompt_ramdisk=0 initrd=ping-brutalix/initrd.gz root=/dev/ram0 rw nolapic lba');
    
  • ENGINE=MyISAM
  • DESCRIPCION: tabla resultante de la relación muchos a muchos de las dos anteriores.
    INSERT INTO `menuboot_itemboot` (`labelmenu`, `labelitem`, `default`) VALUES
    ('0', '0', 0),
    ('11', '11', 0),
    ('ramfs', 'ogClientNfs', 0),
    ('1', '1', 1),
    ('pxe', 'ogClientNfs', 1),
    ('ramfs', 'ogClientNfsUltraLight', 0);