<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Parse error at byte 12 (line 1): unexpected token - on boot after kernel upgrade in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263962#M52750</link>
    <description>Good morning,&lt;BR /&gt;&lt;BR /&gt;After applying a kernel upgrade from 2.6.18-194.el5 to 2.6.18-194.26.1.el5, booting results in in the following error:&lt;BR /&gt;&lt;BR /&gt;Activating logical volumes&lt;BR /&gt;  Parse error at byte 12 (line 1): unexpected token&lt;BR /&gt;  Failed to load config file /etc/lvm/lvm.conf&lt;BR /&gt;  Internal error: _vginfos list should be empty&lt;BR /&gt;&lt;BR /&gt;From all accounts, it looks like an LVM problem, but I'm not sure it is. Dropping back to the kernel 2.6.18-194.el5, the host boots fine.&lt;BR /&gt;&lt;BR /&gt;I also thought it might be an issue with changes applied to the lvm.conf, so I put the default (.rpmnew) back in place. No joy as well.&lt;BR /&gt;&lt;BR /&gt;The closest reference article I've found is about recovering the volume entirely: &lt;A href="http://linux-prof.homelinux.org/index.php/Lvm_recovery2" target="_blank"&gt;http://linux-prof.homelinux.org/index.php/Lvm_recovery2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But again, I don't really believe this is necessary, as it seems to be kernel related.&lt;BR /&gt;&lt;BR /&gt;Is there a workaround, or patch that should be applied? Perhaps an upgrade of the lvm components or something on the lvols prior to the kernel being applied?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Don</description>
    <pubDate>Tue, 23 Nov 2010 14:50:25 GMT</pubDate>
    <dc:creator>Don Mallory</dc:creator>
    <dc:date>2010-11-23T14:50:25Z</dc:date>
    <item>
      <title>Parse error at byte 12 (line 1): unexpected token - on boot after kernel upgrade</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263962#M52750</link>
      <description>Good morning,&lt;BR /&gt;&lt;BR /&gt;After applying a kernel upgrade from 2.6.18-194.el5 to 2.6.18-194.26.1.el5, booting results in in the following error:&lt;BR /&gt;&lt;BR /&gt;Activating logical volumes&lt;BR /&gt;  Parse error at byte 12 (line 1): unexpected token&lt;BR /&gt;  Failed to load config file /etc/lvm/lvm.conf&lt;BR /&gt;  Internal error: _vginfos list should be empty&lt;BR /&gt;&lt;BR /&gt;From all accounts, it looks like an LVM problem, but I'm not sure it is. Dropping back to the kernel 2.6.18-194.el5, the host boots fine.&lt;BR /&gt;&lt;BR /&gt;I also thought it might be an issue with changes applied to the lvm.conf, so I put the default (.rpmnew) back in place. No joy as well.&lt;BR /&gt;&lt;BR /&gt;The closest reference article I've found is about recovering the volume entirely: &lt;A href="http://linux-prof.homelinux.org/index.php/Lvm_recovery2" target="_blank"&gt;http://linux-prof.homelinux.org/index.php/Lvm_recovery2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;But again, I don't really believe this is necessary, as it seems to be kernel related.&lt;BR /&gt;&lt;BR /&gt;Is there a workaround, or patch that should be applied? Perhaps an upgrade of the lvm components or something on the lvols prior to the kernel being applied?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Don</description>
      <pubDate>Tue, 23 Nov 2010 14:50:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263962#M52750</guid>
      <dc:creator>Don Mallory</dc:creator>
      <dc:date>2010-11-23T14:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parse error at byte 12 (line 1): unexpected token - on boot after kernel upgrade</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263963#M52751</link>
      <description>The kernel does not parse /etc/lvm/lvm.conf: an user-space LVM utility does that.&lt;BR /&gt;&lt;BR /&gt;The "Activating logical volumes" step can occur in at least two times in the boot sequence:&lt;BR /&gt;1.) if your root filesystem is on LVM, before mounting the root filesystem&lt;BR /&gt;2.) if you have iSCSI disks, after networking and iSCSI have been activated.&lt;BR /&gt;&lt;BR /&gt;If the error happens at step 1), your system startup is managed by initrd at that point.&lt;BR /&gt;&lt;BR /&gt;When a new kernel is installed, a new initrd file is created by the kernel package installation scripts. The initrd file will contain copies of certain essential utilities and configuration files - as they exist at the initrd creation time.&lt;BR /&gt;&lt;BR /&gt;The /etc/lvm/lvm.conf is definitely included in the initrd file. Did you re-create your initrd after returning to the default lvm.conf? If you didn't, the initrd of the new kernel will still be using the old lvm.conf file. &lt;BR /&gt;&lt;BR /&gt;(Your older kernel might be using an even older version of lvm.conf and avoid the error because of that.)&lt;BR /&gt;&lt;BR /&gt;See "man mkinitrd" for examples on re-creating your initrd file.&lt;BR /&gt;&lt;BR /&gt;In cases like this, it might be helpful to extract the contents of the existing initrd file to "dissect" it. Here's the procedure for that:&lt;BR /&gt;&lt;BR /&gt;mkdir /tmp/work_directory&lt;BR /&gt;cd /tmp/work_directory&lt;BR /&gt;zcat /boot/initrd-&lt;VERSION&gt; | cpio -iv&lt;BR /&gt;&lt;BR /&gt;Within a RHEL 5 initrd, "/init" is a script, run by a stripped-down shell named "nash".&lt;BR /&gt;&lt;BR /&gt;After extracting the initrd of the faulty kernel, check the contents of /tmp/work_directory/etc/lvm/lvm.conf. Pay special attention to the first line of that file: according to the error message, that's where the problem is.&lt;BR /&gt;&lt;BR /&gt;MK&lt;/VERSION&gt;</description>
      <pubDate>Tue, 23 Nov 2010 17:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263963#M52751</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-11-23T17:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Parse error at byte 12 (line 1): unexpected token - on boot after kernel upgrade</title>
      <link>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263964#M52752</link>
      <description>Thank you very much. This showed that the lvm.conf contents were listed as:&lt;BR /&gt;&lt;BR /&gt;dumpconfig -- devices {&lt;BR /&gt;dumpconfig -- dir="/dev"&lt;BR /&gt;dumpconfig -- scan="/dev"&lt;BR /&gt;dumpconfig -- filter="a/.*/"&lt;BR /&gt;dumpconfig -- cache="/etc/lvm/.cache"&lt;BR /&gt;&lt;BR /&gt;Instead of:&lt;BR /&gt;&lt;BR /&gt;devices {&lt;BR /&gt;dir = "/dev"&lt;BR /&gt;scan = [ "/dev" ]&lt;BR /&gt;preferred_names = [ ]&lt;BR /&gt;filter = [ "a/.*/" ]&lt;BR /&gt;cache_dir = "/etc/lvm/cache"&lt;BR /&gt;&lt;BR /&gt;The file was obviously corrupted. The man page on mkinitrd didn't have any examples, but I found info from RedHat's knowledgebase.&lt;BR /&gt;&lt;BR /&gt;mkinitrd -v -f /boot/initrd-2.6.18-194.17.1.el5.img 2.6.18-194.17.1.el5&lt;BR /&gt;&lt;BR /&gt;Works like a dream. Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;Don&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/parse-error-at-byte-12-line-1-unexpected-token-on-boot-after/m-p/5263964#M52752</guid>
      <dc:creator>Don Mallory</dc:creator>
      <dc:date>2010-11-24T17:46:55Z</dc:date>
    </item>
  </channel>
</rss>

