Changeset 0d7900a for postlfs/filesystems
- Timestamp:
- 02/11/2013 06:51:17 PM (11 years ago)
- Branches:
- 10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 7.10, 7.4, 7.5, 7.6, 7.6-blfs, 7.6-systemd, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, basic, bdubbs/svn, elogind, gnome, kde5-13430, kde5-14269, kde5-14686, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, krejzi/svn, lazarus, lxqt, nosym, perl-modules, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, systemd-11177, systemd-13485, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
- Children:
- 8f83eeb
- Parents:
- a161de9
- Location:
- postlfs/filesystems
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
postlfs/filesystems/aboutlvm.xml
ra161de9 r0d7900a 17 17 18 18 <para>LVM manages disk drives. It allows multiple drives and partitions 19 to be combined into larger <emphasis>volume groups</emphasis>, assists in 20 making backups through a <emphasis>snapshot</emphasis>, and allows for 19 to be combined into larger <emphasis>volume groups</emphasis>, assists in 20 making backups through a <emphasis>snapshot</emphasis>, and allows for 21 21 dynamic volume resizing. It can also provide mirroring similar to 22 22 a RAID 1 array.</para> … … 24 24 <para>A complete discussion of LVM is beyond the scope of this introduction, 25 25 but basic concepts are presented below.</para> 26 26 27 27 <para>To run any of the commands presented here, the <xref linkend='lvm2'/> 28 28 package must be installed. All commands must be run as the <systemitem … … 43 43 <listitem><para>These are named groups of physical volumes that 44 44 can be manipulated by the administrator. The number of physical 45 volumes that make up a volume group is arbitrary. Physical volumes 46 can be dynamically added or removed from a volume group. 45 volumes that make up a volume group is arbitrary. Physical volumes 46 can be dynamically added or removed from a volume group. 47 47 </para></listitem> 48 48 </varlistentry> … … 56 56 57 57 </varlistentry> 58 </variablelist> 58 </variablelist> 59 59 60 60 <para>To give a concrete example, suppose that you have two 2 TB disks. … … 69 69 /dev/sda4 LVM remainder 8e (LVM) 70 70 /dev/sdb1 swap 2GB 82 (Swap) 71 /dev/sdb2 LVM remainder 8e (LVM)</literal></screen> 71 /dev/sdb2 LVM remainder 8e (LVM)</literal></screen> 72 72 73 73 <para>First initialize the physical volumes:</para> … … 89 89 90 90 <para>Finally the logical volumes can be formatted and mounted. In this 91 example, the jfs file system (<xref linkend='jfsutils'/>) is used for 91 example, the jfs file system (<xref linkend='jfsutils'/>) is used for 92 92 demonstration purposes.</para> 93 93 … … 104 104 <para>A LVM logical volume can host a root filesystem, but requires the use 105 105 of an initramfs (initial RAM file system) and is not discussed here.</para> 106 106 107 107 <para>For a more information about LVM, see the <ulink 108 108 url="http://www.tldp.org/HOWTO/LVM-HOWTO/">LVM HOWTO</ulink> and -
postlfs/filesystems/aboutraid.xml
ra161de9 r0d7900a 16 16 <title>About RAID</title> 17 17 18 <para>The storage technology known as RAID (Redundant Array of 18 <para>The storage technology known as RAID (Redundant Array of 19 19 Independent Disks) combines multiple physical disks into a logical 20 20 unit. The drives can generally be combined to provide data … … 28 28 RAID Wiki</ulink>.</para> 29 29 30 <para>Note that while RAID provides protection against disk 30 <para>Note that while RAID provides protection against disk 31 31 failures, it is not a substitute for backups. A file deleted 32 32 is still deleted on all the disks of a RAID array. Modern backups 33 33 are generally done via <xref linkend='rsync'/>.</para> 34 34 35 <para>There are three major types of RAID implementation: 35 <para>There are three major types of RAID implementation: 36 36 Hardware RAID, BIOS-based RAID, and Software RAID.</para> 37 37 38 38 <sect2 id="hwraid"> 39 39 <title>Hardware RAID</title> 40 <para>Hardware based RAID provides capability through proprietary 40 <para>Hardware based RAID provides capability through proprietary 41 41 hardware and data layouts. The control and configuration is generally 42 42 done via firmware in conjunction with executable programs made 43 43 available by the device manufacturer. The capabilities are 44 generally supplied via a PCI card, although there are some 44 generally supplied via a PCI card, although there are some 45 45 instances of RAID components integrated in to the motherboard. 46 46 Hardware RAID may also be available in a stand-alone enclosure.</para> … … 76 76 <sect2 id="swraid"> 77 77 <title>Software RAID</title> 78 <para>Software based RAID is the most flexible form of RAID. It is 78 <para>Software based RAID is the most flexible form of RAID. It is 79 79 easy to install and update and provides full capability on all or 80 part of any drives available to the system. In BLFS, the RAID software 80 part of any drives available to the system. In BLFS, the RAID software 81 81 is found in <xref linkend='mdadm'/>.</para> 82 82 … … 88 88 89 89 <para>The first step in creating a RAID array is to use partitioning software 90 such as <userinput>fdisk</userinput> or <xref linkend='parted'/> to define the 90 such as <userinput>fdisk</userinput> or <xref linkend='parted'/> to define the 91 91 partitions needed for the array. Usually, there will be one partition on 92 92 each drive participating in the RAID array, but that is not strictly necessary. … … 118 118 both mirrored. The third partition is a large (about 1TB) array for the 119 119 <filename class='directory'>/home</filename> directory. This provides 120 an ability to stripe data across multiple devices, improving speed for 120 an ability to stripe data across multiple devices, improving speed for 121 121 botih reading and writing large files. Finally, a fourth array is created 122 122 that concatenates two partitions into a larger device.</para> … … 134 134 135 135 <para>The devices created can be examined by device. For example, 136 to see the details of <filename>/dev/md1</filename>, use 136 to see the details of <filename>/dev/md1</filename>, use 137 137 <userinput>/sbin/mdadm --detail /dev/md1</userinput>: </para> 138 138 … … 170 170 171 171 <note><para>The swap devices should be specified in the <filename>/etc/fstab</filename> 172 file as normal. The kernel normally stripes swap data across multiple swap 172 file as normal. The kernel normally stripes swap data across multiple swap 173 173 files and should not be made part of a RAID array.</para></note> 174 174 -
postlfs/filesystems/fuse.xml
ra161de9 r0d7900a 167 167 <para> 168 168 <command>mv -v /usr/lib/libfuse.so.* /lib</command>: This moves the 169 <application>FUSE</application> library to the root filesystem 169 <application>FUSE</application> library to the root filesystem 170 170 so that it is available early in the boot process in case 171 171 <filename class="directory">/usr</filename> is mounted on a separate -
postlfs/filesystems/gptfdisk.xml
ra161de9 r0d7900a 69 69 <para>Recommended Patch: <ulink 70 70 url="&patch-root;/gptfdisk-&gptfdisk-version;-convenience-1.patch"/></para> 71 </listitem> 71 </listitem> 72 72 </itemizedlist> 73 73 … … 89 89 90 90 <para> 91 The <application>gptfdisk</application> package comes with a 91 The <application>gptfdisk</application> package comes with a 92 92 rudimentary <filename>Makefile</filename>. First we update it 93 93 to provide a simple build and install interface. … … 112 112 113 113 <para> 114 <option>ICU=1</option>: Adding this option to the <command>make</command> 115 command allows use of Unicode characters in partition names. 114 <option>ICU=1</option>: Adding this option to the <command>make</command> 115 command allows use of Unicode characters in partition names. 116 116 </para> 117 117 118 118 <para> 119 <option>POPT=1</option>: Adding this option to the <command>make</command> 119 <option>POPT=1</option>: Adding this option to the <command>make</command> 120 120 command is required to build <command>sgdisk</command>. If used, 121 this option needs to be on both the <command>make</command> and the 121 this option needs to be on both the <command>make</command> and the 122 122 <command>make install</command> line. 123 123 </para> … … 146 146 <term><command>cgdisk</command></term> 147 147 <listitem> 148 <para>is an is a curses-based text-mode tool for 148 <para>is an is a curses-based text-mode tool for 149 149 manipulating GPT partitions.</para> 150 150 <indexterm zone="gptfdisk cgdisk"> … … 157 157 <term><command>gdisk</command></term> 158 158 <listitem> 159 <para>is an interactive text-mode tool 159 <para>is an interactive text-mode tool 160 160 for manipulating GPT partitions.</para> 161 161 <indexterm zone="gptfdisk gdisk"> -
postlfs/filesystems/initramfs.xml
ra161de9 r0d7900a 42 42 <title>Building an initramfs</title> 43 43 44 <para>If you do decide to build an initramfs, the following scripts 45 will provide a basis to do it. The scripts will allow specifying a 46 rootfs via partition UUID or partition LABEL or a rootfs on an 44 <para>If you do decide to build an initramfs, the following scripts 45 will provide a basis to do it. The scripts will allow specifying a 46 rootfs via partition UUID or partition LABEL or a rootfs on an 47 47 LVM logical volume. They do not support an encrypted root file system 48 or mounting the rootfs over a network card. For a more complete 48 or mounting the rootfs over a network card. For a more complete 49 49 capability see <ulink url="http://www.linuxfromscratch.org/hints/read.html"> 50 50 the LFS Hints</ulink> or <ulink url="http://fedoraproject.org/wiki/Dracut"> … … 230 230 231 231 <command>chmod 0755 /sbin/mkinitramfs</command></userinput></screen> 232 232 233 233 <screen role="root"><userinput>mkdir -p /usr/share/mkinitramfs && 234 234 cat > /usr/share/mkinitramfs/init.in << "EOF" … … 337 337 338 338 EOF</userinput></screen> 339 339 340 340 </sect2> 341 341 … … 371 371 class='directory'>/boot</filename> directory.</para> 372 372 373 <para>Now edit <filename>/boot/grub/grub.cfg</filename> and add a new 373 <para>Now edit <filename>/boot/grub/grub.cfg</filename> and add a new 374 374 menuentry. Below are several examples.</para> 375 375 376 376 <screen><userinput># Generic initramfs and root fs identified by UUID 377 menuentry "LFS Dev (LFS-7.0-Feb14) initrd, Linux 3.0.4" 377 menuentry "LFS Dev (LFS-7.0-Feb14) initrd, Linux 3.0.4" 378 378 { 379 379 linux /vmlinuz-3.0.4-lfs-20120214 root=UUID=54b934a9-302d-415e-ac11-4988408eb0a8 ro … … 382 382 383 383 <screen><userinput># Generic initramfs and root fs on LVM partition 384 menuentry "LFS Dev (LFS-7.0-Feb18) initrd lvm, Linux 3.0.4" 384 menuentry "LFS Dev (LFS-7.0-Feb18) initrd lvm, Linux 3.0.4" 385 385 { 386 386 linux /vmlinuz-3.0.4-lfs-20120218 root=/dev/mapper/myroot ro … … 389 389 390 390 <screen><userinput># Specific initramfs and root fs identified by LABEL 391 menuentry "LFS Dev (LFS-7.1-Feb20) initrd label, Linux 3.2.6" 391 menuentry "LFS Dev (LFS-7.1-Feb20) initrd label, Linux 3.2.6" 392 392 { 393 393 linux /vmlinuz-3.2.6-lfs71-120220 root=LABEL=lfs71 ro -
postlfs/filesystems/jfs.xml
ra161de9 r0d7900a 103 103 104 104 <seglistitem> 105 <seg>fsck.jfs, jfs_debugfs, jfs_fsck, jfs_fscklog, 105 <seg>fsck.jfs, jfs_debugfs, jfs_fsck, jfs_fscklog, 106 106 jfs_logdump, jfs_mkfs, jfs_tune, mkfs.jfs </seg> 107 107 <seg>None</seg> … … 118 118 <term><command>fsck.jfs</command></term> 119 119 <listitem> 120 <para>is used to replay the JFS transaction log, check a 120 <para>is used to replay the JFS transaction log, check a 121 121 JFS formatted device for errors, and fix any errors found.</para> 122 122 <indexterm zone="jfsutils fsck.jfs"> … … 159 159 <term><command>jfs_debugfs</command></term> 160 160 <listitem> 161 <para>is a program which can be used to perform various low-level 161 <para>is a program which can be used to perform various low-level 162 162 actions on a JFS formatted device.</para> 163 163 <indexterm zone="jfsutils jfs_debugfs"> … … 170 170 <term><command>jfs_fscklog</command></term> 171 171 <listitem> 172 <para>extracts a JFS fsck service log into a file and/or formats and 172 <para>extracts a JFS fsck service log into a file and/or formats and 173 173 displays the extracted file.</para> 174 174 <indexterm zone="jfsutils jfs_fscklog"> … … 181 181 <term><command>jfs_logdump</command></term> 182 182 <listitem> 183 <para>dumps the contents of the journal log from the specified 183 <para>dumps the contents of the journal log from the specified 184 184 JFS formatted device into output file ./jfslog.dmp.</para> 185 185 <indexterm zone="jfsutils jfs_logdump"> -
postlfs/filesystems/lvm2.xml
ra161de9 r0d7900a 231 231 <listitem> 232 232 <para> 233 is a script that modifies the locking configuration in 233 is a script that modifies the locking configuration in 234 234 the <application>LVM2</application> configuration file. 235 235 </para> -
postlfs/filesystems/mdadm.xml
ra161de9 r0d7900a 70 70 71 71 <screen><literal>File Systems: 72 Device Drivers: 72 Device Drivers: 73 73 Multiple devices driver support (RAID and LVM): Y 74 74 RAID support: Y or M -
postlfs/filesystems/parted.xml
ra161de9 r0d7900a 64 64 <bridgehead renderas="sect4">Recommended</bridgehead> 65 65 <para role="recommended"> 66 <xref linkend="lvm2"/> (device-mapper, required if building 66 <xref linkend="lvm2"/> (device-mapper, required if building 67 67 <application>udisks</application>) 68 68 </para> -
postlfs/filesystems/sshfs-fuse.xml
ra161de9 r0d7900a 80 80 <para role="required"> 81 81 <xref linkend="fuse"/>, 82 <xref linkend="glib2"/>, and 82 <xref linkend="glib2"/>, and 83 83 <xref linkend="openssh"/>. 84 84 </para>
Note:
See TracChangeset
for help on using the changeset viewer.