Topic
4 replies Latest Post - ‏2013-05-28T21:31:51Z by MadhuSrinivasa
MadhuSrinivasa
MadhuSrinivasa
3 Posts
ACCEPTED ANSWER

Pinned topic boot from secondary disk

‏2013-05-22T23:34:47Z |

I have LVM mirrored ROOTVG and I have  added the secondary disk to the bootlist path, however I cannot boot from the secondary disk.  Does anyone knows how to make the secondary disk bootable. Do we have bosboot or similar like that. I am running RHEL-5.9 and below  is the output of sfdisk -1.

Can someone please throw light on this.  

Thanks!
Madhu

 

 

sfdisk -l
 
Disk /dev/sda: 35003 cylinders, 128 heads, 32 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/255/63 (instead of 35003/128/32).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
 
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+      0       1-      8001   41  PPC PReP Boot
/dev/sda2          1      13      13     104422+  83  Linux
/dev/sda3         14    8923    8910   71569575   8e  Linux LVM
/dev/sda4          0       -       0          0    0  Empty
 
Disk /dev/sdb: 35003 cylinders, 128 heads, 32 sectors/track
Units = cylinders of 2097152 bytes, blocks of 1024 bytes, counting from 0
 
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sdb1          0+      0       1-      2032   41  PPC PReP Boot
/dev/sdb2          1      51      51     104448   83  Linux
/dev/sdb3         52   35002   34951   71579648   8e  Linux LVM
/dev/sdb4          0       -       0          0    0  Empty
 

 

[root@eslmach1 ~]# bootlist -m normal -o
sda
sdb
 
Updated on 2013-05-23T00:07:17Z at 2013-05-23T00:07:17Z by MadhuSrinivasa
  • willschm
    willschm
    45 Posts
    ACCEPTED ANSWER

    Re: boot from secondary disk

    ‏2013-05-23T15:59:06Z  in response to MadhuSrinivasa

    Noting that typos while running the partition editing tools can cause things to go horribly wrong,    refer to the manpages or help for the tools to verify the syntax and usage.

     

    sfdisk or parted should be able to set the bootable flag.      

    parted steps would be roughly:

    $ parted /dev/sdb

    < view current settings>

    (parted) p

     < set disk partition #1 bootable flag>

    (parted) set 1 boot on

     

    • MadhuSrinivasa
      MadhuSrinivasa
      3 Posts
      ACCEPTED ANSWER

      Re: boot from secondary disk

      ‏2013-05-24T17:29:16Z  in response to willschm

      Willschm, Thanks for the response.

      I did set the bootable flag as per your instruction but this is the error I get whenever I tried to boot from that disk sdb1.

      I ran mkofboot -b /dev/sdb1 before trying to boot.

      Any more suggestions.

       

      /pci@800000020000003/pci@2,2/pci1069,b166@1/scsi@0/sd@5,0:-1,/etc/yaboot.conf: Unknown or corrupt filesystem
      Can't open config file
      Welcome to yaboot version 1.3.13 (Red Hat 1.3.13-14.el5)
      Enter "help" to get some basic usage information
      boot:
       
      • willschm
        willschm
        45 Posts
        ACCEPTED ANSWER

        Re: boot from secondary disk

        ‏2013-05-24T20:27:44Z  in response to MadhuSrinivasa

        What does your " sfdisk -l " output look like now? 

        I'd boot to the first disk, and then look to see what the sdb2/sdb3 contents look like, in comparison to sda2/sda3.

        The gist of that error message is that yaboot itself loaded (from the PREP type41 partition, but could not find a config file, which is usually in /etc/yaboot.conf  (or /boot/etc/yaboot.conf)  in the filesystem.

        • MadhuSrinivasa
          MadhuSrinivasa
          3 Posts
          ACCEPTED ANSWER

          Re: boot from secondary disk

          ‏2013-05-28T21:31:51Z  in response to willschm

          Willschm,

          I had problem with sdb2 /boot partition which I copied over from sda2.

          Infact I have LVM mirrored the rootvg. However /boot was not on LVM and it was ext3.

          I understand that /boot should NOT under LVM, hence I created software raid  md0 with sda2 and sdb2 devices with ext3 filesystems.

          It works fine now thanks for your help. If you have any other better solution than creating md0 then please let me know.

          Here is df output.

          Filesystem           1K-blocks      Used Available Use% Mounted on

          /dev/mapper/vgRoot-lv_root
                                 9829688   3480944   5824456  38% /
          /dev/mapper/vgRoot-lv_var
                                 4914816    268976   4383696   6% /var
          /dev/mapper/vgRoot-lv_opt
                                 4914816    198456   4454216   5% /opt
          /dev/mapper/vgRoot-lv_home
                                 2948880     70984   2720612   3% /home
          /dev/mapper/vgRoot-lv_tmp
                                 1965904     68632   1792416   4% /tmp
          tmpfs                 48084160         0  48084160   0% /dev/shm
          /dev/md0                 93143     18698     69636  22% /boot
           

          Regards!

          Madhu