Raid1 mit lvm
Bisherige Konfiguration:
root@dione:~# mdadm --detail /dev/md3
/dev/md3:
Version : 0.90
Creation Time : Sun Jan 30 10:37:10 2011
Raid Level : raid1
Array Size : 914847680 (872.47 GiB 936.80 GB)
Used Dev Size : 914847680 (872.47 GiB 936.80 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 3
Persistence : Superblock is persistent
Update Time : Sun Feb 21 10:56:56 2016
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 907d383c:2bcb4225:91af66a1:ac841612 (local to host dione)
Events : 0.60469
Number Major Minor RaidDevice State
0 8 19 0 active sync /dev/sdb3
1 8 35 1 active sync /dev/sdc3
/dev/sdc3 aus dem Spiegel herauslösen:
root@dione:~# mdadm --manage /dev/md3 -f /dev/sdc3 mdadm: set /dev/sdc3 faulty in /dev/md3 root@dione:~# mdadm --manage /dev/md3 -r /dev/sdc3 mdadm: hot removed /dev/sdc3 from /dev/md3
/dev/md3 sieht jetzte wie folgt aus:
root@dione:~# mdadm --detail /dev/md3 /dev/md3: Version : 0.90 Creation Time : Sun Jan 30 10:37:10 2011 Raid Level : raid1 Array Size : 914847680 (872.47 GiB 936.80 GB) Used Dev Size : 914847680 (872.47 GiB 936.80 GB) Raid Devices : 2 Total Devices : 1 Preferred Minor : 3 Persistence : Superblock is persistent Update Time : Sun Feb 21 10:57:36 2016 State : clean, degraded Active Devices : 1 Working Devices : 1 Failed Devices : 0 Spare Devices : 0 UUID : 907d383c:2bcb4225:91af66a1:ac841612 (local to host dione) Events : 0.60480 Number Major Minor RaidDevice State 0 8 19 0 active sync /dev/sdb3 1 0 0 1 removed
Physisches Volume auf /dev/sdc3 anlegen:
root@dione:~# pvcreate /dev/sdc3 WARNING: software RAID md superblock detected on /dev/sdc3. Wipe it? [y/n] y Wiping software RAID md superblock on /dev/sdc3. Physical volume "/dev/sdc3" successfully created
Volume Gruppe vol1 um /dev/sdc3 erweitern:
root@dione:~# vgextend vol1 /dev/sdc3 Volume group "vol1" successfully extended
Volume vol1/home in Spiegel umwandeln:
root@dione:~# lvconvert -m1 vol1/home --corelog vol1/home: Converted: 0.0% ...
Status des LV:
root@dione:~# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Move Log Copy% Convert Devices home vol1 mwi-aom-- 711.00g 13.38 home_mimage_0(0),home_mimage_1(0) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(158976) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(32187) [home_mimage_0] vol1 Iwi-aom-- 711.00g /dev/md3(191163) [home_mimage_1] vol1 Iwi-aom-- 711.00g /dev/sdc3(0)
Ubuntu aufräumen
% aptitude remove --purge `deborphan`
% aptitude remove --purge `deborphan --guess-all`
% apt-get autoremove --purge
Arducopter Links
http://fpv-community.de/forumdisplay.php?47-ArduPilot-Mega
http://www.ecalc.ch/xcoptercalc.php?ecalc&lang=de
http://fpv-treff.de/viewforum.php?f=66
Mavlink Frsky S.Port Unterstützung
- Quellcode von github herunterladen https://github.com/wolkstein/MavLink_FrSkySPort
- Libraries Verzeichnis in das Arduino Verzeichnis kopieren.
- Single Cell Monitorung abschalten (Zeilen 87 u. 88 in MavLink_FrSkySPort.ino auskommentieren):
//#define USE_SINGLE_CELL_MONITOR //#define USE_AP_VOLTAGE_BATTERY_FROM_SINGLE_CELL_MONITOR // use this only with enabled USE_SINGLE_CELL_MONITOR
- Teensy 3.1 flashen
MavLink FrSky SPort mit Teensy 3.1
https://github.com/wolkstein/MavLink_FrSkySPort
http://copter.ardupilot.com/wiki/common-frsky-telemetry/
http://copter.ardupilot.com/wiki/common-how-to-get-apmpixhawk-telemetry-on-your-taranis/
Invertieren von TXD und RXD am FTDI USB Adapter
Das Problem ist, dass ein einfacher FTDI USB Adpater RXD und TXD invertieren muss. Um diese Einstellung anzuspassen kann das Tool FT_Prog verwendet werden.
FTDI USB Adpater am Computer anschließen und unter „Deivces“ das Menü „Scan and Parse“ auswählen:
Danach erscheinen die Adpater Einstellungen:
Unter „Device Tree“ -> „Hardware Specific“ -> „Invert RS232 Signals“ sind die Optionen zum invertieren des TXD und RXD zu finden:
Danach kann das „flash icon“ angeklickt werden:
Um die Einstellungen zu schrieben jetzt noch den „Programm“ Button betätigen: