Re: Any good Debian books highly recommended

2024-08-25 Thread martin f krafft

Regarding the following, written by "jeremy ardley" on 2024-08-26 at 09:58 Uhr 
GMT:
It's almost 20 years old now but it's still pretty relevant since 
Debian hasn't changed that much.


20 years old means it's missing all the systemd stuff. That's quite 
important.


True. However, systemd is also not Debian-specific, and just like I 
never covered specifics of the Linux kernel or GNU utilities, I am 
no sure how much of systemd would actually have its place in this 
book.


That said, there's a lot of coverage of `init.d` and related Debian 
hacks, such as `update-rc.d`, which are now no longer really 
relevant.


So yeah, the book is ancient, no irrelevant, but I've also moved on 
with life and won't have the time to write an updated version. If 
anyone cared enough to do so, I'd happily put you in touch with Open 
Source Press (the original publisher) and/or NoStarch.


Take care,

--
 .''`.   martin f. krafft 
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
on the other hand, you have different fingers.


Re: ssh -X authentication with sudo

2022-10-05 Thread martin f krafft

I really didn't mean to kick this off ;)

Original poster: instead of the GUI programm, I recommend you try 
cfdisk. It's not "graphical", but it has a nice UI, and it can do 
everything you need. `sudo cfdisk /dev/device` and you're going to 
be much happier.


--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"the question of whether computers can think

 is like the question of whether submarines can swim."
   -- edsgar w. dijkstra


Re: ssh -X authentication with sudo

2022-10-04 Thread martin f krafft

Regarding the following, written by "debian-u...@howorth.org.uk" on 2022-10-04 
at 13:52 Uhr +0100:

PS as you surmised, I don't really want root ssh access.


But you are running GUIs as root??

--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
may the bluebird of happiness twiddle your bits.


Re: Pipewire for multiple users

2021-08-19 Thread martin f krafft

Regarding the following, written by "Lucio Crusca" on 2021-08-19 at 16:05 Uhr 
+0200:

lucio@t470:~ $ su - u
...
u@t470:~ $ pactl info 
Connection failure: Connection refused 
pa_context_connect() failed: Connection refused


Pulse and systemd need a dbus session, and `su` will not get you 
that. If you want to use either, you need to ensure that you're 
properly logged in as the user, or configure your system to set up 
the dbus session accordingly.


An easy way to do this is to use `ssh` with X-forwarding:

```
ssh -X u@localhost
```

and then try it again.

If that doesn't work, confirm that "u" can use Pulse when logged in 
with a regular desktop session, i.e. at the graphical login screen.


Hope this helps,

--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"the problem with america is stupidity. i'm not saying there should

 be a capital punishment for stupidity, but why don't we just take
 the safety labels off of everything and let the problem solve
 itself?"
  -- seen on irc


Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

2021-02-27 Thread martin f krafft

Regarding the following, written by "Semih Ozlem" on 2021-02-26 at 08:54 Uhr 
+0300:

lvs is in which package?


If it's not installed on your system (the package being `lvm2`), 
then my suggested fix won't work for you anyway, since your system 
isn't set up to use Logical Volume Management.


--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"cs class at 8:30am. ugly. if you can wake up early enough to get

 good grades here, you need to develop hacker habits..."
 -- jeff bailey on #debian-devel


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: is it possible to add a secondary disk to an existing debian systems and install programs to the secondary disk

2021-02-23 Thread martin f krafft

Semih,

Maybe I can provide a quick and easy solution, depending on what 
happens when you type


```
$ sudo lvs
```

into a terminal. Could you let us know what that spits out?

Thanks,

--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
the security, stability and reliability of a computer system

is reciprocally proportional to
the amount of vacuity between the ears of the admin.


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: [OT] Remote SSH (dynamic IP) without third-party server

2020-08-10 Thread martin f krafft

This may be of interest to the OP: https://github.com/noffle/airpipe

--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
stupidity management for the superuser

is a user space issue in unix systems.
 -- alan cox


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: [OT] Remote SSH (dynamic IP) without third-party server

2020-08-02 Thread martin f krafft

Regarding the following, written by "riveravaldez" on 2020-08-01 at 23:37 Uhr 
-0300:

Any comment/advice on any of them?, would be most appreciated.


All 3 seem to be using TUN, which is what you want at this stage. 
Now you just have to try which one works best for you. I'd also take 
into account how active the maintainer is, and how old the code 
base.


--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
an egg has the shortest sex-life of all: if gets laid once; it gets

eaten once. it also has to come in a box with 11 others, and the
only person who will sit on its face is its mother.


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: [OT] Remote SSH (dynamic IP) without third-party server

2020-08-01 Thread martin f krafft

Regarding the following, written by "to...@tuxteam.de" on 2020-08-01 at 14:33 
Uhr +0200:
Both Tox and Jami use a technology called distributed hash tables to 
map names to numbers, and the technology would be suitable for the 
OP's needs, but I don't know of any implementation for SSH.


DHTs are nice and cool, but they don't solve the problem of "where 
is that box I want to talk to", i.e. its IP address.


What they /do/ is to keep this "resolution table" somewhere out there 
(think DNS, but not hierarchical, rather "randomly" shuffled).


Not entirely sure what your response adds, so let me just suggest a 
Tor hidden service to the OP instead of continuing this.


Multicast is cute but wouldn't actually solve the problem; instead 
of an entity mapping names to endpoint addresses, you now need an 
entity to map names to multicast groups, and manage the namespace.


--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
now I lay me back to sleep.

the speaker's dull; the subject's deep.
if he should stop before I wake,
give me a nudge for goodness' sake.


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: [OT] Remote SSH (dynamic IP) without third-party server

2020-08-01 Thread martin f krafft

Regarding the following, written by "to...@tuxteam.de" on 2020-08-01 at 09:39 
Uhr +0200:
Hm. For Tox I can't say very much (besides that they do have a Client 
and a Core components, which seems to suggest that you need some 
well-known instance out there where the cliens do a rendez-vous.


Jami uses SIP, and that implies there is some "SIP routing machinery" 
(i.e. at least one well-known address) out there to coordinate [1].


Both Tox and Jami use a technology called distributed hash tables to 
map names to numbers, and the technology would be suitable for the 
OP's needs, but I don't know of any implementation for SSH.


--
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"we did rate the microsoft security researcher as less-bad than the

 people who prepare the carcasses for dissection in biology
 laboratories."
 -- michael moyer, executive editor of _popular science_


digital_signature_gpg.asc
Description: Digital GPG signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Good keyboard

2016-02-14 Thread martin f krafft
also sprach rlhar...@oplink.net  [2016-02-14 11:20 +1300]:
> For the Dvorak layout, just select the appropriate xkb map
> (APPLICATIONS->SETTINGS->KEYBOARD).

Apart from there being no "Applications" menu on my Debian system… ;)


This won't address the issue of having keys labeled physically.
I can touch type, but there are times when I really appreciate to
just being able to hit the key as advertised without having to first
position, gain my bearing, and then move…

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"all i know is that i'm being sued for unfair business
 practices by micro$oft. hello pot? it's kettle on line two."
-- michael robertson


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Good keyboard

2016-02-13 Thread martin f krafft
also sprach jdd  [2016-02-14 07:14 +1300]:
> >http://www.kinesis-ergo.com/shop/advantage-for-pc-mac/
> >
> >Worth every penny.
> >
> wow... needs some learning, so Dvorak probably better :-)

You used to be able to get these with Dvorak, not sure if that's
still the case.

I liked the keyboard, but using it for coding, Vim, etc. just wasn't
very easy. The F-keys are unusably small, and to use keys like
Insert/End/Home etc. always requires you to move your hands as
I found it not doable with just the thumbs.

Hth,

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
don't hate yourself in the morning -- sleep till noon.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: systemd-modules-load inserting modules I didn't ask it to insert

2015-12-25 Thread martin f krafft
also sprach martin f krafft  [2015-12-26 09:14 +1300]:
>   systemd-modules-load[136]: Inserted module 'ipmi_devintf'
>   systemd-modules-load[136]: Inserted module 'ipmi_poweroff'
>   systemd-modules-load[136]: Failed to insert 'ipmi_si': No such device
>   systemd-modules-load[136]: Inserted module 'ipmi_watchdog'

These are due to /usr/lib/modules-load.d/ipmievd.conf. It's likely
a documentation bug in modules-load.d(5) that this source directory
isn't listed.

http://bugs.debian.org/808997

Thanks Andreas and Felipe for your tireless help on IRC.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
god is dead.
-- nietzsche
nietzsche is dead.
-- god
nietzsche is god.
-- dead


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


systemd-modules-load inserting modules I didn't ask it to insert

2015-12-25 Thread martin f krafft
Hello, and happy holidays to all of you.

I found several of my systems to report this:

  systemd-modules-load[136]: Inserted module 'ipmi_devintf'
  systemd-modules-load[136]: Inserted module 'ipmi_poweroff'
  systemd-modules-load[136]: Failed to insert 'ipmi_si': No such device
  systemd-modules-load[136]: Inserted module 'ipmi_watchdog'

and consequently, the systems appear degraded, e.g.:

  root@domine:/home/madduck# systemctl --state=failed
UNIT LOAD   ACTIVE SUBDESCRIPTION
  ● systemd-modules-load.service loaded failed failed Load Kernel Modules

Looking at the manpage(s), the list of (static) modules to load
comes from (a) the kernel command line, and (b) the
modules-load.d/*.conf files in /lib, /run, and /etc.

However, on none of my systems are any of the IPMI modules
specified:

  # grep ipmi /proc/cmdline /*/modules-load.d/*.conf /etc/modules 
/etc/initramfs-tools/modules || echo none found
  none found

So, where is systemd getting the idea from that it ought to load
these modules?

Thanks for any insights!

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Xorg reconfigure on keyboard/VGA screen connect with systemd?

2015-11-11 Thread martin f krafft
Hello,

Can I use systemd to automatically run scripts as the owner of an
X session when a USB keyboard or a VGA screen are connected to the
local machine? Or what other mechanism would you use?

In the past, doing so automatically would involve some sort of hook
in /etc (invoked as root), which would then have to /bin/su to the
user (hoping it'd even know to whom), import the Xauthority and then
run the command. What a hack.

systemd's integrates with everything desktop-ey, so I am led to
believe it should be possible to do better nowadays.

How? Does anyone have an example?

Or if systemd is (still) not the right tool for the task, are there
more modern approaches people use?

Thanks,

-- 
@martinkrafft | http://madduck.net/ | http://two.sentenc.es/
 
(a)bort, (r)etry, (p)retend this never happened
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: xdg-open pain, how to use run-mailcap

2015-07-09 Thread martin f krafft
also sprach Nicolas George  [2015-07-09 15:10 +0200]:
> > Does anyone know of a trick to just tell xdg-open to get out of the
> > way?
> 
> Not using it? There is some information missing in your message.

I am talking about tools like gscan2pdf and others that hard-code
xdg-open to preview files.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"time flies like an arrow. fruit flies like a banana."
   -- groucho marx


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


xdg-open pain, how to use run-mailcap

2015-07-09 Thread martin f krafft
Hey,

run-mailcap worked for me for years. For a while already, xdg-open
is being pushed, using .desktop files to direct what to do with URIs
and files.

I really don't want this. I don't want .desktop files and I don't
want to have to create underdocumented ini-style configuration just
to get my computer to do again what it always did: use run-mailcap,
which I can configure with simple text files and which continues to
do its job just fine and never needed replacement anyway.

Does anyone know of a trick to just tell xdg-open to get out of the
way?

Sure,

  dpkg-divert --divert /usr/bin/xdg-open.orig --local --rename /usr/bin/xdg-open
  ln -s run-mailcap /usr/bin/xdg-open

will work, but that seems a bit intrusive.

Any ideas?

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"welcome to american airlines, sir. here's your avocado - remember to
 keep it turned on and with you at all times. please turn your luggage
 over to the armadillos for rootling."
  -- http://azure.humbug.org.au/~aj/armadillos.txt


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Enforcing g+rwX permissions on shared files

2015-04-20 Thread martin f krafft
also sprach Christian Seiler  [2015-04-20 17:37 +0200]:
> Well, haven't tried this myself, and don't know about the performance
> (FUSE can be quite slow at times), but you could try bindfs, a FUSE
> filesystem for creating bind mounts that alter permissions (it's
> packaged in Debian).

Interesting pointer, but a quick test and
http://www.redbottledesign.com/blog/mirroring-files-different-places-links-bind-mounts-and-bindfs
don't really instill much confidence in the performance aspect of
things…

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
i don't want to get myself into a hot babe situation.
 -- jonathan mcdowll, #debian-uk, 6 jul 2009


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Enforcing g+rwX permissions on shared files

2015-04-20 Thread martin f krafft
also sprach martin f krafft  [2015-04-20 15:32 +0200]:
> g+s on the directory (as well as the Samba "force directory mode"
> setting) do not affect existing files moved into the tree, which is
> what happens most of the time actually. ACLs also don't work, since
> they are ultimately governed by the group bits, which get
> interpreted as mask.

Forgot to mention umask too, which is no good. First, it also only
applies to new files; And second, it would only work if every user
would ensure the setting was locally active. And if you've ever
tried to implement e.g. a git-hook-based quality assurance policy,
you'll know that expecting all your users to ensure policy
compliance just doesn't work reliably.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"if english was good enough for jesus christ,
 it's good enough for us."
   -- miriam ferguson, governor of texas


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Enforcing g+rwX permissions on shared files

2015-04-20 Thread martin f krafft
Hey folks,

turning to the larger audience in search for new ideas… since POSIX
is based on discretionary access control (meaning that the
application/user have the final say), and after Samba 4 dropped the
"force directory security mode" & Co. settings, we are finding it
really hard to provide a good filesharing means between users of all
platforms (shell, some desktop-environments, Windows, MacOSX)
without constantly running into problems relating to the group
permissions.

So far, I have not found any way to ensure that everyone using
a CIFS share (or NFS, or Appletalk, or SSHFS, or Git, or whatever)
is forced to leave the file repository in a state where all files
and directories are owned by a shared group and have the g+rwX bits
set.

g+s on the directory (as well as the Samba "force directory mode"
setting) do not affect existing files moved into the tree, which is
what happens most of the time actually. ACLs also don't work, since
they are ultimately governed by the group bits, which get
interpreted as mask.

Short of the sledgehammer approaches of using either a cronjob to
brute-force permissions at regular intervals, or an incronjob to
pave over any changes right when they happen, I am at a loss. And
I'd like to avoid both those hacks because they are just ugly and
spell trouble sooner or later, I am sure.

How do solve this?

Thanks for any insights,

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"the intellect is not a serious thing, and never has been.
 it is an instrument on which one plays, that is all."
-- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Random reboots, maybe related to BMC watchdog?

2015-01-27 Thread martin f krafft
Hello,

we operate a server running wheezy and with a SuperMicro BMC¹ and
experience random reboots.

¹) http://www.supermicro.com/products/motherboard/Xeon/C600/X9DRW-iF.cfm

I think I traced them back to the BMC watchdog, which we have
enabled:

  ipmitool> bmc watchdog get
  Watchdog Timer Use: SMS/OS (0x44)
  Watchdog Timer Is:  Started/Running
  Watchdog Timer Actions: Hard Reset (0x01)
  Pre-timeout interval:   0 seconds
  Timer Expiration Flags: 0x00
  Initial Countdown:  900 sec
  Present Countdown:  899 sec

On the system, freeipmi-bmc-watchdog 1.1.5-3 is running.

In debug mode, a successful run looks like this:

  Oct 09 05:28:04 =
  Oct 09 05:28:04 Get Watchdog Timer Request
  Oct 09 05:28:04 =
  Oct 09 05:28:04 [  25h] = cmd[ 8b]
  Oct 09 05:28:04 =
  Oct 09 05:28:04 Get Watchdog Timer Request
  Oct 09 05:28:04 =
  Oct 09 05:28:04 [  25h] = cmd[ 8b]
  Oct 09 05:28:04 [   0h] = comp_code[ 8b]
  Oct 09 05:28:04 [   4h] = timer_use[ 3b]
  Oct 09 05:28:04 [   0h] = reserved1[ 3b]
  Oct 09 05:28:04 [   1h] = timer_state[ 1b]
  Oct 09 05:28:04 [   0h] = log[ 1b]
  Oct 09 05:28:04 [   1h] = timeout_action[ 3b]
  Oct 09 05:28:04 [   0h] = reserved2[ 1b]
  Oct 09 05:28:04 [   0h] = pre_timeout_interrupt[ 3b]
  Oct 09 05:28:04 [   0h] = reserved3[ 1b]
  Oct 09 05:28:04 [   0h] = pre_timeout_interval[ 8b]
  Oct 09 05:28:04 [   0h] = reserved4[ 1b]
  Oct 09 05:28:04 [   0h] = timer_use_expiration_flag.bios_frb2[ 1b]
  Oct 09 05:28:04 [   0h] = timer_use_expiration_flag.bios_post[ 1b]
  Oct 09 05:28:04 [   0h] = timer_use_expiration_flag.os_load[ 1b]
  Oct 09 05:28:04 [   0h] = timer_use_expiration_flag.sms_os[ 1b]
  Oct 09 05:28:04 [   0h] = timer_use_expiration_flag.oem[ 1b]
  Oct 09 05:28:04 [   0h] = reserved5[ 1b]
  Oct 09 05:28:04 [   0h] = reserved6[ 1b]
  Oct 09 05:28:04 [2328h] = initial_countdown_value[16b]
  Oct 09 05:28:04 [20D2h] = present_countdown_value[16b]
  Oct 09 05:28:04 =
  Oct 09 05:28:04 Reset Watchdog Timer Request
  Oct 09 05:28:04 =
  Oct 09 05:28:04 [  22h] = cmd[ 8b]
  Oct 09 05:28:04 =
  Oct 09 05:28:04 Reset Watchdog Timer Request
  Oct 09 05:28:04 =
  Oct 09 05:28:04 [  22h] = cmd[ 8b]
  Oct 09 05:28:04 [   0h] = comp_code[ 8b]

Every now and then, the following will happen:

  Oct 09 05:29:04 =
  Oct 09 05:29:04 Get Watchdog Timer Request
  Oct 09 05:29:04 =
  Oct 09 05:29:04 [  25h] = cmd[ 8b]
  Oct 09 05:29:06 =
  Oct 09 05:29:06 Get Watchdog Timer Request
  Oct 09 05:29:06 =
  Oct 09 05:29:06 [  25h] = cmd[ 8b]
  Oct 09 05:29:06 [   0h] = comp_code[ 8b]
  Oct 09 05:29:06 [   3h] = timer_use[ 3b]
  Oct 09 05:29:06 [   7h] = reserved1[ 3b]
  Oct 09 05:29:06 [   0h] = timer_state[ 1b]
  [Oct 09 05:29:06]: _get_watchdog_timer_cmd: fiid_obj_get: 
'present_countdown_value': data not available
  [Oct 09 05:29:06]: timer stopped by another process
  [Oct 09 05:29:06]: stopping bmc-watchdog daemon
  Oct 09 05:29:06 [   1h] = log[ 1b]

And then the machine reboots after the timer expires.

We've worked with Supermicro and the vendor, replaced the mainboard
and tried all different firmwares and BIOS versions, but the problem
persists. However, this is the only case in 533 exactly identical
such systems sold in the last 3 years by the vendor. I am the only
one using Debian, apparently.

Do you have any idea what this could be and — more importantly — how
I could address this? I'd like to keep the watchdog functionality,
but as it stands I have to turn it off, of course, unless I find
a cure.

If asking here yields no result, I will take this to the freeipmi
people…

Any input appreciated!

Thanks,

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
in africa some of the native tribes have a custom of beating the
ground with clubs and uttering spine chilling cries. anthropologists
call this a form of

Re: No Google bubble? (was: systemd for administrators, printable version.)

2014-11-19 Thread martin f krafft
also sprach Curt  [2014-11-19 17:49 +0200]:
> I don't have a search history. I had no cookies, either, when I made the
> search. Nor was I logged in to their services.
> 
> So I don't see how Google could have tailored my results. 

Google has more ways to identify you than cookies or a login token,

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"everyone has a little secret he keeps,
 i like the fires when the city sleeps."
  -- mc 900 ft jesus


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: No Google bubble?

2014-11-19 Thread martin f krafft
also sprach Scott Ferguson  [2014-11-19 
21:46 +0200]:
> With the greatest respect Martin - have you tried testing it
> yourself?

No, I have not used Google for over 5 years by choice because I do
not like it when profit-driven entities make decisions over what
I should see.

With all due respect: have you not heard of the search bubble or are
you denying it?

Ever since switching to duckduckgo.com, I've found the better
answers. At first it's hard because DDG shows you the stuff you
aren't used to, but when I research, this is the stuff I want to
see. I don't want to be reconfirmed in the bias and prejudices
I already have.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"perhaps debian is concerned more about technical excellence rather
 than ease of use by breaking software. in the former we may excel.
 in the latter we have to concede the field to microsoft. guess
 where i want to go today?"
 -- manoj srivastava


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


No Google bubble? (was: systemd for administrators, printable version.)

2014-11-19 Thread martin f krafft
also sprach Scott Ferguson  [2014-11-19 
10:48 +0200]:
> Sadly, whoever told you that was misinformed - and misinformed
> you. Google results may vary according to the constantly updating
> search index - and search terms - but the "search history", either
> stored in your browser history, or your Google profile (if you
> login to a Google account) does *not* affect results.

Can you please back this up with evidence? I would love to be proven
misinformed.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
before he died, rabbi zusya said: "in the world to come they will not
ask me, 'why were you not moses?' they will ask me, 'why were you not
zusya?'"


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Preventing the computer from shutting down.

2014-10-31 Thread martin f krafft
also sprach Karl E. Jorgensen  [2014-10-31 09:21 +0100]:
> Personally, I would have preferred molly-guard to use dpkg-divert,
> but it works as it is.

It does, since 0.5-1, but that needs to be uploaded still. I am
checking…

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"syntactic sugar causes cancer of the semicolon."
-- epigrams in programming


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: debian-advocacy?

2014-10-16 Thread martin f krafft
also sprach The Wanderer  [2014-10-16 15:12 +0200]:
> The people who voted to make systemd the default init system
> presumably think that it already does meet Debian standards, at
> least to within acceptable tolerances.

I don't think this is the case. The CTTE's decision was IMHO based
largely on the trust that we, as Debian, could help systemd reach
our standards. There were/are very strong arguments for some of the
technology and innovations around systemd. The main
counter-arguments were IIRC the monolithic design, and the
unapproachable upstream team. The CTTE ruled that those could be
overcome and then the benefits would win.

> From my own perspective, I don't know about "Debian standards" in
> any detailed and specific way, but "shaping systemd" so that it
> meets *my* standards in that regard would involve changes which
> have been explicitly pre-rejected by upstream - and would quite
> possibly require either major re-architecting or even redesign,
> and maybe even dropping some of the features and/or functionality
> which it currently provides.

I hear your cries, and we could howl together if you want. And
I really wish systemd would exist in Debian experimental and
nowhere else for now.

But the reality is that progress is driven during the Debian release
cycle. And while this might mean that jessie will hurt a lot of
people, ultimately, it'll advance us.

You can just stay with wheezy for now. I will. There is hope!
https://lists.debian.org/debian-vote/2014/10/msg1.html
And even if this GR doesn't get voted, or ultimately won't have much
of an effect, I am going to bet you a beer that jessie+1 will be
a massive improvement over jessie, especially wrt init systems, or
just systemd.

> > The benefits of Debian, its policy and this community still far
> > outweigh the problems imposed by systemd. And most alternatives also
> > (will have to) incorporate systemd, so the only thing you can argue
> > is that systemd is currently weighing down the quality of Linux in
> > general. But it's open-source and we can make it ours and better.
>
> Not without forking or reimplementing it, I'm pretty sure.

You know, Debian could just do that and it'd mean something to the
world. Before doing so, I agree it would be necessary to carefully
assess the existing forks first though.

However, I would be surprised if the possibility of a fork wasn't
part of the consideration of the CTTE when they made this (awefully
difficult) decision.

We are Free Software (or Open-Source, whatever), we try to avoid
duplicate work through the reuse of code. A lot of interesting work
is being done based on the systemd innovations. Believe me,
I *don't* like systemd and what it forces me to do, but it'd be
silly to forego all this derivative work by deciding to split from
the herd.

Instead, let's make our way to the front and lead the herd. This is
what Debian has done in the past, and what we should do again in the
future.

We haven't been able/motivated to do this with all the *Kit
software, while it was mostly optional. Systemd currently isn't
optional. I hate that. But maybe this is what's required for us to
assume the steering wheel again?

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"man kann die menschen nur von ihren eigenen meinungen überzeugen."
-- charles tschopp


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: debian-advocacy?

2014-10-16 Thread martin f krafft
also sprach David L. Craig  [2014-10-14 00:16 +0200]:
> Jessie may need to be widely considered the Vista of Debian
> releases before a majority of DDs are willing to revisit the init
> default.

Meanwhile, everyone who thinks this was the wrong decision should
work to ensure that sysvinit continues to work, and should try to
break dependencies between software and what some people think are
essentials for the desktop.

Or engage with upstream and help shape systemd so it eventually
reaches Debian standards…

  https://lists.debian.org/debian-user/2014/09/msg01640.html

> The is currently no means to garner meaningful data about
> Jessie's approval ratings, which likely means the release
> team will, as usual, just guess what will fly.  They've
> had an enviable run, to be sure.

The benefits of Debian, its policy and this community still far
outweigh the problems imposed by systemd. And most alternatives also
(will have to) incorporate systemd, so the only thing you can argue
is that systemd is currently weighing down the quality of Linux in
general. But it's open-source and we can make it ours and better.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"the condition of perfection is idleness.
 the aim of perfection is youth."
-- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: systemd and server use (was: Re: Challenge to you: Voice your concerns regarding systemd upstream)

2014-09-26 Thread martin f krafft
also sprach Steve Litt  [2014-09-26 18:26 +0200]:
> If systemd was just a PID1 with the features you enumerate above,
> I'd be dancing in the street, not looking for a way out.

Beautiful. I had to:
https://twitter.com/martinkrafft/status/515611660128903170 ;)

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"the word yellow wandered through his mind in search of something to
 connect with."
 -- hitchhiker's guide to the galaxy


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Challenge to you: Voice your concerns regarding systemd upstream

2014-09-25 Thread martin f krafft
also sprach lee  [2014-09-25 01:45 +0200]:
> Just one day they might wake up and find out that it was a very
> bad idea to depend on systemd, and then it'll be difficult to do
> without.

That day was yesterday. I'll let Paul Venezia echo almost all of my
thoughts verbatim:

  
http://www.infoworld.com/article/2608864/data-center/choose-your-side-on-the-linux-divide.html

But dependency creep is unfortunately nothing new ever since we
declared next year the Year of Linux of the Desktop and forgot that
the Universal Operating System should also cater to non-desktops.

-- 
 .''`.   martin f. krafft  @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems
 
"aus der kriegsschule des lebens -
 was mich nicht umbringt, macht mich härter."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: boot from raid1 mdadm version 1.2 partition

2012-01-12 Thread martin f krafft
also sprach Marc Auslander  [2012.01.12.2226 +0100]:
> Earlier posts seem to say this should/might work.
> 
> I made an mdadm v 1.2 partions, and put a copy of my root file system
> on it.
> 
> update-grub doesn't see it at all.

Are you using grub-pc aka. grub2?

In the future, please always provide version information for the
software with which you are having problems.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
tempt not a desperate man.
-- william shakespeare


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: grub-pc mdadm root

2012-01-10 Thread martin f krafft
also sprach Justin Jereza  [2012.01.10.1523 +0100]:
> Your /boot must be in a regular partition or in a raid1 volume. It may
> either have it's own filesystem (I typically use one that's 512mb in size)
> or in the root filesystem. If it's in the root filesystem, then that means
> that root should be in a regular partition or in a raid1 volume.

With grub2, your /boot can be an LV on a RAID6 if you want it to be.
The only thing that does not work is /boot on dmcrypt.

Having /boot on a separate RAID1, however, might be easier for
recovery, especially if you are not so familiar yet. Later, however,
it doesn't matter, i.e. Debian installer rescue mode or grml can
easily give you access to a system, and Super Grub Disk can boot
such a system too, should you ever need it.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"computer science is no more about computers
 than astronomy is about telescopes."
 -- edsgar w. dijkstra


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: [Semi-OT] Automatic subscription to self-opened bug reports

