Skip to contentSkip to conversation

unwanted kpartx partition delimiter persistance

DISCUSSION Ron Peterson 2 participants 4 messages Nov 9, 2009 – Nov 10, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

Hi,

I have a strange problem w/ a new server. Debian Lenny, kernel 2.6.27.26.

While getting our multipath setup going, we edited /etc/udev/rules.d/z60_kpartx.rules to change the partition delimiter to 'quack'.

That's not the name we want in production, of course, so we changed it to 'p'. The problem is, on every reboot, the /dev/mapper (and /dev/disk/...) names come up with the old delimiter - 'quack'.

If I run 'multipath -F', and 'multipath -v2', then the device names are created as we'd expect them to.

We have grep'd for the string 'quack' everywhere it we can think of, and it's nowhere to be found. There is one kpartx config file in /etc/udev/rules.d only. What could cause the old name to persist like this?

TIA

-Ron-

#1 lore raw
Quoted 12 lines · Ron Peterson

Hi,

I have a strange problem w/ a new server. Debian Lenny, kernel 2.6.27.26.

While getting our multipath setup going, we edited /etc/udev/rules.d/z60_kpartx.rules to change the partition delimiter to 'quack'.

That's not the name we want in production, of course, so we changed it to 'p'. The problem is, on every reboot, the /dev/mapper (and /dev/disk/...) names come up with the old delimiter - 'quack'.

Quoted 8 lines

If I run 'multipath -F', and 'multipath -v2', then the device names are created as we'd expect them to.

We have grep'd for the string 'quack' everywhere it we can think of, and it's nowhere to be found. There is one kpartx config file in /etc/udev/rules.d only. What could cause the old name to persist like this?

I do not have this distro available so my information may not be that useful. but..

It sounds like there is a copy of the old rules in your initrd.

Did you update your initrd post adding "quack" and if so did you run it again after removing "quack"?

-andmike
--
Michael Anderson
[email protected]

#2 lore raw

2009-11-09_16:43:56-0500 Mike Anderson <[email protected]>:

Quoted 6 lines
Quoted 4 lines · Ron Peterson

While getting our multipath setup going, we edited /etc/udev/rules.d/z60_kpartx.rules to change the partition delimiter to 'quack'.

Quoted 8 lines
Quoted 3 lines

That's not the name we want in production, of course, so we changed it to 'p'. The problem is, on every reboot, the /dev/mapper (and /dev/disk/...) names come up with the old delimiter - 'quack'.

It sounds like there is a copy of the old rules in your initrd.

Did you update your initrd post adding "quack" and if so did you run it again after removing "quack"?

Ah. Yes, I compiled a new kernel. I don't have time at the moment to verify this, but that's a very good lead. Thanks!

-Ron-

#3 lore raw

2009-11-09_17:44:30-0500 Ron Peterson <[email protected]>:

Quoted 15 lines

2009-11-09_16:43:56-0500 Mike Anderson <[email protected]>:

Quoted 14 lines
Quoted 7 lines · Ron Peterson

While getting our multipath setup going, we edited /etc/udev/rules.d/z60_kpartx.rules to change the partition delimiter to 'quack'.

That's not the name we want in production, of course, so we changed it to 'p'. The problem is, on every reboot, the /dev/mapper (and /dev/disk/...) names come up with the old delimiter - 'quack'.

It sounds like there is a copy of the old rules in your initrd.

Did you update your initrd post adding "quack" and if so did you run it again after removing "quack"?

That was it. I just upgraded to 2.6.27.39, with udev configured to use 'p' as the partition delimiter, and that is now how it boots. The hair I have left is very grateful. Thanks for your help!

-Ron-