From: Frank Brehm Date: Mon, 18 Feb 2013 10:31:03 +0000 (+0100) Subject: Weiter an inst-wheezy-debbotstrap.txt gearbeitet X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=517ee3df6809ee491a0437f9b41aa28c3bf0b7ac;p=docs%2Ffrank.git Weiter an inst-wheezy-debbotstrap.txt gearbeitet --- diff --git a/Dokumentationen/inst-wheezy-debbotstrap.txt b/Dokumentationen/inst-wheezy-debbotstrap.txt index ca24eb5..a969318 100644 --- a/Dokumentationen/inst-wheezy-debbotstrap.txt +++ b/Dokumentationen/inst-wheezy-debbotstrap.txt @@ -35,7 +35,7 @@ Disk identifier: 0xafe9bf1b .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 @@ -44,15 +44,15 @@ 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: @@ -63,4 +63,103 @@ no label, UUID=98ec433e-ebc8-445f-8204-a653840156f7 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