2011-10-30 Thread martin f krafft
also sprach Camaleón  [2011.10.30.1928 +0100]:
> > This script and the BTS aren;t tied in to the box from which you report
> > a script. As long as you have a Debian or Ubuntu or other Debian
> > derivative box with devscripts installed, you should be able to
> > auto-subscribe with this script to all the bugs that you've reported.
> 
> As I read it, the script is basically a loop that retrieves the bug 
> number for all the bugs that have been sent by the reporter and sends 
> subcription e-mails to the BTS robot... but you still have to manually 
> reply to the incoming confirmation e-mails, right? And this is when the 
> Procmail recipe comes into play, I guess, to close the cycle.

Sounds about right:

  http://madduck.net/blog/2008.06.20:auto-subscribing-to-debian-bugs-i-file/

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the question of whether computers can think
 is like the question of whether submarines can swim."
 -- edsgar w. dijkstra


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Milos Negovanovic  [2011.09.24.1305 
+0200]:
> > If the disk is failing as it appears from the smartctl message ...
> > then I also concur that you should look at replacing the disk ASAP.
> 
> Ill try to fix the RAID first, Ive seen crappy drives going into
> temporary spasm and everything being OK after ;). I think my problem is
> due to mdadm not seeing /dev/sdb3 as valid RAID partition, so Ill try to
> fix that first.

