Bis auf die Bootpartition ist die gesamte Festplatte des Linux Home Servers (LHS) komplett verschlüsselt. Die verschlüsselte Datenpartition ist ihrerseit mit Hilfe des Logical Volume Managements in zahlreiche logische Datenbereiche aufgeteilt.
root@bluestar:~# fdisk -l
/dev/sda
Platte /dev/sda: 250.1 GByte, 250059350016 Byte 255 Köpfe, 63 Sektoren/Spur, 30401 Zylinder Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Gerät boot. Anfang Ende Blöcke Id System /dev/sda1 * 1 16 120832 83 Linux /dev/sda2 16 30402 244076544 83 Linux
root@bluestar:~#
cryptsetup status sda2_crypt
/dev/mapper/sda2_crypt is active: cipher: aes-cbc-essiv:sha256 keysize: 256 bits device: /dev/sda2 size: 488151032 sectors mode: read/write
root@bluestar:~# ls -l
/dev/mapper/sda2_crypt
lrwxrwxrwx 1 root root 7 5. Jun 20:57 /dev/mapper/sda2_crypt -> ../dm-0
root@bluestar:~# pvs
PV VG Fmt Attr PSize PFree /dev/dm-0 vg1 lvm2 a- 232,77g 180,63g
root@bluestar:~# vgs
VG #PV #LV #SN Attr VSize VFree vg1 1 12 0 wz--n- 232,77g 180,63g
root@bluestar:~# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert cache vg1 -wi-ao 4,66g home vg1 -wi-ao 14,90g local vg1 -wi-ao 1,86g log vg1 -wi-ao 952,00m opt vg1 -wi-ao 952,00m root vg1 -wi-ao 3,72g spool vg1 -wi-ao 4,66g srv vg1 -wi-ao 952,00m swap vg1 -wi-ao 3,72g tmp vg1 -wi-ao 952,00m usr vg1 -wi-ao 7,45g var vg1 -wi-ao 7,45g
root@bluestar:~# df -h -t ext3
Dateisystem Size Used Avail Use% Eingehängt auf /dev/mapper/vg1-root 3,7G 287M 3,2G 9% / /dev/sda1 115M 49M 61M 45% /boot /dev/mapper/vg1-home 15G 185M 14G 2% /home /dev/mapper/vg1-opt 938M 18M 873M 2% /opt /dev/mapper/vg1-srv 938M 18M 873M 2% /srv /dev/mapper/vg1-tmp 938M 18M 873M 2% /tmp /dev/mapper/vg1-usr 7,4G 2,2G 4,8G 32% /usr /dev/mapper/vg1-local 1,9G 35M 1,8G 2% /usr/local /dev/mapper/vg1-var 7,4G 746M 6,3G 11% /var /dev/mapper/vg1-cache 4,6G 1,2G 3,2G 28% /var/cache /dev/mapper/vg1-log 938M 106M 784M 12% /var/log /dev/mapper/vg1-spool 4,6G 250M 4,2G 6% /var/spool
root@bluestar:~# swapon
-s
Filename Type Size Used Priority /dev/dm-12 partition 3903480 313760 -1