summaryrefslogtreecommitdiffstats
path: root/README_LVM.TXT
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2016-06-30 20:26:57 +0000
committer Eric Hameleers <alien@slackware.com>2018-05-31 23:31:18 +0200
commitd31c50870d0bee042ce660e445c9294a59a3a65b (patch)
tree6bfc0de3c95267b401b620c2c67859557dc60f97 /README_LVM.TXT
parent76fc4757ac91ac7947a01fb7b53dddf9a78a01d1 (diff)
downloadcurrent-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.gz
current-d31c50870d0bee042ce660e445c9294a59a3a65b.tar.xz
Slackware 14.2slackware-14.2
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
Diffstat (limited to 'README_LVM.TXT')
-rw-r--r--README_LVM.TXT32
1 files changed, 15 insertions, 17 deletions
diff --git a/README_LVM.TXT b/README_LVM.TXT
index 384b8284c..93aa4e423 100644
--- a/README_LVM.TXT
+++ b/README_LVM.TXT
@@ -10,8 +10,8 @@ Introduction
installation to Logical Volumes. In Slackware, the installer has never
supported this, but the gurus usually would find a way to create logical
volumes and install or migrate their Slackware onto those. Having your
-Slackware installed fully on LVM was near impossible until Slackware 12.0.
-Slackware 14.1 has improved support for LVM built into the installer.
+Slackware installed fully on LVM was near impossible until Slackware 12.0,
+but now Slackware has improved support for LVM built into the installer.
Preparing Logical Volumes (LV)
@@ -30,7 +30,7 @@ you want to use for setting up the logical volumes. For any partition you
create and that you want to use for LVM, you should set the partition type
to '8e' (Linux LVM).
- In the next example, I will assume we use a single 10 GB partition
+ In the next example, I will assume we use a single 20 GB partition
'/dev/sda1' for our Volume Group (VG). With LVM, it is possible to use
multiple physical volumes (i.e. partitions, whole disks) for a VG, but that is
left as an exercise for the reader. You can always add extra physical volumes
@@ -40,16 +40,16 @@ LV's called 'root' and 'home'. The first is going to contain the root partition
After booting your computer from the Slackware CD/DVD/USB, and logging in
as root, you run the following sequence of commands to create the Physical
-Volume (PV), the Volume Group (VG) within that PV and two LV's of size 6GB
-(root) and 3GB (home) inside the VG:
+Volume (PV), the Volume Group (VG) within that PV and two LV's of size 15GB
+(root) and 4GB (home) inside the VG:
# pvcreate /dev/sda1
# vgcreate myvg /dev/sda1
- # lvcreate -L 6G -n root myvg
+ # lvcreate -L 15G -n root myvg
- # lvcreate -L 3G -n home myvg
+ # lvcreate -L 4G -n home myvg
========================================================================
NOTE: if you want, you can just allocate all remaining space inside the
@@ -73,8 +73,8 @@ Using LVM during setup
the LV's are available in the Linux partition selection. Our two LV's "root"
and "home" are visible as "/dev/myvg/root" and "/dev/myvg/home". Select the
first for your root ('/') filesystem, and the other for your /home filesystem.
-Create any filesystem you like on them. My favorite fstype still is ext3,
-but you can choose ext4, xfs or jfs for stability and speed.
+Create any filesystem you like on them. My favorite fstype still is ext4,
+but you can choose others such as btrfs, jfs, or xfs.
Setup will proceed as usual, but when you get to the point where you are
presented with the lilo configuration dialog, it is almost time to perform
@@ -94,20 +94,18 @@ Fortunately, the Slackware installer has done some of the work for us.
It will have created the LVM device nodes which lilo needs in order to
install successfully. The installer will have mounted the /sys and /proc
filesystems as well. Inside a 'chroot' we will create an initrd image
-and configure lilo to use it with the generic kernel. Be aware that
-Slackware's 'huge' kernels are too big to work with an initrd image using
-the lilo bootloader. Lilo will complain that there is too little space
-left in the 15M-16M 'memory hole'.
+and configure lilo to use it with the generic kernel.
+
We are going to 'chroot' into our fresh installation:
# chroot /mnt
Next, while we are in the chroot, create the initrd with LVM support -
-in the example command line I assume that the root filesystem is 'ext3',
+in the example command line I assume that the root filesystem is 'ext4',
we used the LV '/dev/myvg/root' as the root device, and are running the
-Slackware 14.1 default SMP kernel '3.10.17-smp':
+Slackware 14.2 default kernel '4.4.14':
- # mkinitrd -c -k 3.10.17-smp -m ext3 -f ext3 -r /dev/myvg/root -L
+ # mkinitrd -c -k 4.4.14 -m ext4 -f ext4 -r /dev/myvg/root -L
The resulting initrd image will be written to the file '/boot/initrd.gz'
by default. We still need to tell lilo about this initrd, so open the
@@ -119,7 +117,7 @@ filename added by 'liloconfig' is '/boot/vmlinuz' which is a symbolic link to
the huge SMP kernel. Remember that we need a 'generic' kernel with the initrd.
The end result should look somewhat like this:
- image = /boot/vmlinuz-generic-smp-3.10.17-smp
+ image = /boot/vmlinuz-generic-4.4.14
initrd = /boot/initrd.gz
root = /dev/myvg/root
label = linux