You could try to /dev/zero it with dd and then to re-add it, BUT
FIRST MAKE SURE THERE ARE NO DATA ON THERE.

Can you mount /dev/sdb3 ?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"wovon man nicht sprechen kann, darüber muß man schweigen."
   -- wittgenstein
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Milos Negovanovic  [2011.09.24.1143 
+0200]:
> Hmmm this line looks suspicious:
> /dev/sdb3: LABEL="home" UUID="4030e91a-c6fa-4640-81eb-654e2ad8c180" 
> TYPE="ext4"
> 
> Where is blkid getting its info from? fdisk sees /dev/sdb3 as linux RAID
> partition.

From the partition. Is the partition mounted by any chance?

Also, it is a common misunderstanding that fdisk knows anything
about RAID. What you are talking about is the partition type setting
0xfd, which has not been a requirement for years (only needed for
kernel-level auto-assembly, which is deprecated, not if md is loaded
by module).

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"the question of whether computers can think
 is like the question of whether submarines can swim."
 -- edsgar w. dijkstra
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Milos Negovanovic  [2011.09.24.1134 
+0200]:
> For details see host's SYSLOG (default: /var/log/syslog).

And?

Please try to provide all relevant information up front. It takes
a lot of effort of others if we have to pull all information out of
your nose.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"it is dangerous to be right when the government is wrong."
   -- voltaire


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Milos Negovanovic  [2011.09.24.1130 
+0200]:
> I was in the middle of system update via aptitude last week, and it
> started giving me strange errors that it cant access /dev/sdb3 ... I
> suspect these were errors from underlaying RAID array. At about the same
> time smartd sent me a mail stating that the ATA error count has jumped
> from 0 to 800 or so.

You need to give the exact errors. But it sounds like your disk is
about to die. I'd get a new one ASAP.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"in the figure of the president, george w. bush, the incompetence,
 stupidity, and sheer inhumanity that characterize so much of
 america's money-mad corporate elite find their quintessentially
 repulsive expression."
 -- journalist, aftermath of katrina


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Andrew McGlashan  
[2011.09.24.1109 +0200]:
> >root@micro ~ # mdadm --add /dev/md2 /dev/sdb3
> Try like this instead:
> mdadm /dev/md2 --add /dev/sdb3

That's the same to mdadm.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"i never go without my dinner. no one ever does, except vegetarians
 and people like that."
-- oscar wilde
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: degraded RAID array on squeeze

2011-09-24 Thread martin f krafft
also sprach Milos Negovanovic  [2011.09.24.1034 
+0200]:
> one of my servers has experienced degradation in one of its RAID arrays:

What happened?

> root@micro ~ # mdadm --add /dev/md2 /dev/sdb3
> mdadm: add new device failed for /dev/sdb3 as 2: Invalid argument

Does /dev/sdb3 exist?

> As you can see it fails to re-insert the component! Whats
> suspicious is that /dev/sdb1 and /dev/sdb2 are just fine in other
> 2 RAID components, so I don't think that the /dev/sdb drive has
> failed!

Sure, it could have partially failed. You need to know what happened
to be able to figure out what to do now.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
i wish this wish not to be granted!
-- achilles (hofstadter's geb)


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: booting from the other disk of a RAID-1

2011-06-28 Thread martin f krafft
also sprach lee  [2011.06.28.1636 +0200]:
> It doesn't work as it's supposed to.  How can I fix it?

Reinstall grub to all devices, dpkg-reconfigure grub-pc

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"i worked myself up from nothing to a state of extreme poverty."
   -- groucho marx


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: booting from the other disk of a RAID-1

2011-06-28 Thread martin f krafft
also sprach lee  [2011.06.28.1642 +0200]:
> How do you make such an USB key?  It would be nice to have in case
> anything fails, yet it shouldn't be needed.

search for super grub disk

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"when women love us, they forgive us everything, even our crimes;
 when they do not love us, they give us credit for nothing,
 not even our virtues."
   -- honoré de balzac


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: booting from the other disk of a RAID-1 (was: Needed: a grub2 expert)

2011-06-28 Thread martin f krafft
also sprach lee  [2011.06.28.1115 +0200]:
> I'm glad it helped you and Peter.  Now the question is how to actually
> solve the problem that one can boot from only one of the disks in a
> RAID-1 array.  The point is to still be able to run the system when a
> disk fails.  Should the one you boot from fail and you halt the system
> to replace it, how do you boot?

Grub resides on all components of the array (ideally in their MBR).
It loads off any one of them and then runs its own RAID-assembly
code, which can assemble a degraded RAID-1. Then it loads kernel and
initrd from the filesystem on that array and passes control to the
kernel…

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"whale feces or working at microsoft? i would probably be the whale
 feces researcher. salt air and whale flatulence; what
 could go wrong?"
 -- michael moyer, executive editor of _popular science_


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: mdadm and UUIDs for its component drives

2011-06-27 Thread martin f krafft
also sprach Tom H  [2011.06.27.0851 +0200]:
> > Partitions do not have UUIDs. What you are seeing are the MD UUIDs
> > stored in the superblock of the sda1 device.
> 
> I called them "mdadm UUIDs" rather than "MD UUIDs" but they definitely
> exist, are different from the "MD Array UUID", and, AFAIK, unused by
> the user tools.

I misunderstood you. Partitions do not have UUIDs, but you were
talking about individual array constituents — those do have UUIDs
that are separate from the array UUID.

  # mdadm --examine /dev/sda2 | grep UUID
  Array UUID : bfb705a9:69bfc685:92b80aa8:ff445936
  Device UUID : ed7cb6d2:32f8dda4:bdd22f74:c4ef720b

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"alas, i am dying beyond my means."
-- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: mdadm and UUIDs for its component drives

2011-06-26 Thread martin f krafft
also sprach Tom H  [2011.06.26.2328 +0200]:
> "mdadm --examine /dev/sda1" returns mdadm UUIDs of the array and
> the partition. (I've never seen the mdadm UUID of a partition be
> used for anything. Can an array be assembled by referring to an
> mdadm UUID of a partition to add a partition? Would it make any
> sense?!)

Partitions do not have UUIDs. What you are seeing are the MD UUIDs
stored in the superblock of the sda1 device.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"a woman is like your shadow;
 follow her, she flies;
 fly from her, she follows."
-- sébastien-roch-nicolas chamfort


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: mdadm and UUIDs for its component drives

2011-06-26 Thread martin f krafft
also sprach Luke Kenneth Casson Leighton  
[2011.06.26.1634 +0200]:
> > Search manpage for "partitions".
> 
>  that's odd.  i read around each part (man mdadm^M /partitions^M),
>  paragraph back and forwards: no mention of the UUIDs of drive
>  components of an array was clearly evident.

I was not trying to suggest that there was a mention of the UUIDs.
mdadm's manpage only mentions /proc/partitions; it scans that "file"
and then looks for UUIDs on each of the listed partitions, building
a list indexed by UUID [0]. This is called "scanning".

And now it has the list of devices (partitions) that constitute
individual arrays identified by UUID…

0. not sure this is the actual implementation…

> > Please suggest patches if you find the information insufficient.
> 
>  ok.  feeling slightly overwhelmed by the task, my lack of
>  knowledge on the detailed workings of mdadm somewhat getting in
>  the way, but i'll do my best.

I'll try my best to provide feedback.

Thanks,

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"no, 'eureka' is greek for 'this bath is too hot.'"
-- dr. who


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: mdadm and UUIDs for its component drives

2011-06-26 Thread martin f krafft
also sprach Luke Kenneth Casson Leighton  
[2011.06.26.1241 +0200]:
>  * is there an option to mdadm to make it display UUIDs instead of or
> as well as the disk name?

mdadm -Es

>  * also, how about making mention of how mdadm works, in the man page
> somewhere reaaasonably prominently?

Search manpage for "partitions". Please suggest patches if you find
the information insufficient.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
this product is under strict quality contril with perfect packing and
quality when leving the factory.please keep away from damp.high
temperature or sun expose.If found any detectives when purchasing.
please return the productby airmail to our administration section and
inform the time, place.and store of this purchase for our
improvement.We shall give you a satisfactory reply.Thanks for your
patronage and welcome your comments.
 -- http://www.engrish.com


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Needed: a grub2 expert

2011-06-25 Thread martin f krafft
also sprach Peter Tenenbaum  [2011.06.26.0227 
+0200]:
> I suppose that is possible.  However, the workstation has 2 internal hard
> drives (both in the RAID-1 array), 1 internal DVD-ROM player, and the
> external USB hard drive; total of 4.  Is there something else in the system
> which can take a drive slot from the BIOS?  If not, then 4 slots should be
> enough to allow them all to initialize properly.

It could be that the external USB drive causes the BIOS to reorder
the drives, which might throw off grub2 as well. See if you can
somehow stabilise the drive order in the BIOS.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"anyone who is capable of getting themselves made president
 should on no account be allowed to do the job"
  -- douglas adams


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Needed: a grub2 expert

2011-06-25 Thread martin f krafft
also sprach Peter Tenenbaum  [2011.06.25.2028 
+0200]:
> Under ordinary circumstances everything works correctly, but when
> I have my (non-bootable) Seagate FreeAgent USB hard drive
> connected via the front-panel USB port, booting hangs.

Your USB drive probably get initialised and takes one of the
x (usually 4) slots of drives provided by the BIOS. When your
internal drives initialise, one does not get a slot. Hence grub2
hangs. Not much you can do I think.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
gentoo: the performance placebo.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Missing device nodes

2011-06-08 Thread martin f krafft
also sprach titantopp...@gmail.com  [2011.06.08.0317 
+0200]:
> I don't have access to the file server at this moment, but
> /etc/mdadm/mdadm.conf defines just the array (via UUID). I was under the
> impression that md would automatically assemble the array based on the
> information in the superblocks.

Sure: it scans all the devices listed with DEVICE in mdadm.conf, or
in /proc/partitions if there are no DEVICEs listed.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"lessing was a heretics' heretic"
-- walter kaufmann


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Missing device nodes

2011-06-07 Thread martin f krafft
also sprach Ron Johnson  [2011.06.07.1747 +0200]:
> So it's md that can't find them?

What's in /proc/partitions?

What happens if you list the DEVICES specifically in mdadm.conf (and
rebuild the initramfs)?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"sailing is, after all, a kind of grace, a kind of magic."
-- phil berman


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Software RAID on external USB disk: boot problems after upgrade to squeeze

2011-02-23 Thread martin f krafft
also sprach Panayiotis Karabassis  [2011.02.23.1029 +0100]:
> I had solved this in lenny by using the following
> /usr/share/initramfs-tools/scripts/local-top/mdadm script:

Set rootdelay=30 on the kernel command line.

> My solution is broken after the upgrade to squeeze and the problem
> has regressed. Any insight appreciated!

You will need to provide a lot more information.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"however jewel-like the good will may be in its own right, there is
 a morally significant difference between rescuing someone from
 a burning building and dropping him from a twelfth-storey window
 while trying to rescue him."
   -- thomas nagel


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: RAID start at boot

2011-02-21 Thread martin f krafft
also sprach Gregory Seidman  
[2011.02.21.1651 +0100]:
> > Add rootdelay=10 to the kernel command line in lilo.conf, provided you
> > are using a recent initramfs.
> 
> I don't think that will do what I want. The RAID in question is
> not my root filesystem.

That does not matter; it gives the initramfs 10 additional seconds
to initialise hardware, which should solve your problem.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"every day is long. 86400 doesn't fit in a short."


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: RAID start at boot

2011-02-21 Thread martin f krafft
also sprach Gregory Seidman  
[2011.02.21.1608 +0100]:
> Is there a way to make sure my RAID (level 1) won't be started degraded? On
> boot, one disk is found before the others, and the RAID is started before
> the others are seen.

Add rootdelay=10 to the kernel command line in lilo.conf, provided
you are using a recent initramfs.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
the uncertainty principle:
  you can never be sure how many
  beers you had last night.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-03 Thread martin f krafft
also sprach lrhorer  [2011.02.02.2057 +0100]:
> [4.228353] ata4.04: hard resetting link
> [4.564319] ata4.04: SATA link down (SStatus 0 SControl 320)
> [4.564375] ata4.05: hard resetting link
> [4.900300] ata4.05: SATA link up 1.5 Gbps (SStatus 113 SControl 320)
[…]
> [4.965365] ata4: EH complete

This does not look like a happy SATA controller or disk.

Similarly:

> [   23.324019] ata7: softreset failed (timeout)
> [   33.340017] ata7: softreset failed (timeout)
> [   68.364019] ata7: softreset failed (timeout)
> [   68.364053] ata7: limiting SATA link speed to 1.5 Gbps
> [   73.388016] ata7: softreset failed (timeout)
> [   73.388049] ata7: reset failed, giving up

But this might not be a problem.

> [   74.143154] md: array md3 already has disks!

I really need to see initramfs debug output, i.e. the shell traces
when you pass the debug option on the kernel boot line and then
obtain the file from /dev/.initramfs or whatever the location was
according to the wiki; I am offline right now and cannot check.

> > Also, what version of mdadm are you using? Which package?
>
> Debian "Squeeze".  Both the mdadm binary in the 2.6.32-5 and in
> the /sbin/ directory of the root array report 3.1.2, which is the
> version supported in the distro.

Squeeze has had 3.1.4-something for several months. I suggest you
upgrade.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
uʍop ǝpısdn sı ɹoʇıuoɯ ɹnoʎ


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-02 Thread martin f krafft
also sprach lrhorer  [2011.02.02.2047 +0100]:
> ARRAY /dev/md0 level=raid6 num-devices=10 metadata=01.2 name=Backup:0
> UUID=431244d6:45d9635a:e88b3de5:92f30255

What's metadata=01.2. I suggest you remove the 0, except for this
one line:

> ARRAY /dev/md1 level=raid1 num-devices=2 metadata=0.90
> UUID=4cde286c:0687556a:4d9996dd:dd23e701

> > And what does /proc/mdstat contain at this point.
> 
> Before I stop and re-start the arrays, all four show
> inactive.

Are they degraded?

Also, judging from your dmesg output, you *do* have hardware
problems.

Also, what version of mdadm are you using? Which package?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"... (ethik und ästhetik sind eins.)"
   -- wittgenstein


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-02 Thread martin f krafft
also sprach lrhorer  [2011.02.02.1923 +0100]:
> I rather suspected that might be the case.  Taking a quick look at
> the /dev directory, the drive targets have changed from /hdX to
> /sdX, and are now way at the end of the list, rather than "a" and
> "b". Now that really shouldn't give mdadm any grief, but I think
> it is.

Should not.
Show me your mdadm.conf!

> Mdstat and dmadm -D both show all the arrays inactive, but if
> I try to assemble them, it says they are all in use.

How do you assemble them?

And what does /proc/mdstat contain at this point.

Also, show

  ls -l /dev/md* /dev/sd*

Thanks,

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
there are two groups of people in the world: those who believe that
the world can be divided into two groups of people, and those who
don't.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-02 Thread martin f krafft
also sprach lrhorer  [2011.02.02.1748 +0100]:
> No, that's the whole point.  It locks up.  It doesn't just launch the
> BusyBox shell, awaiting a command.  It doesn't respond to the keyboard.

So you likely do not have the required USB modules for the keyboard
in the initramfs. I suggest that you recreate the initramfs after
changing MODULES="most" in /etc/initramfs/mkinitramfs.conf

> I thought I made that clear when I said, "...hangs completely."
> If that weren't the case, I could have investigated further
> myself. Without a responding system, though, and no way to save
> logs, I'm stuck.

Fair enough, although I doubt that it actually hangs. It just
doesn't know how to deal with your keyboard.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"without music, life would be a mistake."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-02 Thread martin f krafft
also sprach lrhorer  [2011.02.02.1044 +0100]:
> How could I assemble the arrays manually when the system won't boot?

At the busybox command line.

The command output you provided is from the 2.6.32-3-amd64 kernel.
I need you to provide me with this output after trying to boot the
2.6.32-5-amd64 kernel. Since it fails to assemble the arrays, it
will not be able to mount the root filesystem. Hence it will drop
you into a shell. The message

  /bin/sh: can't access tty; job control turned off

just says that there is no real tty. But busybox should still start
and let you type commands. At this stage you can gather all the
information, store them to media (see "Saving debug information" on
http://wiki.debian.org/InitramfsDebug), and then either assemble the
arrays by hand and let the boot continue, or reboot and publish the
gathered data from 2.6.32-3-amd64.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the wonderful thing about standards is
 that there are so many to choose from."
   -- grace hopper


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Squeeze installation fdisk bug

2011-02-02 Thread martin f krafft
also sprach Siju George  [2011.02.02.0521 +0100]:
> to create identical partitions on sdb and then added it to the RAID device by
> 
> #mdadm -a /dev/md0 /dev/sdb1
> #mdadm -a /dev/md1 /dev/sdb2
> #mdadm -a /dev/md2 /dev/sdb3
> #mdadm -a /dev/md3 /dev/sdb4

Why not just create one device and partition it?

Or better: one device, LVM on top, and then use LVs.

Keep in mind that you still ought to create a partition table (and
use /dev/sdb1 instead of /dev/sdb for the RAID) if you want to boot
off the device using Grub2.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
during the voyage of life, remember to keep an eye out for a fair
wind; batten down during a storm; hail all passing ships; and fly your
colours proudly!
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: Upgrade to 2.6.32-5-amd64 failing miserably

2011-02-01 Thread martin f krafft
also sprach lrhorer  [2011.02.01.2123 +0100]:
> far too quickly to be seen, but then an error pops up concerning
> an address space collision of some PCI device. Then it shows three
> errors for RAID devices md1. md2, and md3, saying they are already
> in use.

This looks like a hardware problem, causing mdadm to fail to
assemble.

> Immediately thereafter the system shows errors concerning  the RAID
> targets being already in use, after which point the system complains it
> can't mount / (md2), /dev, /sys, or /proc (in that order) because the
> sources do not exist (if /dev/md2 does not exist, how can it be busy?). 
> Thereafter, of course, it fails to find init, since / is not mounted. 
> It then tries to run BusyBox, but Busybox complains:
> 
> /bin/sh: can't access tty; job control turned off

This is normal. Don't worry about that.

Instead, try to assemble the arrays manually. And provide me with
a lot more information, e.g.

  ls -l /dev/md* /dev/[sh]d*
  cat /proc/mdstat
  mdadm -Es
  dmesg

It would really help if you could also enable initramfs debugging
(http://wiki.debian.org/InitramfsDebug) and provide us with the
output file.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the mind of the thoroughly well-informed man is a dreadful thing.
 it is like a bric-à-brac shop, all monsters and dust,
 with everything priced above its proper value."
-- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)


Re: mdadm without initramfs

2010-08-16 Thread martin f krafft
also sprach Cameron Hutchison  [2010.08.17.0207 +0200]:
> My /dev/sd[bc]1 partitions are of type 0xFD. /dev/md0 has a version
> 00.90 superblock.
> 
> If I upgrade this kernel, or upgrade to the new stable when it's
> released, is this box going to stop booting?

Not for now, as long as the md drivers aren't built as modules.

But it might stop one day.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"i don't think so," said rene descartes. just then, he vanished.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: mdadm without initramfs

2010-08-16 Thread martin f krafft
also sprach Stan Hoeppner  [2010.08.16.1923 +0200]:
> > … until your controller dies and you find out that the manufacturer
> > does not support the firmware anymore and your data are lost.
> 
> Ever heard of spares?  If not you've not been in this game long.

I've had cases where the spares simply didn't want to work anymore,
after lying around all this time, or where the surrounding hardware
failed and no other hardware could actually address the spares
anymore.

> > Do you have research backing that up?
> 
> You're kidding right?  If not, Google is your friend here.

Google has never been my friend, and likely won't ever be.

So far, I have yet to meet a statistic that credibly backs up this
claim, given that performance is generally bound by spindles these
days.

Your expensive hardware RAID card might well out-perform mdadm on
a Pentium with 15000 RPM drives, but with a modern processor, I have
yet to witness the kernel to be the bottleneck.

> DIMM failure, extended power outage, kernel panic, colo personnel
> reboot the wrong box in a rack, etc, etc, etc.  Sounds like you
> are new.

The chance of these happening after a degradation of an array is
proportional to the admin slack in replacing the drive; and, as you
said, there are "spares" (with a different meaning, in this case).

Before you reply, consider there is a chance of two drives dying at
once, or the controller going belly-up.

But of course, I don't have to explain this to such a seasoned
person as you. I wonder why you even bother to write in about mdadm.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"menschen, welche rasch feuer fangen,
 werden schnell kalt und sind daher im ganzen unzuverlässig."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: mdadm without initramfs

2010-08-16 Thread martin f krafft
also sprach Stan Hoeppner  [2010.08.16.1514 +0200]:
> This has always been one of my hangups regarding using linux mdraid (or any
> soft OS raid) vs hardware raid--proper and seamless handling of a raid
> protected boot device, including issues beyond the topic of this thread.  I
> hate admitting it, but Microsoft's implementation of a mirrored boot/system
> disk is supremely simply compared to getting the same thing from Linux.

Why don't you use it then? ;)

> I prefer LSI and Intel raid cards.  I should have said merely LSI
> as the Intel cards are licensed LSI cards.  Hardware raid isn't as
> flexible as softraid as it works at the entire disk level, but boy
> is it so much easier to work with,

… until your controller dies and you find out that the manufacturer
does not support the firmware anymore and your data are lost.

> as much faster.

Do you have research backing that up?

> The single biggest advantage to hardware raid is that you don't
> have to disk with changing bios boot order or anything like that
> if you have to reboot while drive in your boot array is
> offline/down/dead.  It's all automatic.

Why would you have to reboot before replacing a dead drive?? That
sounds like you got your priorities wrong.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"sailing is, after all, a kind of grace, a kind of magic."
-- phil berman


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: mdadm without initramfs

2010-08-15 Thread martin f krafft
also sprach Boyd Stephen Smith Jr.  [2010.08.16.0034 
+0200]:
> Last I checked, it is possible to have the kernel itself start the
> root array, via a (series of) kernel command-line arguments.
> However, this doesn't use mdadm or any of its configuration files.

That only works for the deprecated v0.9 superblocks and requires the
partitions to be marked with type 0xFD. The whole method is
deprecated. Use an initramfs.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"welcome to american airlines, sir. here's your avocado - remember to
 keep it turned on and with you at all times. please turn your luggage
 over to the armadillos for rootling."
  -- http://azure.humbug.org.au/~aj/armadillos.txt


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Status of RAID (md)

2010-08-12 Thread martin f krafft
also sprach Daniel Bareiro  [2010.08.02.1510 +0200]:
> When I tried to add sdb3 was because the disk for some reason did not
> appear with "cat /proc/mdstat" (not even like it was failed), although
> when using "mdadm --detail /dev/md2" appear as both sdd3 and sdb3 as
> removed. To what it can be due that sdb3 does not appear when doing "cat
> /proc/mdstat"?
> 
> It is somewhat confusing to see a disk labeled like spare when it is
> not. Is this "normal"?
> 
> If this is the case, the only thing I can think of is that after the
> first disk failure, the system was in interim recovery mode, and during
> it, the second disk would have failed.

I cannot analyse this further from remote. If you are still
experiencing problems, I'd be prepared to have a look, but I'd need
root or sudo access to the host. Contact me off-list if you want
that.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"with sufficient thrust, pigs fly just fine. however, this is not
 necessarily a good idea. it is hard to be sure where they are going
 to land, and it could be dangerous sitting under them as they fly
 overhead."
   -- rfc 1925


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Status of RAID (md)

2010-08-01 Thread martin f krafft
also sprach Daniel Bareiro  [2010.08.02.0420 +0200]:
> md2 : active raid5 sda3[0] sdd3[4](F) sdc3[2]
>   2136170880 blocks level 5, 64k chunk, algorithm 2 [4/2] [U_U_]
[…]
> That is to say, the RAID has four disks and failed both the spare
> disk and other disk from array. What is unclear to me is why if
> there are two active disks,

There is no spare disk. The reason why sdd is listed as "faulty
spare" is because it's out of sync. Remove and re-add it:

  mdadm --remove /dev/md2 /dev/sdd3
  mdadm --add/dev/md2 /dev/sdd3

> md2 : active raid5 sdb3[4](S) sda3[0] sdd3[5](F) sdc3[2]
>   2136170880 blocks level 5, 64k chunk, algorithm 2 [4/2] [U_U_]

This is indeed a bit strange, but the array might start syncing in
the new disk (called a spare) as soon as you remove sdd3 (see
above).

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"if there's anything more important than my ego,
 i want it caught and shot now."
-- zaphod beeblebrox


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-17 Thread martin f krafft
also sprach Michal  [2010.06.17.1017 +0200]:
> This is a better way then disconnecting the drive and checking which
> drive was disconnected like I did, but I would still put a very easy to
> read label on the drive to say /dev/sdX. It would be far easier then
> checking a long serial number, especially if it's hard to read and you'd
> need to take each HDD out to check :)

Instead, I suggest you stop using /dev/sdX everywhere and only use
/dev/disk/by-id/*. And/or file a bug against the kernel to request
that /proc/mdstat should list the ID.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
logik ist analsadismus: gedanken werden gewaltsam
durch einen engen gang gepreßt.
-- frei nach lacan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100617115801.gd25...@fishbowl.rw.madduck.net



Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George  [2010.06.16.1402 +0200]:
> > "Manually" is for Mac users. ;)
> 
> these days every one has left windows and are picking on Mac ? :-)

"Reinstalling" is for Windows users.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
the reason the mainstream is thought of as a stream
is because it is so shallow.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George  [2010.06.16.1322 +0200]:
> > sfdisk -d /dev/sda | sfdisk /dev/sdb
> 
> oh thanks :-)
> 
> I did it manually using fdisk

"Manually" is for Mac users. ;)

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
work like you don't need the money
love like you have never been hurt
dance like there's nobody watching


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Rebuilding RAID 1 Array in Linux with a new hard disk after a disk fault - Howto with screen shots

2010-06-16 Thread martin f krafft
also sprach Siju George  [2010.06.16.1313 +0200]:
> 2) Create identical partitions on the new disk using 'fdisk'.

sfdisk -d /dev/sda | sfdisk /dev/sdb

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"i always choose my friends for their good looks and my enemies for
 their good intellects. man cannot be too careful in his choice of
 enemies."
  -- oscar wilde


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100616111821.gb5...@piper.oerlikon.madduck.net



Re: LVM

2010-06-16 Thread martin f krafft
also sprach Boyd Stephen Smith Jr.  [2010.06.15.2108 
+0200]:
> > Use mdadm for a RAID5 or RAID6 and LVM on top for the remaining
> > cases when you need space and care less about performance.
> 
> Use RAID 1/0 in mdadm when you need redundancy, space, and performance.
> 
> (Although, IME, RAID 5 is not badly performing.)

Sure it is, on writes. If you have the right hardware, you won't
notice, but every write takes twice as much work.

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=docs/RAID5_versus_RAID10.txt;hb=refs/heads/contrib/docs/raid5-vs-raid10

> This is particularly useful when you have 3 disks, but only need one disk 
> redundancy.  mdadm can layout data like this:
> 
> | disk1 | disk2 | disk3 |
> +---+---+---+
> | dataA | dataA | dataB |
> | dataB | dataC | dataC |
> 
> LVM cannot, easily.
> 
> RAID 1/0 through mdadm with 4 disks is also better than strictly layering the 
> RAID levels.

Do you have any data to back this up? Fundamentally, the data will
traverse one layer less, but does it actually make a difference?

> mdadm 0/1 4 disk, 1 redundant copy of data:
> | disk1 | disk2 | disk3 | disk4 |
> +---+---+---+---+
> | dataA | dataA | dataB | dataB |
> | dataC | dataD | dataC | dataD |
> | dataE | dataF | dataF | dataE |
> 
> (same redundancy level as RAID 5, no parity calculations needed.)
> 
> mdadm 0/1 4 disk, 2 redundant copy of data:
> | disk1 | disk2 | disk3 | disk4 |
> +---+---+---+---+
> | dataA | dataA | dataA | dataB |
> | dataB | dataB | dataC | dataC |
> | dataC | dataD | dataD | dataD |
> 
> (same redundancy level as RAID 6, although some capacity may be
> lost near the end, no parity calculations needed.)

More info (and patches welcome):

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=docs/RAID5_versus_RAID10.txt;hb=refs/heads/contrib/docs/raid5-vs-raid10
http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=debian/FAQ;hb=HEAD#l106

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"you don't sew with a fork, so I see no reason
 to eat with knitting needles."
   -- miss piggy, on eating chinese food


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: LVM

2010-06-15 Thread martin f krafft
qlso sprach Boyd Stephen Smith Jr.  [2010.06.15.1840 
+0200]:
> > 0 is not a RAID level. Don't do it. Use LVM for that.
> 
> It is a RAID level, now.  It wasn't in the original paper since it
> lacks the *R* in RAID--Redundancy.

Details… but it is *still* not redundant, so I fail to see how it
has suddenly become a RAID level. ;)

> On the other hand, LVM striping is per-LV.  Doing something like
> that with mdadm is... complex.

Use mdadm for a RAID1 and LVM on top by default.

Use mdadm for a RAID5 or RAID6 and LVM on top for the remaining
cases when you need space and care less about performance.

Use LVM without RAID if you need space (and/or performance) and have
the data mirrored elsewhere. I fail to see the advantage of RAID0 in
this scenario, as LVM is more flexible.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"we should have a volleyballocracy.
 we elect a six-pack of presidents.
 each one serves until they screw up,
 at which point they rotate."
  -- dennis miller


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: LVM

2010-06-15 Thread martin f krafft
also sprach Boyd Stephen Smith Jr.  [2010.06.15.1744 
+0200]:
> > mirroring them with mdadm.
> 
> I also recommend using mdadm to manage your RAID.  I've had it handle 0, 1, 

0 is not a RAID level. Don't do it. Use LVM for that.

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=debian/FAQ;hb=HEAD#l272

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the greatest trick the devil ever pulled
 was convincing the world he didn't exist."
   -- verbal kint (the usual suspects)


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: MD subsystem is not loaded

2010-05-15 Thread martin f krafft
also sprach Hugo Vanwoerkom  [2010.05.14.1603 +0200]:
> How does one load the MD subsystem?

You use it. Unless you use it, you don't need mdadm installed.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"we did rate the microsoft security researcher as less-bad than the
 people who prepare the carcasses for dissection in biology
 laboratories."
 -- michael moyer, executive editor of _popular science_


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Andrew Reid  [2010.05.07.1903 +0200]:
>   Just for the record, it actually *is* possible to boot off a partition
> that's in RAID1, but you might have to use grub.  The reason it works
> is because grub can read past the md-raid1 metadata without getting
> confused

Correction: the md metadata comes after the filesystem. That's why
Grub1 doesn't see it.

Grub2 (grub-pc) can interpret md arrays and is the preferred method.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"zum christentum wird man nicht geboren,
 man muß dazu nur krank genug sein."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Jozsi Vadkan  [2010.05.07.1538 +0200]:
> rootdelay=15 worked!!!

http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob;f=debian/FAQ;hb=HEAD#l560

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"everyone has a little secret he keeps,
 i like the fires when the city sleeps."
  -- mc 900 ft jesus


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: usb raid1 pendrive boot

2010-05-07 Thread martin f krafft
also sprach Jozsi Vadkan  [2010.05.07.1440 +0200]:
> But i thought that, I can boot from RAID1 under Lenny. So i can't?

You should be able to, using grub-pc. Try passing rootdelay=15 to
the kernel boot command line.

If this doesn't work, you'll need to provide a lot more information
about what you are trying to do, what you did, what you are
expecting, and what exactly you are seeing.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
during the voyage of life, remember to keep an eye out for a fair
wind; batten down during a storm; hail all passing ships; and fly your
colours proudly!


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: md does a monthly resync?? (was Re: Questions about RAID 6)

2010-05-04 Thread martin f krafft
also sprach Hugo Vanwoerkom  [2010.05.04.1808 +0200]:
> I forget your specifics, but you do RAID *and* backup regularly to an
> external lvm2?

RAID is not a backup solution, it's an availability measure.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
only by counting could humans demonstrate
their independence of computers.
-- douglas adams, "the hitchhiker's guide to the galaxy"


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: md does a monthly resync?? (was Re: Questions about RAID 6)

2010-05-03 Thread martin f krafft
also sprach Ron Johnson  [2010.05.03.1039 +0200]:
> Is that Q21?
> 
> http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=blob_plain;f=debian/FAQ;hb=HEAD

Yes.

> >2. You were asked upon mdadm installation whether you wanted it, and
> >you chose to accept yes. dpkg-reconfigure mdadm if you don't
> >believe in this feature.
> 
> Well, not me, since I don't have a soft array...

Then you probably have much more annoying problems, or will have. ;)

Good luck,

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
#define emacs eighty megabytes and constantly swapping.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: md does a monthly resync?? (was Re: Questions about RAID 6)

2010-05-03 Thread martin f krafft
also sprach Ron Johnson  [2010.05.02.2300 +0200]:
> >My system used to become close to unusable on the 1st sunday of
> >the month when mdadm did it resync,
> 
> That sounds... wrong, on a jillion levels.

It sounds (and is) wrong in exactly two ways:

1. The operation is not a resync, check the FAQ.
2. You were asked upon mdadm installation whether you wanted it, and
   you chose to accept yes. dpkg-reconfigure mdadm if you don't
   believe in this feature.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"it takes more keystrokes to enter a windows license key
 than it takes to do a complete debian desktop install!"
-- joey hess


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Why are there no latest books written for Debian systems?

2010-04-26 Thread martin f krafft
also sprach Stephen Powell  [2010.04.26.1617 +0200]:
> I think there may be some confusion here, Mr. Krafft.  The comments
> I made above were not in reference to anything _you_ wrote.  They were
> in reference to the original edition of "The Linux Cookbook", by
> Michael Stutz, which was copyrighted in 2001.

Ha! But you did quote a sentence on my book and then started with
"This". I didn't actually read much further. ;)

No harm done.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the scientific paper in its orthodox form does embody a totally
 mistaken conception, even a travesty, of the nature of scientific
 thought."
-- sir peter medawar


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100426152640.ge1...@piper.oerlikon.madduck.net



Re: Why are there no latest books written for Debian systems?

2010-04-25 Thread martin f krafft
also sprach Stephen Powell  [2010.04.21.1534 +0200]:
> This is hardly a new book.  In fact, it was written in the days of Woody.
> (Woody -> Sarge -> Etch -> Lenny -> Squeeze)

It was written in the days of the sarge freeze and is entirely
focused on sarge.

> And parts of it are obsolete.  But the author focuses on the core
> stuff of Unix/Linux, and so most of it is still current. It's an
> excellent guide for how to accomplish common computing tasks in
> Linux,

Interesting analysis. ;)

I /wanted/ to focus on Debian and leave out the "core stuff of
Unix/Linux" and "common computing tasks", because that's documented
elsewhere.

It is true that in the last 5 years, some parts have been obsoleted,
but I'd say most of it still applies.

Regardless, there's a need for a new edition. I am working on it.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
echo Prpv a\'rfg cnf har cvcr | tr Pacfghnrvp Cnpstuaeic


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Why are there no latest books written for Debian systems?

2010-04-25 Thread martin f krafft
also sprach Charles Kroeger  [2010.04.24.0045 
+0200]:
> Mr. Krafft, I have your "Debian System, concepts and techniques"
> a first editon from 2005. I think it's a good choice for a new
> Debian user.

Thank you.

> Why does a cow ride a surfboard on the cover, Is this widely understood?

The image came to me as I was dozing off to sleep. The history of
the Super-Cow in Debian is long and secret. I am afraid I cannot
spill the details. ;)

But given that Debian has Super-Cow Powers, I figured my book might
let you surf properly. That's why.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"we did rate the microsoft security researcher as less-bad than the
 people who prepare the carcasses for dissection in biology
 laboratories."
 -- michael moyer, executive editor of _popular science_


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Why are there no latest books written for Debian systems?

2010-04-21 Thread martin f krafft
also sprach surreal  [2010.04.21.0715 +0200]:
> I wanted to buy a book about Debian, I found that the last book
> written was way back in 2005 by Martin F.
> Krafft<http://www.amazon.com/Martin-F.-Krafft/e/B001K892PK/ref=sr_ntt_srch_lnk_1?_encoding=UTF8&qid=1271826559&sr=8-1>
> 
> After 2005, Etch and Lenny were released.
> 
> In 5 years its surprising no one thought to write a book specially for
> debian lenny or etch ?? Why?

Because writing non-fiction books is not a way to make enough money
for a living, and real life moves on.

I am still working on a new edition, hopefully to be released with
or shortly after Squeeze.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"when in doubt, parenthesize. at the very least it will let some
 poor schmuck bounce on the % key in vi."
 -- larry wall


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20100421075052.gd17...@piper.oerlikon.madduck.net



Re: xorg problem--dual-head, Debian vs. Ubuntu

2010-03-16 Thread martin f krafft
also sprach Jesse Sheidlower  [2010.03.16.1356 +0100]:
> >   xrandr --output VGA --mode 1280x1024 --left-of LVDS
> 
> No, that just gives me:
> 
> $ xrandr --output VGA --mode 1280x1024 --left-of LVDS
> warning: output VGA not found; ignoring
> 
> Which is odd, because when I ran "xrandr --query" it certainly
> did think it was there.

Are you sure it's not VGA0, VGA-0 or VGA1/VGA-1?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"man sagt nicht 'nichts!', man sagt dafür 'jenseits' oder 'gott'."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: xorg problem--dual-head, Debian vs. Ubuntu

2010-03-15 Thread martin f krafft
also sprach Jesse Sheidlower  [2010.03.15.1453 +0100]:
> The T60 has a Radeon X1300 card; the built-in monitor runs at
> 1400 x 1050. I'm trying to attach a 1280 x 1024 external
> monitor through the VGA port. I'm running Xorg 1.7.5, and I do
> not have an xorg.conf at all, I'm letting Xorg generate the
> configuration. When I plug in the external monitor, and run
> Display Preferences to try to set up the two displays, I get a
> popup message reading "The selected configuration for displays
> could not be applied[:] required virtual size does not fit
> available size: requested=(2680,1050), minimum=(320, 200),
> maximum=(1400, 1400)".

Does the following work?

  xrandr --output VGA --mode 1280x1024 --left-of LVDS

What is the output of

  xrandr --query

?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
someday we'll find it
the rainbow connection
the lovers, the dreamers,
and me!
 -- kermit


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Use RAID1 mirror as backup during dist-upgrade?

2010-02-07 Thread martin f krafft
also sprach Reiner Buehl  [2010.01.06.0227 +1300]:
> Does anybody have a more detailed description on how to do this?

If you come across one, please submit it as a bug report against the
mdadm package.

> I know I can fail a drive with mdadm, but my understanding is that
> the data on this this drive can't then be used again after that.

You just can't write to both copies, but you can use this method to
create clones.

> Is that correct or can the bad upgrade disk be failed and then the
> old disk un-failed? How would I tell the system which disk to use?
> What preparation steps are necessary other than making both/all
> mirrors bootable?

Use grub-pc.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the college students who are using lsd and marijuana today do not
 comprise a criminal class. they are not drug addicts seeking to
 escape. they're your best educated, your most creative, and your
 most couragious, young people. and like it or not, they might build
 you a new civilisation."   -- porcupine tree, voyage 34


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: raid on mixed ide/sata drives (/dev/hda /dev/sda) not assembled at boot with initramfs

2010-02-06 Thread martin f krafft
also sprach Alex Samad  [2010.02.07.0952 +1300]:
> strange, trying changing your kernel options to 
> 
> init=/bin/bash
> 
> this will give you a command prompt when the initrd is loaded, but
> before anything is done.  check to see what can be seen by the system,
> can it see hda + sda ?

Appending 'break=mount' to the kernel command line has the same
effect, but the benefit of having the initramfs available, and the
ability to continue by exiting the shell.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"first get your facts; then you can distort them at your leisure."
   -- mark twain


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: raid on mixed ide/sata drives (/dev/hda /dev/sda) not assembled at boot with initramfs

2010-02-06 Thread martin f krafft
also sprach Dr. KERÉKGYÁRTÓ István  [2010.02.07.0759 
+1300]:
> Is there a way to tell the initramfs in which order to detect the
> drives it needs (so that both sda and hda would be detected, with the
> appropriate modules loaded, and only after that would the raid array
> be assembled)?

Try passing rootdelay=10 to the kernel via Grub.

Or give the 3.1.1-1+incremental+4 package in experimental a shot!

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"no, 'eureka' is greek for 'this bath is too hot.'"
-- dr. who


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Problems with insserv during upgrade

2009-11-20 Thread martin f krafft
also sprach Todd A. Jacobs  [2009.11.20.0623 +0100]:
> insserv: There is a loop between service mountall and hibernate-cleanup 
> if started

#554905

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"if there's anything more important than my ego,
 i want it caught and shot now."
-- zaphod beeblebrox


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Raid disk delimma

2009-09-21 Thread martin f krafft
Let's keep this on the list...

also sprach Jack Schneider  [2009.09.21.1857 +0200]:
> Results from :mdadm -Asayes
> 
>   Just returns a prompt: #
> 
>   vgchange -a (gives argument needed message)
>   
>   vgchange -a y :gives  "7 logical volume(s) in volume
>   group "Speeduke" now active"
> 
> 'first seems to complete without error and the second (with my
> change) seems to indicate that all volume groups are found...hmmm!

I'll take a shot into the dark: does it work if you add rootdelay=30
to the linux kernel boot line? E.g.

  kernel /boot/vmlinuz ro root=/dev/md0 rootdelay=30

This will incur a 30 second delay during boot. If that makes it
work, you can experiment with lowering this value, but you will need
to have some sort of sleep in there like that, because apparently
your controllers need more time to make the disks available, and
they do not properly convey to the kernel when they're ready.

Cheers,

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"geld ist das brecheisen der macht."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Raid disk delimma

2009-09-19 Thread martin f krafft
also sprach Jack Schneider  [2009.09.20.0044 +0200]:
> I get to the "Give root password for maintenance etc." place and when I
> do it will not allow me to find any logs.  I can run dmesg which looks
> normal.  Anything that that tries to use /var -locks. etc. fails, so
> it's unable to find /dev/md1 and contents..it seems to me... df -h
> finds /md0 but not /md1

Have a look at the output of

  mdadm -Es

and compare that to the ARRAY lines /etc/mdadm/mdadm.conf. Anything
different?

What do you see when you run

  mdadm -Asayes
  vgchange -a

?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"vulgarity is simply the conduct of other people."
-- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: how to set up iceweasel 3.5 to use mutt as mailer for "link sendto"

2009-09-09 Thread martin f krafft
also sprach Elimar Riesebieter  [2009.09.09.2249 +0200]:
> > I don't understand. mutt has no business with $@ or $[0-9], but
> > I think you are probably hit by #545876. Does the patch fix it for
> > you?
> 
> No.

I'll need more information then. Maybe you can isolate the entire
argument line passed to mailto-mutt (e.g.
"mailto:f...@bar.com?cc=a@b.com&subject=bla…) and let me know? The
best way to get that is probably by substituting a script that just
calls   echo "$@" > /tmp/file

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"no, 'eureka' is greek for 'this bath is too hot.'"
-- dr. who


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: how to set up iceweasel 3.5 to use mutt as mailer for "link sendto"

2009-09-09 Thread martin f krafft
also sprach Elimar Riesebieter  [2009.09.09.1918 +0200]:
> This is somewhat overscripted from madduck ;-) The faxt is, that my
> mutt (hg version from Mutt 1.5.20+lxtecppc (2009-08-04) doesn't
> interpret neither $@ nor $[0-9]. I'll get over to mutt-dev with
> this.

I don't understand. mutt has no business with $@ or $[0-9], but
I think you are probably hit by #545876. Does the patch fix it for
you?

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"emacs sucks, literally, not an insult, just a comment that it's
 large enough to have a noticeable gravitational pull..."
   -- mercury on #debian-devel


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: raid1 / mdadm issues on reboot - /dev/md* not showing up

2009-08-26 Thread martin f krafft
also sprach Derek Bosch  [2009.08.26.2020 +0200]:
> md3 : active (auto-read-only) raid1 sda4[0] sdb4[1]
> 280631360 blocks [2/2] [UU]
> 
> this device DOESN'T appear in /dev/md3
> 
> however:
> md2 : active raid1 sda3[0] sdb3[1]
> 9767424 blocks [2/2] [UU]
> 
> isn't auto-read-only, and does appear as /dev/md2...
> 
> I'd like to reset the "auto-read-only" on /dev/md3, but /dev/md3 doesn't
> exist.  Sometimes I've seen it show up as /dev/.tmp.md3,

File a bug, please.

I doubt this has to do with auto-read-only, which is just a symptom
because the filesystem probably doesn't get mounted, hence the array
is not written and thus stays auto-read-only. The real issue is why
the node doesn't get renamed like it should.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
all software projects are done by iterative prototyping.
some companies call their prototypes "releases", that's all.


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: RAID probs

2009-07-23 Thread martin f krafft
also sprach Glenn English  [2009.07.23.2023 +0200]:
> >From superblocks, which are scanned by the default auto-assembly
> >code.
> 
> Thanks, Martin, but I *hate* helpful software :-)

I am not 100% happy with the way mdadm does things right now. It's
"auto-magic" and I *hate* that too. Or rather: I love Debian for not
being auto-magic all over.

If you agree: http://bugs.debian.org/537993 ;)

> >mdadm --zero-superblock /dev/sdbX
> 
> Fixed. I was thinking it all had to do with setting the partition
> types to Linux RAID...

That would do the trick iff RAIDs were assembled by the kernel,
which only happens if md is compiled into the kernel (rather than
loaded from initrd as a module), which is not the case in vanilla
Debian, so feel free to set your partition types to /anything/ else.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
have you drugged your kids today?


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: RAID probs

2009-07-23 Thread martin f krafft
also sprach Glenn English  [2009.07.23.1943 +0200]:
> I created md0, 1, and 2 RAID1 arrays with mdadm, containing
> partitions from missing and sdb. Then I changed my mind, but mdadm
> seems to be trying to put them together anyway, and I can't figure
> out where it's getting the info.

From superblocks, which are scanned by the default auto-assembly
code.

> I purged mdadm, deleted /etc/mdadm, grep -r'ed /etc and /boot for
> md0 (didn't fine any), find'ed /etc for "*md*" (nothing), zeroed
> the first 1 bytes of sdb, and rebooted. fdisk -l says there's
> no md*.

The superblocks are stored at the end of the disk. Sorry. ;)

> I'm sure it's going to be obvious in retrospect, but what's the
> --nuke_from_orbit switch for mdadm?

mdadm --zero-superblock /dev/sdbX

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the pure and simple truth is rarely pure and never simple."
  -- oscar wilde


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Debian+LVM+RAID

2009-07-12 Thread martin f krafft
also sprach lee  [2009.07.12.0057 +0200]:
> Well, I gave the RAID a name, but that name got lost ... and it still
> has p designation, with kernel 2.6.30.

If you're asking a question, you should include all relevant
details.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"the question of whether computers can think
 is like the question of whether submarines can swim."
 -- edsgar w. dijkstra


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Debian+LVM+RAID

2009-07-09 Thread martin f krafft
also sprach Roger Leigh  [2009.07.10.0131 +0200]:
> > grub2 can boot LVM just as well as it can boot RAID1 or RAID5.
> 
> Is this stable for production use, or still in the experimental
> stage?

It's non-default in lenny still, but it works. That's all I can tell
you, sorry.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"geld ist das brecheisen der macht."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Debian+LVM+RAID

2009-07-09 Thread martin f krafft
also sprach thveillon.debian  [2009.07.09.2215 
+0200]:
> It is possible to boot from mdadm software raid1 with grub2, in Lenny
> and Squeeze. But I would worry about the lvm, I don't think this is as
> straightforward, maybe not even possible at this point (to be
> double-checked anyway).

grub2 can boot LVM just as well as it can boot RAID1 or RAID5.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"es ist immer etwas wahnsinn in der liebe.
 es ist aber auch immer etwas vernunft im wahnsinn."
 - friedrich nietzsche


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


Re: Debian+LVM+RAID

2009-07-09 Thread martin f krafft
also sprach lee  [2009.07.09.2204 +0200]:
>-a, --auto{=no,yes,md,mdp,part,p}{NN}
>   Instruct mdadm to create the device file if needed,
>   possibly allocating an unused minor number.  "md" causes
>   a non-partitionable array to be used.  "mdp", "part" or
>   "p" causes a partitionable array (2.6 and later) to be
>   used.
> "
> 
> You can still decide if you want a partitionable or non-partitionable
> RAID, thus not all RAIDs are partitionable since kernel
> 2.6.29. Unfortunately, the man page doesn't seem to say what the
> default is for the partitionability of the RAID.

mdadm has, uh, conservative maintenance. mdp is no longer needed.
"non-partitionable" arrays will be partitionable with newer kernels.

-- 
 .''`.   martin f. krafft   Related projects:
: :'  :  proud Debian developer   http://debiansystem.info
`. `'`   http://people.debian.org/~madduckhttp://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems
 
"truth is stranger than fiction, but it is because
 fiction is obliged to stick to possibilities; truth isnt."
   -- mark twain


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)


  1   2   3   4   5   6   7   8   9   10   >