使用给定内核配置 teuthology 目标

loic

当使用 teuthology-lock 配置 teuthology 目标(即机器)以用于测试 Ceph 时,无法选择内核。但可以使用以下方法稍后安装它

cat > kernel.yaml <<EOF interactive-on-error: true roles

    • mon.a
    • client.0 kernel: branch: testing tasks
  • interactive: EOF

假设要安装新内核的目标是 vpm083,则运行

$ teuthology --owner loic@dachary.org \ kernel.yaml <(teuthology-lock --list-targets vpm083) ... 2015-03-09 17:47 INFO:teuthology.task.internal:Starting timer... 2015-03-09 17:47 INFO:teuthology.run_tasks:Running task interactive... Ceph test interactive mode, use ctx to interact with the cluster

将安装一个替代内核并重新启动机器

[ubuntu@vpm083 ~]$ uname -a Linux vpm083 3.19.0-ceph-00029-gaf5b96e #1 SMP Thu Mar 5 01:04:25 GNU/Linux [ubuntu@vpm083 ~]$ lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch: Distributor ID: RedHatEnterpriseServer Description: release 6.5 (Santiago) Release: 6.5 Codename: Santiago

可以将内核的命令行参数添加到 /boot/grub/grub.conf。例如 loop.max_part=16,以允许在 /dev/loop 设备上创建分区

default=0 timeout=5 splashimage=(hd0,0)/boot/grub/splash.xpm.gz hiddenmenu title rhel-6.5-cloudinit (3.19.0-ceph-00029-gaf5b96e) root (hd0,0) kernel /boot/vmlinuz-3.19.0 ro root=LABEL=79d3d2d4 loop.max_part=16 initrd /boot/initramfs-3.19.0.img