⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.raid1

📁 LINUX lilo-22.7 源代码。
💻 RAID1
📖 第 1 页 / 共 2 页
字号:
  raid-extra-boot = "/dev/hdc,/dev/sda"Now both disks in the RAID set have usable boot records on the MBRs. There is no need to worry about "active" partitions in a recoverysituation.BACKWARD COMPATIBLITY=====================Backward compatibility with earlier versions of LILO raid is providedby (versions 21 through 21.7.5)   raid-extra-boot = mbr-onlyUse of "mbr-only" defeats writing the boot record to the RAIDpartition, '/dev/md1' in the examples above, defeats the protectionagainst writing to the MBR of BIOS device 0x80 (which is usually'/dev/hda' or '/dev/sda'), and writes to all MBRs of the drives inthe RAID set.  Except for not writing to the boot record of the raid partition, this option is otherwise the same as the "raid-extra-boot=mbr" specification discussed above.On XFS filesystems, writing a boot record to the RAID partition itselfwould be catastrophic.  Hence, on XFS filesystems, use of this optionis MANDATORY.MASTER BOOT RECORDS and ACTIVE PRIMARY PARTITIONS=================================================The active partition, /dev/sda1 in the case above is booted by a"Master Boot Record" written to /dev/sda.   LILO may be requestedto write such a Master record with the command:   lilo -M /dev/sda     # write master boot recordThe Master Boot Record performs the same function as the DOS utility'fdisk /mbr', except that the DOS code is only used for the C: drive. The LILO master boot record facility may be placed on sector 0 ofany drive.  It serves an additional function in RAID1 installations,in that it will determine, and pass to the boot sector of the activepartition the correct BIOS device code of the drive, whether it is0x80, 0x81, or higher.The active partition may be set with the -A flag; viz.,   lilo -A /dev/sda 1   # note the space!!!or checked; viz.,   lilo -A /dev/sda     # check active partition(response:  /dev/sda1)REMINDERS=========Unstated, but required by an installation of LILO to a RAIDpartition, all of the files used in booting must reside on the RAIDset.  This means:  initrd, kernel, and message files; plus the LILOinternal files:  map, boot.b, and chain.b, if used.  Normally, theinternal files are kept in the '/boot' directory.  Many distributionsof Linux also place the kernel and initrd files in this samedirectory.  Others place them in the root, '/', directory.  Eitherlocation is acceptable, as long as they are within the same RAIDpartition which you are making bootable.LILO variations:  version 22.2 enforces the placement of the map fileon the RAID parition.  Version 22.3 eliminates the need for theboot.b and chain.b files, and relaxes the restriction that themessage file be on the RAID partition by copying it into the mapfile.  Likewise, any bitmap= file is copied into the map file, so ittoo may reside anywhere.  It remains the user's responsibility to seethat the Kernel and Initrd files are on the bootable raid partition. The /boot directory, with the map file, is the recommended location forthese files.If for some reason you want to write the MBR of BIOS device 0x80, youwill have to specify it explicitly.  Since LILO tells you where allother auxiliary boot records have been written, if any, you will haveto mention these in addition to the MBR on drive 0x80.(versions 22.0 through 22.4.1):When making an installation of LILO to a RAID set, remember that LILOwill only make the disk with the lowest device code bootable.  Forvery many RAID installations, this will be BIOS device code 0x80. The second and succeeding disks in the RAID set are not bootable inthe running RAID configuration; they only become bootable if the diskon device code 0x80 is removed, so that one of them becomes BIOSdrive 0x80.ERROR MESSAGES (versions 22.0 through 22.4.1):==============If LILO is unable to write all of the auxiliary boot records it wouldlike, or your map file is not on the RAID partition, you will get the error message:  "Warning: FLAG_RAID_NOWRITE has been set"This warning has two consequences.  First, the clearing the '-R'stored command line will not take place; 'lock' will not workproperly; and 'fallback' will not work properly.  All of these LILOoptions require LILO to re-write the stored boot command line beforethe kernel is booted.  Because RAID set consistency cannot bemaintained, the boot loader will fall back to a read-only mode ofoperation.  For many installations this is acceptable.  The commandline switch, '-R' will still work from a running system, since thekernel RAID codes will maintain set coherency.The second consequence of this message, is a warning that not allboot records needed for booting in a disk failure scenario werewritten.  The system may boot fine with the lowest BIOS code diskrunning, but be prepared to use a boot floppy in the event this diskfails.  This may or may not be acceptable.This message will most often appear when 'raid-extra-boot=' wasspecified as "none"; or, if specified as (or defaulted to), "auto",the extra boot record it could not write was to the MBR of BIOSdevice 0x80, usually '/dev/hda' or '/dev/sda'.  This could happenwith a skewed installation, where the RAID set partition on BIOSdevice code 0x80 is not a primary partition.  If it were a primarypartition, then the RAID partition boot record written to '/dev/md?'would be used, and there would be no necessity to write to the MBR ofBIOS disk 0x80.NEW CONSIDERATIONS        (version 22.5 and later)==================Booting is now based upon a 32-bit industry standard Volume ID,rather than the 8-bit BIOS device code.  Device codes are stillgenerated, but are used primarily as an index into a volume id table. This means that the LILO-installed boot sector must contain thevolume id of the drive containing the map file, since this is wherethe second stage loader is guaranteed to be located.  The record onthe first sector of a RAID1 partition is not unique, but is sharedamong all the partitions in the raid set.  These partitions span twoor more drives.  The worst case scenario is that the boot scheme falls back to actualdevice codes, and is as reliable as the version 22.4.1 and earliercodes.  A failed installation will still boot, as long a the failed(first) drive is removed, and the backup (second) drive fills theemptied BIOS device code slot formerly occupied by the failed drive.Version 22.5 (and later) installations are more robust, as long asthe boot record on the RAID1 partition has access to the BIOS devicecode under which it is booting; or, booting takes place from anauxiliary boot record installed using the option "mbr"; or byexplicit declaration.  Auxiliary boot records are not shared acrossdrives, so they may have variations within them, such as their ownunique volume id's, for use in accessing the correct map file.  (Theyalso contain unique offset information, in the case of skewedpartitions.)The most fault tolerant systems will be those installed using the"mbr" (or "mbr-only") specification.CONSERVATIVE INSTALLATION    (version 22.5.1 and later)=========================The most robust RAID1 installations, PARALLEL or SKEWED, are installedwith:   lilo -x mbrThis installation will boot any disk with a RAID partition on anyBIOS device code. It is not restricted to PARALLEL installations onlyas is the next method.Equally robust PARALLEL installations will use the new Master BootRecord, activate the RAID1 partition on each drive, and install usingthe specification that the MBR bios can be relied upon to pass thecorrect BIOS device code in the DL register:   lilo -x auto     or   lilo -x nonewill produce a warning message telling you that the following is needed:   lilo -M /dev/sda	# install new MBR   lilo -A /dev/sda 3	# activate the correct partition (# 3)   lilo -M /dev/sdb	# install new MBR   lilo -A /dev/sdb 2   # activate the correct partition (# 2)If the partitions of the PARALLEL installation are not all primary, thewarning message will not be issued, and non-primary partitions will notbe bootable.  (The MBR from LILO version 22.5.1 or later MUST be used.Once installed, it does not have to be re-installed each time you updatethe boot record on the RAID partition.)Since it is easier to achieve the most robust state of affairs withthe "-x mbr" or "raid-extra-boot=mbr" specification, it is thesuggested method of installation.REMEMBER========With a RAID installation, always run:   lilo -tfirst -- just to let LILO tell you what it is about to do.  Use the'-v' flag, too, for more verbose output.REFERENCES==========The 'man' pages for "lilo" and "lilo.conf" have been updated, and arethe main reference material for using the new switches and configoptions.The 'README' file in the LILO source directory, generated from thedoc materials, is still the best tutorial on booting, as well as a goodreference for many of the more obscure lilo options.  The 'man' pagesnow contain most of this reference material, but in a condensed form.CREDITS=======Thanks to Piete Brooks <lilo+pb@cl.cam.ac.uk> for prodding meinto attacking the RAID1 issues, for his incisive criticism of theresulting work as it emerged, and for testing the early codes.(end)written 04/19/01 -- John Coffman <johninsd@san.rr.com>updated 05/10/01 -- John Coffmanupdated 08/08/01 -- John Coffmanupdated 03/15/03 -- John Coffman (to version 22.5.1)updated 09/07/04 -- John Coffman (spelling & punctuation)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -