.LVM logical volumes einricheten:
----
root@uhu2 ~ # pvs
- PV VG Fmt Attr PSize PFree
+ PV VG Fmt Attr PSize PFree
/dev/vda4 vg0 lvm2 a-- 71,50g 11,50g
/dev/vdb1 vg1 lvm2 a-- 300,00g 240,00g
root@uhu2 ~ # vgs
vg1 1 2 0 wz--n- 300,00g 240,00g
root@uhu2 ~ # lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
- home vg0 -wi-ao 20,00g
- tmp vg0 -wi-ao 5,00g
- var vg0 -wi-ao 10,00g
- var_lib vg0 -wi-ao 10,00g
- var_log vg0 -wi-ao 10,00g
- var_tmp vg0 -wi-ao 5,00g
- imap vg1 -wi-ao 50,00g
- srv vg1 -wi-ao 10,00g
-root@uhu2 ~ #
+ home vg0 -wi-ao 20,00g
+ tmp vg0 -wi-ao 5,00g
+ var vg0 -wi-ao 10,00g
+ var_lib vg0 -wi-ao 10,00g
+ var_log vg0 -wi-ao 10,00g
+ var_tmp vg0 -wi-ao 5,00g
+ imap vg1 -wi-ao 50,00g
+ srv vg1 -wi-ao 10,00g
+root@uhu2 ~ #
----
.Swap einrichten:
root@uhu2 ~ #
----
+.Datsysteme einrichten:
+----
+root@uhu2 ~ # mkfs.ext3 /dev/vda1
+mke2fs 1.42.2 (9-Apr-2012)
+Filesystem label=
+OS type: Linux
+Block size=4096 (log=2)
+Fragment size=4096 (log=2)
+Stride=0 blocks, Stripe width=0 blocks
+32768 inodes, 131072 blocks
+6553 blocks (5.00%) reserved for the super user
+First data block=0
+Maximum filesystem blocks=134217728
+4 block groups
+32768 blocks per group, 32768 fragments per group
+8192 inodes per group
+Superblock backups stored on blocks:
+ 32768, 98304
+
+Allocating group tables: done
+Writing inode tables: done
+Creating journal (4096 blocks): done
+Writing superblocks and filesystem accounting information: done
+
+root@uhu2 ~ # mkfs.ext4 /dev/vda2
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/home
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/tmp
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/var
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/var_lib
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/var_log
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg0/var_tmp
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg1/srv
+...
+root@uhu2 ~ # mkfs.ext4 /dev/vg1/imap
+...
+root@uhu2 ~ #
+----
+
+.Mounten:
+----
+root@uhu2 ~ # alias ll='ls -lA --color=auto'
+root@uhu2 ~ # alias md='mkdir -p'
+root@uhu2 ~ #
+root@uhu2 ~ # md /a
+root@uhu2 ~ #
+root@uhu2 ~ # mount -o relatime,user_xattr,data=ordered /dev/vda2 /a
+root@uhu2 ~ #
+root@uhu2 ~ # md /a/home
+root@uhu2 ~ # md /a/tmp
+root@uhu2 ~ # md /a/var
+root@uhu2 ~ # md /a/srv
+root@uhu2 ~ # md /a/boot
+root@uhu2 ~ #
+root@uhu2 ~ # mount -o noatime,user_xattr,acl,data=ordered /dev/vda1 /a/boot
+root@uhu2 ~ # mount -o relatime,user_xattr,data=ordered /dev/vg0/home /a/home
+root@uhu2 ~ # mount -o relatime,user_xattr,data=ordered /dev/vg1/srv /a/srv
+root@uhu2 ~ # mount -o noatime /dev/vg0/tmp /a/tmp
+root@uhu2 ~ # mount -o relatime,user_xattr,data=ordered /dev/vg0/var /a/var
+root@uhu2 ~ #
+root@uhu2 ~ # md /a/var/lib
+root@uhu2 ~ # md /a/var/log
+root@uhu2 ~ # md /a/srv/imap
+root@uhu2 ~ # md /a/var/tmp
+root@uhu2 ~ #
+root@uhu2 ~ # mount -o noatime /dev/vg0/var_tmp /a/var/tmp
+root@uhu2 ~ # mount -o relatime /dev/vg0/var_lib /a/var/lib
+root@uhu2 ~ # mount -o relatime /dev/vg0/var_log /a/var/log
+root@uhu2 ~ # mount -o relatime /dev/vg1/imap /a/srv/imap
+root@uhu2 ~ #
+root@uhu2 ~ # df -h
+Filesystem Size Used Avail Use% Mounted on
+tmpfs 801M 332K 800M 1% /run
+tmpfs 5,0M 0 5,0M 0% /run/lock
+udev 4,0G 0 4,0G 0% /dev
+rootfs 4,0G 800K 4,0G 1% /
+/dev/sr0 371M 371M 0 100% /live/image
+/dev/loop0 344M 344M 0 100% /live/rofs/grml64-full.squashfs
+tmpfs 4,0G 0 4,0G 0% /live
+tmpfs 4,0G 800K 4,0G 1% /live/overlay
+/dev/vda2 20G 431M 19G 3% /a
+/dev/vda1 504M 17M 462M 4% /a/boot
+/dev/mapper/vg0-home 20G 431M 19G 3% /a/home
+/dev/mapper/vg1-srv 10G 280M 9,2G 3% /a/srv
+/dev/mapper/vg0-tmp 5,0G 204M 4,6G 5% /a/tmp
+/dev/mapper/vg0-var 10G 280M 9,2G 3% /a/var
+/dev/mapper/vg0-var_tmp 5,0G 204M 4,6G 5% /a/var/tmp
+/dev/mapper/vg0-var_lib 10G 280M 9,2G 3% /a/var/lib
+/dev/mapper/vg0-var_log 10G 280M 9,2G 3% /a/var/log
+/dev/mapper/vg1-imap 50G 885M 47G 2% /a/srv/imap
+root@uhu2 ~ #
+----
+
// vim: ts=4 expandtab fileencoding=utf-8 filetype=asciidoc