lost and found ( for me ? )

Fedora 16 : bootchart ( visualize boot sequences )

bootchart visualizes boot sequences.

[ install ]



# cat /etc/fedora-release
Fedora release 16 (Verne)

# uname -ri
3.2.7-1.fc16.x86_64 x86_64

You can install it via yum
# yum search bootchart

bootchart and bootchart-daemon packages will be installed.
# rpm -ql bootchart-daemon
/etc/bootchartd.conf
/etc/dracut.conf.d/bootchartd.conf
/lib/bootchart
/lib/bootchart/bootchart-collector
/lib/bootchart/tmpfs
/lib/systemd/system/bootchart-done.service
/lib/systemd/system/bootchart-done.timer
/lib/systemd/system/bootchart.service
/sbin/bootchartd
<snip>


[ how to use ]

- configuration file

/etc/bootchart.conf ( no need to edit )
# Tarball for the various boot log files
BOOTLOG_DEST=/var/log/bootchart.tgz

# Whether to automatically generate the boot chart once the boot logger
# completes.  The boot chart will be generated in $AUTO_RENDER_DIR.
# Note that the bootchart package must be installed.
AUTO_RENDER="yes"

# Image format to use for the auto-generated boot chart
# (choose between png, svg and eps).
AUTO_RENDER_FORMAT="png"

# Output directory for auto-generated boot charts
AUTO_RENDER_DIR="/var/log"

- edit grub.cfg

add writable permission
[root@fc16 ~]# chmod u+w /boot/grub2/grub.cfg

add “init=/sbin/bootchard” in grub.cfg
    39 menuentry 'Fedora Linux, with bootchartd' --class fedora --class gnu-lin     39 ux --class gnu --class os {
    40         load_video
    41         set gfxpayload=keep
    42         insmod gzio
    43         insmod part_msdos
    44         insmod btrfs
    45         set root='(hd0,msdos3)'
    46         search --no-floppy --fs-uuid --set=root 61b367fb-2790-407f-a071-     
    46 262e8b857fb9
    47         echo    'Loading Linux 3.2.7-1.fc16.x86_64 ...'
    48         linux   /boot/vmlinuz-3.2.7-1.fc16.x86_64 root=UUID=61b367fb-279     
    48 0-407f-a071-262e8b857fb9 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet rhgb rd.luks=     
    48 0 LANG=ja_JP.UTF-8  KEYTABLE=jp106 reboot=b,a init=/sbin/bootchartd
    49         echo    'Loading initial ramdisk ...'
    50         initrd  /boot/initramfs-3.2.7-1.fc16.x86_64.img
    51 }

I added the new boot lines for bootchartd.
please take care of editing grub.cfg.

reboot the OS
# reboot

check the boot options.
# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.2.7-1.fc16.x86_64 root=UUID=61b367fb-2790-407f-a071-262e8b857fb9 ro rd.md=0 rd.lvm=0 rd.dm=0 quiet rhgb rd.luks=0 LANG=ja_JP.UTF-8 KEYTABLE=jp106 reboot=b,a init=/sbin/bootchartd

bootchard logs are stored under /var/log directory.
[root@fc16 ~]# ls /var/log/bootchart.*
/var/log/bootchart.png  /var/log/bootchart.tgz

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.