Archive
hpacucli und striping
Um kleine logical Volumes über möglichst viele Disks zu verteilen kann man mit hpacucli einen kleinen Trick anwenden.
Man erstellt ein oder mehrere Logical Volumes über alle vorhandenen HDDs und gibt nur einen Bruchteil der verfügbaren Größe an.
In meinem Beispiel nutze ich 12x 600GB SAS HDDs und mache daraus fünf 1TB Stücke und eines mit dem Rest. Die verbleibende Kapazität findet man im “show config” unter “Unused Space”.
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=1024000 raid=5
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=1024000 raid=5
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=1024000 raid=5
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=1024000 raid=5
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=1024000 raid=5
hpacucli ctrl slot=2 create type=ld drives=1E:2:1-1E:2:11 size=602935 raid=5
Hint: anstatt alle HDDs aufzulisten kann man auch, wie im obigen Beispiel die Range von 1E:2:1 bis 1E:2:11 mit drives=1E:2:1-1E:2:11 angeben.
Jetzt geben wir noch eine Spare Disk dazu…
hpacucli ctrl slot=2 array c add spares=1E:2:12
…und schon sind wir fertig =)
Das Arrac C beinhaltet nun 5Logical Volumes, die aus 11 Platten und einer Spare bestehen. Jedes Volume erstreckt sich über alle 11 Platten und nutzt somit die maximal mögliche Anzahl an Spindeln.
hpacucli ctrl all show config
array C (SAS, Unused Space: 0 MB)
logicaldrive 3 (1000.0 GB, RAID 5, OK)
logicaldrive 4 (1000.0 GB, RAID 5, OK)
logicaldrive 5 (1000.0 GB, RAID 5, OK)
logicaldrive 6 (1000.0 GB, RAID 5, OK)
logicaldrive 7 (1000.0 GB, RAID 5, OK)
logicaldrive 8 (588.8 GB, RAID 5, OK)
physicaldrive 1E:2:1 (port 1E:box 2:bay 1, SAS, 600 GB, OK)
physicaldrive 1E:2:2 (port 1E:box 2:bay 2, SAS, 600 GB, OK)
physicaldrive 1E:2:3 (port 1E:box 2:bay 3, SAS, 600 GB, OK)
physicaldrive 1E:2:4 (port 1E:box 2:bay 4, SAS, 600 GB, OK)
physicaldrive 1E:2:5 (port 1E:box 2:bay 5, SAS, 600 GB, OK)
physicaldrive 1E:2:6 (port 1E:box 2:bay 6, SAS, 600 GB, OK)
physicaldrive 1E:2:7 (port 1E:box 2:bay 7, SAS, 600 GB, OK)
physicaldrive 1E:2:8 (port 1E:box 2:bay 8, SAS, 600 GB, OK)
physicaldrive 1E:2:9 (port 1E:box 2:bay 9, SAS, 600 GB, OK)
physicaldrive 1E:2:10 (port 1E:box 2:bay 10, SAS, 600 GB, OK)
physicaldrive 1E:2:11 (port 1E:box 2:bay 11, SAS, 600 GB, OK)
physicaldrive 1E:2:12 (port 1E:box 2:bay 12, SAS, 600 GB, OK, spare)
RPMfusion in Fedora17
Für Multimediainhalte, interessante Sachen, free und non-free Software gibt es das rpmfusion Repository.
Paketliste FREE
Paketliste NON-Free
Dann klappen auch so Dinge wie MP3 & Videocodecs, gutes Flash und was man noch so für normales arbeiten benötigt…
Quickinstall mit:
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
ganz simpler rsync
Weil ichs immer wieder vergesse nun einfach ein “note to myself”…
macbook:~ mhartmann$ rsync -avz /Users/mhartmann/ /Volumes/DataTank/Backups/Marcel/ 1> /Volumes/DataTank/Backups/Output.txt 2> /Volumes/DataTank/Backups/Error.txt
Und die Logdateien kann man “in Echtzeit” mit tail -F <file> angucken…