IRC log of #maemo for Tuesday, 2017-01-17

*** lobito has quit IRC00:02
*** Michael_a380 has joined #maemo00:04
*** geaaru has quit IRC00:14
*** L29Ah has quit IRC00:18
DocScrutinizer05how the heck would I disable the twl4030 keypad IRQ?  sth about:00:54
DocScrutinizer05--w------- 1 root root 4096 2017-01-16 23:52 /sys/bus/platform/drivers/twl4030_keypad/bind00:54
DocScrutinizer05--w------- 1 root root 4096 2017-01-16 23:52 /sys/bus/platform/drivers/twl4030_keypad/unbind00:54
DocScrutinizer05?00:54
DocScrutinizer05Vajb: to lock kbd completely: ## echo 'twl4030_keypad' >/sys/bus/platform/drivers/twl4030_keypad/unbind; ##  to re-enable: ## echo 'twl4030_keypad' >/sys/bus/platform/drivers/twl4030_keypad/bind; ##01:00
DocScrutinizer05swiftly tested, seems to work with no obvious negative side effects01:01
DocScrutinizer05Vajb: now what you need is a way to make that happen on device/screen lock and unlock respectively01:02
DocScrutinizer05freemangordon: ^^^ idealy this becomes a patch to mce, right?01:03
*** xorly has quit IRC01:03
DocScrutinizer05Vajb: until then, I'm pretty sure you can clutch together sth with dbus-scripting, triggering the according commands as mentioned above on signals that indicate tklock / unlock01:04
DocScrutinizer05I suggest:01:06
DocScrutinizer05signal sender=:1.14 -> dest=(null destination) serial=525 path=/com/nokia/mce/signal; interface=com.nokia.mce.signal; member=tklock_mode_ind01:06
DocScrutinizer05   string "locked"01:06
DocScrutinizer05aka "mce sends signal: 'device locked' "01:07
DocScrutinizer05see pkg "dbus-scripting"01:08
DocScrutinizer05http://paste.opensuse.org/7477913601:13
DocScrutinizer05note that I strongly recommend to use dbus-scripting instead dbus-monitor01:13
*** Pali has quit IRC01:16
*** Michael_a380 has quit IRC01:16
*** xes_ is now known as xes01:20
*** N-Mi_ has quit IRC01:36
DocScrutinizer05not recommended (but works):   dbus-monitor --system|grep --line-buffered -A1 'interface=com.nokia.mce.signal; member=tklock_mode_ind'|while read; do case $REPLY in *string\ \"unlocked\"*) echo UNLOCKED; echo 'twl4030_keypad' >/sys/bus/platform/drivers/twl4030_keypad/bind;; *string\ \"locked\"*) echo LOCKED; echo 'twl4030_keypad' >/sys/bus/platform/drivers/twl4030_keypad/unbind;; esac; done01:43
*** flo_lap has quit IRC01:48
DocScrutinizer05no idea if maybe (from syslog) this would be better suited:  Jan 17 00:49:21 IroN900 systemui-tklock[1085]: Method call received from: :1.14, iface: com.nokia.system_ui.request, method: tklock_close01:50
*** Kabouik has quit IRC02:30
*** capitanocrunch has joined #maemo02:40
*** capitanocrunch has joined #maemo02:40
*** capitanocrunch has left #maemo02:41
*** jerardepardieu has joined #maemo02:42
jerardepardieu~dnsmasq02:43
*** jerardepardieu has left #maemo02:44
*** capitanocrunch has joined #maemo02:51
*** capitanocrunch has joined #maemo02:51
*** L29Ah has joined #maemo02:52
*** capitanocrunch has quit IRC02:52
*** Wizzup has quit IRC02:59
*** capitanocrunch has joined #maemo03:01
*** capitanocrunch has quit IRC03:34
*** CraigEr has quit IRC03:51
*** M4rtinK has quit IRC03:55
*** Wizzup has joined #maemo04:13
*** MIchael_a380 has joined #maemo04:54
*** ravelo_ has joined #maemo05:00
*** ravelo has quit IRC05:03
*** cyphase has quit IRC05:21
*** Wizzup has quit IRC05:23
*** spiiroin_ has joined #maemo05:26
*** cyphase has joined #maemo05:26
*** spiiroin has quit IRC05:28
*** dreamer has quit IRC05:30
MIchael_a380~obsolete05:39
MIchael_a380~battery05:40
infobotextra, extra, read all about it, polarcell is http://www.ebay.co.uk/itm/390402445382 BL-5J Replacement05:40
MIchael_a380~deprecated05:40
infoboti heard deprecated is a term in computer software that indicates a feature is no longer officially supported even if it still exists and may eventually be removed altogether.  Deprecated is often misspelled 'depreciated' which is a financial term.05:40
MIchael_a380~broken package05:43
MIchael_a380~pkg05:44
infobotsomebody said pkg was http://maemo.org/packages/05:44
*** florian has joined #maemo05:58
*** at1as has joined #maemo05:59
*** florian_kc has quit IRC06:00
*** lxp1 has joined #maemo06:01
*** lxp has quit IRC06:04
*** at1as has quit IRC06:04
MIchael_a380Found it :) http://wiki.maemo.org/Community_SSU/known_broken_packages06:08
DocScrutinizer05~listvalues known_broken_packages06:15
infobotFactoid search of 'known_broken_packages' by value returned no results.06:15
*** at1as has joined #maemo06:18
DocScrutinizer05freemangordon: sorry, to open a ticket (aka 'create an issue') on github, I'd need an account which I don't have and don't want to start a browser compatible with the capchas and stuff they have there06:18
*** at1as has quit IRC06:19
*** at1as has joined #maemo06:26
*** Juesto has joined #maemo06:49
*** DocScrutinizer05 has quit IRC07:03
*** DocScrutinizer05 has joined #maemo07:03
*** spiiroin_ has quit IRC07:43
*** MIchael_a380 has quit IRC08:19
*** spiiroin_ has joined #maemo08:37
*** arcean has joined #maemo08:40
*** freemangordon has quit IRC08:55
*** freemangordon has joined #maemo08:58
*** Oksanaa has joined #maemo09:42
*** spinal84 has joined #maemo09:55
*** Wizzup has joined #maemo10:00
*** jskarvad has joined #maemo10:01
*** jskarvad has quit IRC10:01
*** jskarvad has joined #maemo10:01
VajbDocScrutinizer05: hmm i can't seem to find dbus-scripts from apmanager nor apt and besides all that looked a bit over my head atm. Thx for ur investigation i hope it'll make editting mce.ini to work as expected :)10:01
*** spinal84 has quit IRC10:04
*** BitEvil has joined #maemo10:22
*** SpeedEvil is now known as Guest458510:22
*** geaaru has joined #maemo10:23
*** Guest4585 has quit IRC10:23
*** spinal84 has joined #maemo10:26
*** jskarvad has quit IRC10:29
*** xorly has joined #maemo10:41
bencohfreemangordon: have you ever tried libgoo/gstgoo (ti/omx api abstraction)?10:48
*** spinal84 has quit IRC10:52
*** spinal84 has joined #maemo11:01
*** Kabouik has joined #maemo11:03
*** jskarvad has joined #maemo11:08
*** jskarvad has quit IRC11:08
OksanaaJust had a bug (affecting only one channel in telepathy-idle, as far as I know) where my local_name ( and in outcoming messages, remote_uid ) was affected. Null at times, or wrong value at other times. No idea why. Cleaned it up is SQL database with two update commands, hoping all is well.11:12
*** krnlyng has quit IRC11:20
*** Milhouse has quit IRC11:25
*** krnlyng has joined #maemo11:33
VajbDocScrutinizer05: i just realised that probably mediaplayer is overdriving mce.ini setting in that matter.12:02
Vajbbecause it needs to be playing something for volume keys to work12:03
Vajbwhile locked that is. I found dbus-script-settings and am trying with it on my test device12:04
*** silviof has quit IRC12:10
*** silviof has joined #maemo12:15
bencohVajb: most probably, yes12:15
bencohI actually wanted to implement that behavior in other players :)12:15
Vajbhmm maybe while on it u can change it ;)12:16
bencohbecause I find not being able to change volume when device is locked quite frustrating12:16
Vajbor maybe in next version of omp one can choose wether to disable or enable volume keys12:16
Vajbor even choose their behavior12:16
bencohsince unlocking it with systemui/powerbutton will stop playback for a second12:16
bencohand same goes for devlock unlock UI12:17
Vajbyup, but with slider it is not stopped12:17
bencohslider?12:17
bencohlock switch?12:17
Vajbyes12:17
bencohsame with keyboard slider, if device doesn't need to enter code12:17
bencohI'd like to fix that as well actually12:18
Vajbhmm for me playback is not interrupted with keybslider12:18
bencohit is only if I need to enter code iirc12:19
bencoh(not sure about that one, though)12:19
*** eMHa has quit IRC12:23
Vajbah with code it stops briefly12:24
bencohyeah12:26
*** jskarvad has joined #maemo12:33
*** Michael_a380 has joined #maemo12:38
*** N-Mi_ has joined #maemo12:40
*** Oksanaa has quit IRC12:42
*** Oksanaa has joined #maemo12:54
*** Michael_a380 has quit IRC13:07
Vajbok tried with dbus-script-settings and it did nothing :)13:12
Vajbguess i lack the know how13:12
Vajbeasiest for me would be to disable it with epoxy13:12
*** xorly has quit IRC13:15
*** pipoclown has joined #maemo13:19
*** pipoclown is now known as dreamer13:20
*** dreamer has joined #maemo13:21
*** N-Mi_ has quit IRC13:48
*** robinak has quit IRC13:58
*** robink has joined #maemo13:59
*** NeKit has quit IRC14:03
KotCzarnyvajb: or maybe.. use one of the other players available? *hinthint*14:05
Vajboh a fresh aproach :)14:08
*** spinal84 has quit IRC14:14
*** N-Mi_ has joined #maemo14:14
KotCzarny:)14:16
KotCzarnyphysical abuse to poor n900 because some software doesnt have a proper option seems excessive14:16
Vajbwell i didn't say i will do it, but that it would be easiest solution ;)14:19
Vajbi think best would be option in player to choose wether to disable volume or to use it for some other thing14:20
*** xorly has joined #maemo14:21
KotCzarnyyeah, post to the thread then14:21
Vajboh such a 2016 solution14:27
Vajbbut maybe i will when i have some spare moment and can recall the problem.14:27
*** xorly has quit IRC14:33
*** frals has quit IRC14:43
KotCzarnyok, record the video of your life-damaging issue, post on yt and every possible social site and expect problem to resolve itself.14:43
KotCzarnyand give you pony.14:43
KotCzarny;)14:43
*** frals has joined #maemo14:44
*** frals has joined #maemo14:44
KotCzarny2017 enough?14:44
*** NeKit has joined #maemo14:59
Vajb:D15:14
Vajbnow i begin to wonder if it is possible to upload video to yt from n90015:14
VajbKotCzarny: btw, laptop os working very well. With my typical use i haven't been able to make it stuck (which is good) so thx a lot for the hint!15:20
Vajbis*15:21
KotCzarny:)15:21
*** at1as has quit IRC15:23
*** xorly has joined #maemo15:27
bencohVajb: wanna dev a youtube-sharing-plugin? :>15:43
KotCzarnybancoh: authoring ;)15:44
*** at1as has joined #maemo15:47
bencohKotCzarny: ?15:50
KotCzarnyshoot, edit and upload own material = authoring15:51
*** at1as has quit IRC15:52
bencohah, right15:54
*** at1as has joined #maemo16:02
*** BitEvil is now known as SpeedEvil16:04
*** coderus has joined #maemo16:07
coderusTMO: The maemo.org - Talk database has encountered a problem. =(16:07
*** coderus has left #maemo16:07
*** NeKit has quit IRC16:08
*** arcean has quit IRC16:38
*** L29Ah has quit IRC17:03
*** at1as has quit IRC17:04
*** xkr47 has quit IRC17:05
*** xkr47 has joined #maemo17:05
*** spiiroin_ has quit IRC17:14
*** florian has quit IRC17:17
*** LauRoman has quit IRC17:40
*** LauRoman has joined #maemo17:42
*** LauRoman has quit IRC18:02
*** NeKit has joined #maemo18:06
*** LauRoman has joined #maemo18:10
*** LauRoman has quit IRC18:12
*** LauRoman has joined #maemo18:14
VajbKotCzarny: http://talk.maemo.org/showpost.php?p=1522133&postcount=1715 I did it and whats more i used microb. Failed with Opera first.18:18
*** LauRoman has quit IRC18:20
*** LauRoman has joined #maemo18:21
*** spiiroin_ has joined #maemo18:22
*** at1as has joined #maemo18:28
*** LauRoman has quit IRC18:36
*** LauRoman has joined #maemo18:37
*** eMHa has joined #maemo18:45
*** kgu has quit IRC18:45
*** LauRoman has quit IRC18:48
*** LauRoman has joined #maemo18:51
*** flo_lap has joined #maemo19:01
DocScrutinizer05Vajb: ((realised that probably mediaplayer is overdriving mce.ini)) good point. Needs further checking19:13
Vajbdoc: just made feature request of the matter in omp thread in tmo.19:19
DocScrutinizer05this is a architetural decision issue.19:23
*** geaaru has quit IRC19:24
DocScrutinizer05any app *usually* receives input events via X11. However X11 usually doesn't send events to the app when it doesn't have focus (you see that with maemo medi aplayer which only works vol+/- when in foreground, which is basically correct behaviour). Now when you lock screen, X11 is supposed to also obey mce.ini settings regarding keypress events. However the concept of "X11 focus" makes no sense when screen locked - so an app like media19:28
DocScrutinizer05player interested in keypress events when screen locked should probably open /dev/input itself and take *all* events it's interested in (here: vol+/-), and same app might make sure the /dev/input* delivers events so app may want to bind keypad kernel driver when device locked, to override what mce (right now doesn't) do19:28
DocScrutinizer05this is a typical issue for getting handled by middleware managing resource allocations. mce does a very poor job on this, freeesmartphone.org has a more comprehensive and coherent concept for this, alas FSO isn't used in maemo19:31
*** louisdk has joined #maemo19:33
*** Pali has joined #maemo19:33
DocScrutinizer05see http://wiki.openmoko.org/wiki/FSO_Resources fsoraw (my invention ;-S )19:34
DocScrutinizer05;-D even19:35
DocScrutinizer05http://wiki.openmoko.org/wiki/FSO_Resources#Automatic_way particularly19:46
DocScrutinizer05raw == resource allocation wrapper19:47
*** N-Mi_ has quit IRC19:51
*** fuz_ has quit IRC19:56
*** LauRoman has quit IRC20:02
DocScrutinizer05actually locking device shall put a screensaver (here: lockscreen) on top of all other windows and give X11 focus to it, even when immediately after the screen is shut off physically. So any keypress when device (screen) locked would only create X11 events delivered to the lockscreen process. Vol+/- should be a side channel (only while device locked?) via keypad->kerneldriver->/dev/input*->(hulda or )mce->dbus-signal to which an app like20:02
DocScrutinizer05mediaplayer could listen20:02
*** LauRoman has joined #maemo20:04
Juestothat's a great approach20:05
*** fuz_ has joined #maemo20:05
DocScrutinizer05alas architecture, and arch is hard to change once a system got established20:08
KotCzarnyvajb: good job! also tmo is one of the few sites actually checked to be usable on n900 ;)20:10
*** Kabouik has quit IRC20:13
*** Oksanaa has left #maemo20:19
timelesshi DocScrutinizer0520:19
timelessif you had a linux (md) raid array and were having trouble w/ it, what channel would you use to get help? :/20:19
DocScrutinizer05ugh20:20
Juestotry alis20:20
Juestoim sure theres a channel about raid somewhere20:20
DocScrutinizer05#debian ? even #devuan maybe, or is there #linux-admin ?20:20
Juestotry ##linux first timeless20:20
DocScrutinizer05timeless: I'd probably first check stackoverflow if some answers there20:21
Juestooh yes, searching too ^20:21
DocScrutinizer05timeless: https://www.ixquick.com/do/search?q=stackoverflow+md+raid20:24
timelesshttp://stackoverflow.com/questions/41525921/ubuntu-mdadm-failed-array-cannot-get-replacement-drives-into-the-array20:24
timeless"Questions on professional server- or networking-related infrastructure administration are off-topic for Stack Overflow unless they directly involve programming or programming tools. You may be able to get help on Server Fault." – Mureinik, Mark Rotteveel20:24
Juesto;)20:26
timelesshttp://serverfault.com/questions/180138/software-raid-mdadm-not-adding-spare20:26
timelessseems like a good match to my problem20:26
DocScrutinizer05https://www.ixquick.com/do/search?q=stackexchange+md+raid20:28
Vajboh boy. Had a good idea to putting telegram downloads folder to tracker, but since it not in MyDocs i couldn't reach it from tracker-cfg. Then i tried to make symlink in mydocs to point that folder, but that sems to be impossible too..20:28
DocScrutinizer05no symlinks on VFAT ;-P20:29
timelessDocScrutinizer05: none of those are helpful20:30
DocScrutinizer05but I'm pretty sure you can index whatever you like, via tracker.cfg20:30
DocScrutinizer05timeless: sorry then, good luck anyway20:30
*** jskarvad has quit IRC20:30
DocScrutinizer05timeless: #devuan is "de* Veteran Unix Admins n". maybe you find some veterans there that have a good advice20:34
timelessthx20:35
DocScrutinizer05take care to not go too offensively off topic though. Not a general problem there but don't expect to be on topic with such question20:36
Vajbyeah learnt that :)20:36
DocScrutinizer05timeless: also, reply time is within hours raher than minutes20:36
DocScrutinizer05timeless: considered pinging warfare and/or xes, our maemo sysops?20:38
timelessis nick highlight (what you did) enough?20:42
DocScrutinizer05warfare: ^^^20:44
DocScrutinizer05xes: ^^^20:44
DocScrutinizer05warfare: xes: md raid issue, maybe you can help?20:45
DocScrutinizer05timeless: you probably should post a terse explanation resp question20:45
timelesscan someone suggest a place to get help w/ an md raid array? I had a raid1 array (one partition mirrored on two drives), and one of the drive's cables came out -- i've tried to   mdadm --manage /dev/md1 --add /dev/sdf7 the drive, and it rebuilds, but once it finishes rebuilding, it's converted into a spare instead of left as a normal drive20:45
timeless^^20:45
DocScrutinizer05you looked into https://raid.wiki.kernel.org/index.php/RAID_setup ?20:47
DocScrutinizer05https://raid.wiki.kernel.org/index.php/A_guide_to_mdadm20:49
DocScrutinizer05sorry I'm no mdadm expert myself, just used those pages when setting up mine20:49
DocScrutinizer05I *guess* you first need to switch the defective drive 'offline' somehow, the possibly format or rebuild or whatever, then simply online it again. *adding* a new (third) driver to a raid1 will probably result in exactly what you see, and needs reconfiguration of the raid setup to make the drive an active part of the raid20:52
DocScrutinizer05don't bash me when that's nonsense, I just uttered wild guessing20:53
DocScrutinizer05http://wstaw.org/m/2017/01/17/plasma-desktopU17764.png20:55
KotCzarnyhttp://www.linuxquestions.org/questions/linux-server-73/mdadm-re-added-disk-treated-as-spare-750739/#post493689720:57
KotCzarnydoesnt seem optimistic20:57
KotCzarnymaybe some bug in mdadm20:57
KotCzarnymaybe first disk also has a problem?21:00
timelessKotCzarny: yeah, i'm pretty sure i read that a while ago21:01
timelessand yeah, i was sorta nodding "yes, i'd go w/ zfs too"21:01
timelessKotCzarny: the first drive is failing, yes21:01
KotCzarnyhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=767243#1521:01
timelesssda is failing https://www.irccloud.com/pastebin/j8byIHuF/21:01
KotCzarnyseems to also confirm this behavior21:01
KotCzarnycorrected by brute force ;)21:02
MaxdamantusActual RAID is silly.21:02
KotCzarnybut probably some data will be lost21:02
timelessKotCzarny: that bts url looks promising21:02
KotCzarnymake a backup21:03
KotCzarny;)21:03
timelessMaxdamantus: yeah... i'm a fan of zfs. i'm not a fan of raid21:03
timelessit's more or less broken 7 ways to sunday, by design21:03
timelessbut,... i inheritted this system21:03
timelessKotCzarny: thankfully (or not), this is the backup21:03
KotCzarny:)21:03
MaxdamantusYou basically need a journal (preferably using really fast NVRAM) for it to be consistent.21:03
timelessliterally, peach's only job in life is to hold backups of everything else21:03
Maxdamantusotherwise you have write holes in pretty much any configuration.21:03
DocScrutinizer05timeless: ummm https://www.irccloud.com/pastebin/j8byIHuF/ looks like a hw defect on sda21:07
* timeless nods21:07
DocScrutinizer05so AIUI you should simply swap sda for a working HDD, assuming that you have intact data on e.g. sdb in a [sda sdb] raid121:08
*** esaym153 has quit IRC21:08
DocScrutinizer05make sure you (or rather md) don't overwite data on sdb with crap from fresh sda21:09
timelessso, is the argument that sda is bad and i was unlucky in that sdf fell out of the raid21:09
KotCzarny:)21:09
timelessthere already are sdb..sde21:09
DocScrutinizer05in a raid1?21:10
DocScrutinizer05so you have a raid1 with 3 spares?21:10
timelessmy raid hell https://www.irccloud.com/pastebin/jvbwumkt/21:10
timelessb / e is a pair21:10
timelessc / d is a pair21:11
DocScrutinizer05OH shit21:11
timelessa / f is an unhappy pair21:11
timelessbecause the stupid data cable fell out of f21:11
DocScrutinizer05so you have FOUR raid1 on sda?21:12
DocScrutinizer05on partitons21:12
timelessi think this is mostly "because linux" + "no zfs"21:13
timelessw/ zfs, in a pair, if one drive fails, your replace it w/ a bigger drive, then you let it mirror, then you replace the smaller drive, let it mirror, then you grow the pool21:13
timelessyes21:13
timelessbut... i think "because linux" + "no zfs", it instead went "oh well, let's just create new partitions for each grow operation"21:13
DocScrutinizer05that's pretty weird since your kernel logs hw IO error on sda, not sdf21:13
timelesssdf was just unlucky, loose cable21:13
timelesssda is probably a much older drive21:14
timelessif i were to guess21:14
DocScrutinizer05smartmon sda21:14
KotCzarnytimeless, your nick seems familiar, but i cant remember what project21:14
timelessQt i think21:14
timelessbased on my memory21:15
timelessbut it's nearly 6 years ago now :/21:15
KotCzarny:)21:15
timelessi touched pretty much everything21:15
DocScrutinizer05microB21:15
timelessyeah that21:15
timelessplus ux + localization + bug help + community21:15
DocScrutinizer05yeah, translations21:15
DocScrutinizer05the still fuckedup "tana_fi_*" subject ;-P21:16
* timeless looks for smartmon21:17
DocScrutinizer05SMART21:17
DocScrutinizer05you know SMART, do you?21:17
*** esaym153 has joined #maemo21:17
timelessyeah, i get email from smart every day complaining about sda dying on peach :(21:17
KotCzarnycan you get that failing pair offline ?21:17
DocScrutinizer05Self Monitoruing And Reporting Foo21:18
DocScrutinizer05I *guess* md4 is SOL21:19
timelessDocScrutinizer05: installing smartmontools didn't give me a `smartmon`21:19
DocScrutinizer05o.O21:19
timelessi still have `smartctl` and `smartd` (which i had before)21:19
DocScrutinizer05aah yeah smartctl21:19
KotCzarnysmart-notifier - graphical hard disk health status notifier21:19
KotCzarnymaybe this one?21:19
KotCzarnythough i dont know what doc wanted to do21:20
KotCzarny;)21:20
timelesssmartctl https://www.irccloud.com/pastebin/CxNAOOMm/21:20
KotCzarnyusually smartctl/hdparm is enough21:20
DocScrutinizer05smartctl -a /dev/sda21:20
timeless^ DocScrutinizer0521:21
DocScrutinizer05reading21:21
* timeless runs badblocks on sda6 and sdf721:22
KotCzarnywd black went boo boo? oh well, nothing is safe anymore! :)21:23
DocScrutinizer05Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error21:23
DocScrutinizer05# 1  Short offline       Completed: read failure       90%     27923         95318790921:23
DocScrutinizer05you got a bad sector at 95318790921:25
DocScrutinizer05I'd guess21:25
DocScrutinizer05FWIW: (maybe just reference) http://paste.opensuse.org/9598228421:27
KotCzarnyhttps://bugs.maemo.org/show_bug.cgi?id=236821:28
povbotBug 2368: -, timeless isn't nice21:28
KotCzarny:>21:28
KotCzarnyresolved fixed ;)21:28
* timeless nods21:28
warfaretimeless: md issue fixed? (I don't want to read the whole backlog, I'm just lazy)21:28
KotCzarnywarfare, raid1 doesnt rebuild with badblocks on only drive left21:29
KotCzarnyjust a quick summary21:29
KotCzarnyunless you know how to ignore read errors21:29
warfareoO21:30
KotCzarnyand i bet he has more lurking around on other drives too21:30
DocScrutinizer05your damn /proc/mdstat puzzles hell outa me, by the indices [2] [3] etc21:31
DocScrutinizer05https://www.irccloud.com/pastebin/jvbwumkt/21:31
DocScrutinizer05I always thought a raid1 had just [1],[0] (in that sequence) with [0] being 'master'21:32
DocScrutinizer05I never tried to really learn what it actually is all about21:33
DocScrutinizer05anyway one thing's for sure: you should do a dd if=/dev/sda of=whateverishugeenough; and then swap sda for a drive without smart errors21:34
DocScrutinizer05warfare: sdf data cable fell off, seems md4 never recovers, prolly because of sda has IO errors since ages already21:35
KotCzarny^ bad suggestion, dd_rescue is better, it wont break on read errors21:35
warfare(I won't start to question the use of partions for raid devices)21:36
* DocScrutinizer05 neither :-P21:36
timelessDocScrutinizer05: not md4, md121:37
timelesswarfare: inheritted crap21:37
warfaretimeless: Ugh, good luck.21:37
timelessi'm pretty sure it's because the drives were replaced by bigger ones and the way the person grew the lv was by adding paired partitions21:37
warfareCan I recommend putting everything on 2 physical disks, put lvm on top and let lvm mirror the blocks?21:38
warfaretimeless: But I think the data on md1 is gone.21:39
DocScrutinizer05timeless: ((md1) makes sense with your smartmon result "IO error at 10%"21:40
DocScrutinizer0510% (the checked 10 remaining 90) is most likely in md121:40
timelesswarfare: if i'm going to rebuild this stupid machine, there's no way i'm using md21:40
timelessmy general preference is zfs/zpool21:40
timelessi know of 0 good arguments in favor of md or lvm21:41
warfaretimeless: Please use freebsd for that :)21:41
timelesswarfare: fine w/ me21:41
timelessi'm really agnostic21:41
DocScrutinizer05veteran meeting ;-D21:41
* timeless has used osx, osol, nexenta for zfs21:41
* timeless installs devscripts21:42
* DocScrutinizer05 waits for GeneralAntilles chiming in21:42
DocScrutinizer05warfare: what do yiu use for offsite backup? I'm using duplicity right now, it sucks donkey balls21:43
warfareDocScrutinizer05: I just rsync the backuppc directory over.21:43
DocScrutinizer05aaah ok, that requires a vull double up of HDD space21:43
DocScrutinizer05full*21:44
warfareAnd everything else which is backup worthy is in a few dmg's on my home server which get copied to a hetzner host every week.21:45
DocScrutinizer05BackupPC is nice but conceptually runs on backup target, while duplicity runs on source21:45
DocScrutinizer05I guess you could run BackupPC on, and beackup, localhost. and possibly even to a sftp target, but...21:46
* DocScrutinizer05 sometimes feels like knowing enough of IT and computers to eventually find a job as bricklayer21:48
timelessfwiw https://www.irccloud.com/pastebin/MjFaRZFC/badblocks-sda6-sdf721:49
DocScrutinizer05it's frustrating when you know enough of a topic to start hating it21:49
warfareso sdf7 is actually ok?21:49
timelessyeah21:49
timelesssdf was just unlucky wrt the data cable21:49
timelessit's sda that's failing21:49
KotCzarnymaybe you can get lucky if you move those bad sectors to sda?21:50
timeless?21:50
DocScrutinizer05so it can't rebuild the logically broken sdf21:50
DocScrutinizer05from physically broken sda21:50
KotCzarnyhdparm --write-sector would force badblock reallock21:50
timelessKotCzarny: got a specific command21:50
timeless(otherwise i'll read the man page)21:50
KotCzarnyits in that bts ticket21:50
timelessah yeah :)21:51
KotCzarnybut dont confuse sda sector with relative sda6 rector21:51
DocScrutinizer05I seen same "cannot reallocate bad blocks" on my sdb (now nuked)21:51
timelessKotCzarny: err21:51
DocScrutinizer05yeah, https://www.irccloud.com/pastebin/MjFaRZFC/badblocks-sda6-sdf7 usn't in line with LBA on smartctl log21:52
timelessso, since the sectors were reported by badblocks for sda621:52
DocScrutinizer05you should write to sda621:52
KotCzarnyyou can also try to find out what file occupies those sectors21:52
timelessKotCzarny: ooh, i like that idea21:53
KotCzarnyand maybe redo the specific backup only21:53
timelesshow? :)21:53
KotCzarnywhat fs? extX ?21:53
timelessi think the answer is "lvm"21:53
KotCzarnynah21:53
KotCzarnyoh, raw backup?21:53
timelessthis is what the world looks like https://www.irccloud.com/pastebin/axU4eK7j/21:53
timelessbasically, /dev/md1 is one of the things backing VG peach-raid1 which in turn backs LV peach-sys-backups which in turn backs21:55
KotCzarnyo.O21:55
DocScrutinizer05blkid21:55
timelessext3 /backups21:55
timelessa maze of twisty hell... because someone couldn't be bothered to use ZFS... "because linux"21:55
DocScrutinizer05**make a full backup of sda first!**21:56
timelessblkid https://www.irccloud.com/pastebin/k4sfXJMV/21:56
timelessthat's helpful21:56
KotCzarnywell, you can try hdparm --read-block 104846128 and GUESS21:56
timelessKotCzarny: got a syntax for that?21:57
timelessall i see in hdparm is --read-sector21:58
DocScrutinizer05read man hdparm! it's a very dangerous tool21:58
KotCzarnyhdparm --read-block 104846128 /dev/sda621:58
KotCzarnyit will dump the sector on the screen21:58
timelessno. https://www.irccloud.com/pastebin/K24oqE17/21:58
KotCzarnyread-sector then21:59
DocScrutinizer05((blkid)) full list (no parameters) would be even more helpful ;-)21:59
KotCzarny:)21:59
timelesscute https://www.irccloud.com/pastebin/Clsp7XFG/21:59
* timeless goes to try to figure out what the hex says https://www.irccloud.com/pastebin/K9rTDp1q/22:00
DocScrutinizer05((cute)) HAHA indeed ;-P22:00
KotCzarnymysterious22:01
DocScrutinizer05honestly, go make a dd_rescure backup of sda6!22:01
KotCzarnydoc, its not that easy, its a part of live structure22:01
DocScrutinizer05umount is your friend22:02
DocScrutinizer05and even without, how high is the risk to backup totally harbled data22:03
DocScrutinizer05garbled22:03
DocScrutinizer05prolly zilch as long as you remount ro22:03
DocScrutinizer05or simply don't write (noatime!)22:04
DocScrutinizer05you even can do a simple tar backup on logical files of md122:05
DocScrutinizer05you can see the errors pop up in syslog then22:05
DocScrutinizer05and with a tad of luck you can identify the badblock-riddled files22:06
KotCzarnyfunny thing is that, when backup fails or is taken down for maintenance it's probably the time when backup restore would be needed22:07
DocScrutinizer05actually the latter is roughly what I did when my sdb blew chunks, got me a raid1 and copied all files over22:07
KotCzarnycan you duplicate backups to another source?22:07
KotCzarnys/source/destination/22:08
infobotKotCzarny meant: can you duplicate backups to another destination?22:08
timelessso, the problem is that this is a fragment of a VG which is part of a LV22:10
timelessi think i could remove sda6 and try adding sdf722:11
DocScrutinizer05???22:11
warfaretimeless: this could actually work.22:11
DocScrutinizer05aren't both _already_ added to md1?22:12
*** flo_lap is now known as florian22:12
KotCzarnysdf7 isnt active22:12
timelessgot a command?22:12
timeless... https://www.irccloud.com/pastebin/FhMubmPl/22:12
*** DrCode has joined #maemo22:12
timelessdevice busy https://www.irccloud.com/pastebin/DeGtG6uK/22:12
timelessKotCzarny: hrm, would it help if i unmounted the LV?22:13
KotCzarnymaybe22:13
DocScrutinizer05timeless: why do you want to remove drives from a md?22:13
DocScrutinizer05or add?22:13
warfaremdadm --manage /dev/md1 --remove /dev/sdf722:13
KotCzarnybut question is, can you take whole lv offline?22:14
warfareMore interesting might be if linux recognizes the pv signature on the drive.22:14
DocScrutinizer05aiui a md would still try to function as good as possible even when one drive blows chunks22:14
timelesswarfare: that worked22:15
timelessbut it left me w/ the sda6 which is the failed drive22:15
timelesscan i mark it as failed? :)22:15
timelessactually, maybe that's what i should do22:15
DocScrutinizer05a totally uneducated guess: I'd try to assemble md1 like it originally was, and do a backup of it22:15
warfaremdadm --manage /dev/md1 --fail /dev/sda622:16
KotCzarnytimeless, mount |grep /dev/md1 ?22:16
timelessmdadm: set device faulty failed for /dev/sda6:  Device or resource busy22:16
DocScrutinizer05*now* we're talking :-)22:16
warfareKotCzarny: /dev/md1 might be a pv, being part of a vg with parts of a lv on it..22:16
timelessKotCzarny: as noted, [sda6+sdf7] contribute to md1 which contributes to an PG which contributes to an LV which is ext322:17
timelesssomething like what warfare said22:17
timelessall "because linux"22:17
KotCzarnythen if you want to take it offline whole thing would need to go offline?22:17
DocScrutinizer05no, because ENOBRAIN22:17
* timeless so wants to shoot this system and replace it w/ fbsd + zfs in the cloud22:17
KotCzarnyand that's why i asked if it can go offline22:17
timelessKotCzarny: oh, "yes, there's nothing wrong w/ taking the whole thing offline"22:18
KotCzarnythen you can try zeroing the sectors, maybe copying them from sdf drive and all will be peachy22:18
DocScrutinizer05timeless: why not start with genuine md1, untweked and then see what it reports?22:18
KotCzarnyor you can just say the whole thing failed and experiment on it ;)22:18
timelessDocScrutinizer05: eh??22:19
DocScrutinizer05you --remove'd and --add'ed drives to md1. Maybe try original productive assembly first?22:19
DocScrutinizer05if that makes any sense22:19
timelessok, i'm wrong22:20
DocScrutinizer05or doesn't it 'come up' anymore?22:20
timelessi can't take this thing offline22:20
timelessthere are two LVs (root and backup) but they share a VG22:20
DocScrutinizer05OUCH!!22:21
* timeless really really really really wants to shoot this configuration22:21
DocScrutinizer05don't shoot the system, shoot the admin who committed that crime, possibly using the system as projectile22:21
KotCzarnyyou know what they say about horse with broken leg22:22
KotCzarny;)22:22
KotCzarnyif you have time you can check for files that fail to read22:22
DocScrutinizer05timeless: what's the total storage size?22:22
timeless~5TB ?22:22
DocScrutinizer05timeless: can't you simply get a few HDD and copy the whole shite to sth sane?22:22
timelesserr, maybe ~4.5TB?22:22
KotCzarnymore resource consuming but otherwise you would have to solve the lv puzzle22:22
KotCzarnysure, why not, you are going to bed anytime soon?22:23
timelessit's 3pm22:23
timelessi don't have any 5TB drives handy22:23
DocScrutinizer05then don't rush this22:23
KotCzarnyfind . -type f -exec cat {} >/dev/null \;22:23
DocScrutinizer05not worth the headache22:23
KotCzarny;)22:23
DocScrutinizer05sth like that, yes22:24
KotCzarnymaybe do some error redirect to catch the failing file22:24
KotCzarnyi wonder how that raid would react on badblock during read though22:24
DocScrutinizer05isn't that what a raid genuinely is about, to handle it22:25
DocScrutinizer05it will try to read same block from sdf722:25
DocScrutinizer05that's why I suggested to start with productive assembly of md122:26
DocScrutinizer05when BOTH sdf7 and sda6 fail with read error (or 'block not synced on mirror') on same block, then I suppose md driver will throw normal read error to userland22:27
timelessDocScrutinizer05: sorry, you've lost me22:27
timelesswhat command would i use to assemble this stupid thing in a way that works22:27
timelessi'm pretty sure the goal is to have sdf7 sda6 instead of sda6 sdf722:28
DocScrutinizer05what does system use during boot?22:28
timelessalthough i have no idea if i can even do that22:28
timelessi can't remember, it probably went into maintenance mode22:28
DocScrutinizer05that's relevant info22:28
KotCzarnytimeless, hdparm --write-sector on sda6 would zero the badblocks (and data) and will allow for rebuild probably22:29
DocScrutinizer05or kill more blocks22:29
DocScrutinizer05when you failed to guess right block22:29
timelessDocScrutinizer05: is there an easy way for me to check dmesg/syslog to confirm?22:29
* timeless ponders22:29
timeless 15:10:47 up 26 days, 22:00,  3 users,  load average: 0.08, 0.04, 0.1122:29
timelessi don't have syslog going back that far22:30
DocScrutinizer05hmm, err. less /var/log/messages?22:30
DocScrutinizer05cat /etc/fstab?22:30
DocScrutinizer05I'm not sure22:30
timelesshttps://www.irccloud.com/pastebin/rYywcTJq/fstab22:30
timelessi'm pretty sure /backups came up as readonly22:30
timelessand / and /boot were fine22:30
DocScrutinizer05https://raid.wiki.kernel.org/index.php/A_guide_to_mdadm#Assembling_your_arrays22:31
timelessok, i have /var/log/messages22:31
timelessDocScrutinizer05: sorry22:31
KotCzarnyisnt there a typo in that fstab?22:31
KotCzarny01 instad of 0 1 ?22:31
timelessi've read those stupid pages. and they're utterly useless22:31
inzsomehow i misread mdadm as madman22:31
timelessinz: seems like a good reading in my book22:31
timelessKotCzarny: that's a tab that got elided, dunno how/why22:32
DocScrutinizer05I have no idea who, when, how does assemble md during boottime22:32
timelessminus the fact that the system is held together by ducttape, and is failing, the system has a configuration that would otherwise work22:33
KotCzarnynuke those badblocks and hope for the best22:35
KotCzarny;)22:35
KotCzarnyand shedule backups as soon as you can after rebuild22:35
timelessKotCzarny: it's a backup drop system22:36
timelessthere's not much to backup, where would i back it up?22:36
timelessbackup-of-backup?22:36
DocScrutinizer05I think https://raid.wiki.kernel.org/index.php/Replacing_a_failed_drive is not useless22:36
KotCzarnythen shedule backups redrop22:36
KotCzarny:)22:36
DocScrutinizer05>>...if the array is in trouble, then you want to --replace a drive if possible...<<22:37
KotCzarnythat's assuming sdf7 is holding correct data22:38
KotCzarnyif not, sorry22:38
DocScrutinizer05when your data cable fell off, you plug it in again and *AIUI* md should recover the drive in background, after next boot the latest22:39
timelessDocScrutinizer05: so... the question is how to get this moving22:40
timelessi think i'd need to not have sda plugged in otherwise i think i end up in this state again22:40
KotCzarnystart building new system and migrate22:41
DocScrutinizer05what *is* 2this state"?22:41
DocScrutinizer05hoenstly, does the system still boot? does the raid come up? what's the status of the raid after boot?22:42
timelessthe /backups mount was readonly22:42
timeless(because sdf was missing)22:42
DocScrutinizer05why is it missing? you re-plugged the cable I assume22:43
timelessi hadn't rebooted since plugging in the cable22:44
timelessand i'm going to scream22:44
DocScrutinizer05ooooh22:44
KotCzarnythen sdf7 holds proper copy still, not bad22:44
DocScrutinizer05oh well, you can't expect a HDD work that you hotplugged22:45
timelessi was trying to get the system back online by poking the pieces22:45
KotCzarnywhat happens if sda6 goes missing?22:45
timelessKotCzarny: right now? dunno22:45
timelessbut how can i get it to do that?22:45
timelessmd won't let go of it22:45
KotCzarnyi've though of .. plugging the cable ;)22:45
DocScrutinizer05actually you're lucky when it didn't break physcally on hotplug (less likely on SATA but anyway)22:45
timelessthere are 6 stupid HDDs in this system22:45
timelessand there's *no* way to find out which stupid drive is on which port22:45
timeless"because linux"22:46
timelesswhich means figuring out which cable to pull for sda is non-trivial22:46
DocScrutinizer05o.O22:46
KotCzarnydd </dev/sda >/dev/null and touch which one is clicking22:46
timelessKotCzarny: yeah yeah22:46
timelessbut i mean.... seriously22:46
DocScrutinizer05o.OYOU DON NOT WANT to pull or plug cables on a powered system!!!!22:46
timelessignore that22:47
KotCzarnyhe already did, on sdf22:47
KotCzarny;)22:47
timelessit isn't easier when the thing is off22:47
timelessi mean, sure, i can ask each drive "what's your serial number"22:47
DocScrutinizer05no, just healthier for the hardware22:47
timelessand then i can unscrew each drive from its bay and try to compare22:47
timelessbut, gosh, this is insane.22:47
DocScrutinizer05but WHY??22:47
KotCzarnyi was just joking anyway22:47
timelessok, debian people22:47
timelesswhat's the proper way to tell dpkg "yes i want to install x"22:48
KotCzarnydpkg -i22:48
KotCzarnyi think dpkg ignores dependencies?22:48
DocScrutinizer05honestly you ought reboot system ASAP22:48
KotCzarnyit's the apt-get that checks them22:48
DocScrutinizer05your raid sufgfered severe impact from cable break and any further action on that system will further degrade the raid22:49
DocScrutinizer05you can't reasonably fuzz around with mdadm when your SATA driver didn't initialize the sdf22:49
DocScrutinizer05that's madness22:50
DocScrutinizer05dd if=/dev/sdf of=/dev/null count=122:50
DocScrutinizer05for a first very basic sanity check, that already most likely will fail22:51
DocScrutinizer05so REBOOT!22:52
timelessKotCzarny: Do you want to continue? [Y/n]22:53
timeless^ that stupid prompt came from dpkg -i22:53
DocScrutinizer05can't you do that after reboot?22:54
timeless!?22:54
timelessi have two headaches22:54
timeless1. peach22:54
timeless2. installing some debs on unrelated systems22:54
timeless2 is more important22:54
DocScrutinizer05aaah22:54
timelesspeach has been broken for a while22:54
KotCzarnytimeless, what is the issue ? bad signatures or something more?22:54
timelessKotCzarny: just looks like it wants to confirm22:55
* DocScrutinizer05 is out22:55
KotCzarnyahm, so you want batch mode?22:55
timelessyes22:55
KotCzarnythere are multiple --force-xx options22:56
KotCzarnyit might ask about something more than just confirm22:56
timelessactually, maybe this is apt22:56
KotCzarny:)22:56
*** Birchy has quit IRC22:56
KotCzarny       -y, --yes, --assume-yes22:57
KotCzarnyyou can also --assume-no22:57
KotCzarnyif something unexptected happens22:57
KotCzarnybut generally -y is what you want22:58
DocScrutinizer05timeless: http://serverfault.com/questions/5336/how-do-i-make-linux-recognize-a-new-sata-dev-sda-drive-i-hot-swapped-in-without22:59
timelessDocScrutinizer05: interesting reading23:00
DocScrutinizer05however reboot strongly recommended23:01
DocScrutinizer05you not only removed data cable, you also devalidated the driver's buffers for that drive. So simply replugging for sure won't work23:02
DocScrutinizer05the kernel needs to re-initialize the whole drive23:03
DocScrutinizer05and before that happened, no md will use that drive23:03
DocScrutinizer05afk for good now, good luck! :-)23:04
*** kgu has joined #maemo23:04
KotCzarnyhttp://serverfault.com/questions/510895/find-file-by-block-number-on-ext3-fs-on-lvm23:05
KotCzarnyi hope you are good with maths23:06
*** louisdk has quit IRC23:07
*** louisdk has joined #maemo23:10
*** at1as has quit IRC23:10
*** Birchy has joined #maemo23:11
*** louisdk has quit IRC23:20
DocScrutinizer05http://serverfault.com/questions/645862/when-does-a-raid-restore-redundancy-after-a-broken-sector-is-flagged-as-defectiv23:39
DocScrutinizer05>>...Instead, it reported the surrounding 8k stripe of data to be a stripe of zeroes and the read operation to be successful. [...]   vendor's customer support even stated this to be perfectly acceptable, as RAID were to recover from full disk failure only and not handling the failure of individual blocks<< ROTFL BWAHAHAHAHA23:48

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!