|
Top |
Notizen |
Notiz hinzufügen |
Feed an
server7evenBereicheÖffentlichWebspaceLokale Spiegelungen↑ Notizen +Kategorien: [Neuste Einträge] 149.
Linux muss nicht defragmentieren: Kategorie(n): Linux, Datenverwaltung 159. Linux Softraid (dm-raid, mdadm)
Creation of Arrays# make /dev/md0 a RAID1 arraymdadm --create /dev/md0 --level 1 -n 2 /dev/sda2 /dev/hda2 mdadm --detail /dev/md0 # have a look # make /dev/md1 a RAID0 array mdadm --create /dev/md1 --level 0 -n 2 /dev/hda1 /dev/sda3 mdadm --detail /dev/md1 # have a look # make /dev/md3 a RAID1 array with one missing device (to add later on - see below...) mdadm --create /dev/md3 --level=1 --raid-devices=2 missing /dev/sdb3 Add devices to /dev/md3# add device /dev/sda3 to existing raid array /dev/md3mdadm --add /dev/md3 /dev/sda3 Monitor mdadm arrayscat /proc/mdstatConfigure /dev/md3 in /etc/mdadm/mdadm.conf (obsolete for Debian Lenny or optional, I am not sure...)DEVICE /dev/sda3 /dev/sdb3ARRAY /dev/md3 level=raid1 num-devices=2 UUID=0fc5588a:2fddde42:87a3b1dd:0d49cb68 devices=/dev/sda3,/dev/sdb3 First line (DEVICE) to be added manually, second line (ARRAY) with following command: mdadm --brief --detail --verbose /dev/md3 >> /etc/mdadm/mdadm.conf Postponing stuff: use the devicemkfs.ext3 /dev/md3mount /dev/md3 /mnt ...or similar (do as you want) Information sources: (1) http://www.administrator.de/index.php?content=28672 (2) http://www.shimari.com/dm-crypt-on-raid/ Kategorie(n): Linux, Datenverwaltung 160. Crypted partitions on Debian Lenny
Create crypted partitionluksformat -t ext3 /dev/YOURDEVICE- You are asked for new passphrase - You have to repeat it two times Open crypted partitioncryptsetup luksOpen /dev/YOURDEVICE YOURFAVORITENAME- You are asked for the passphrase Mount the device that is created by cryptsetup as usual devices: mount /dev/mapper/YOURFAVORITENAME /mnt/YOURFAVORITEMOUNTPOINT Close crypted partitionUnmount as usual:umount /mnt/YOURFAVORITEMOUNTPOINT Close crypted partition: cryptsetup luksClose /dev/mapper/YOURFAVORITENAME Auto mount and auto-openNote: this is semi-automatic as you have to type in the passwort upon boot up - otherwise the sense of crypting would be voidIn /etc/crypttab: YOURFAVORITENAME /dev/YOURDEVICE none luks In /etc/fstab: /dev/mapper/YOURFAVORITENAME /mnt/YOURFAVORITEMOUNTPOINT ext3 auto,defaults 0 0 Source: http://www.andreas-janssen.de/cryptodisk.html Kategorie(n): Linux, Datenverwaltung, Sicherheit 168. Thinkpad-Tasten in Linux aktivieren
Wenn die Thinkpad-Tasten nicht funktionieren, alle Benutzer in die Gruppe "kmem" aufnehmen, dann tuts. Kategorie(n): Linux, Sicherheit, SVN, Datenverwaltung, Windows, Linux ↑ Notiz hinzufügen:Powered by nskCMS running on PHP v8.2.29 |