Package: mdadm
Version: 3.1.4-1+8efb9d1+squeeze1
Severity: normal

The man page says "Also, using --uuid= when creating a v0.90 array will
silently override any --homehost= setting."

This is not true:
root@squeeze00:~# date; mdadm --create /dev/md1 
--uuid=6f05ff4e:b4d49c1f:7fa21d88:ad0c50a9 --homehost=migrate08 --metadata=0.90 
--leve\
l=mirror --raid-devices=2 /dev/sdb3 missing
Tue Sep  4 12:33:37 PDT 2012
mdadm: /dev/sdb3 appears to be part of a raid array:
    level=raid1 devices=2 ctime=Fri Aug 31 20:59:50 2012
Continue creating array? y
mdadm: array /dev/md1 started.
root@squeeze00:~# mdadm --examine /dev/sdb3
/dev/sdb3:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 6f05ff4e:b4d49c1f:1b351879:7d3a4743

I also tried with homehost after uuid and with no homehost at all.  The
uuid is always rewritten.

This is a problem for me because I am attempting to reconstruct an array
of virtual disks for a lenny VM that expects the uuid I specified.

As an aside, I'm not sure why this system has a mdadm.conf (below).  The
base VM (before mount the 2 virtual disks to repair) uses no s/w raid.
Note the 2 virtual disks support 2 different RAID devices, based on the
1st and 3rd partitions respectively.

-- Package-specific info:
--- mdadm.conf
DEVICE partitions
CREATE owner=root group=disk mode=0660 auto=yes
HOMEHOST <system>
MAILADDR root
ARRAY /dev/md0 UUID=b0247721:1d41bea7:7fa21d88:ad0c50a9

--- /etc/default/mdadm
INITRDSTART='none'
AUTOSTART=false
AUTOCHECK=true
START_DAEMON=true
DAEMON_OPTIONS="--syslog"
VERBOSE=false

--- /proc/mdstat:
Personalities : [raid1]
unused devices: <none>

--- /proc/partitions:
major minor  #blocks  name

   8        0   10485760 sda
   8        1    9984366 sda1
   8        2          1 sda2
   8        5     497983 sda5
   8       32    8388608 sdc
   8       33      96358 sdc1
   8       34     104422 sdc2
   8       35    8187795 sdc3
   8       16    8388608 sdb
   8       17      96358 sdb1
   8       18     104422 sdb2
   8       19    8187795 sdb3

--- LVM physical volumes:
LVM does not seem to be used.
--- mount output
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)

--- initrd.img-2.6.32-5-amd64:
55146 blocks
79246b981b4d424653bcabc1192b7161  ./sbin/mdadm
078b1dc76a3a2d4500122570e20506d7  ./etc/mdadm/mdadm.conf
f4fbd9099399ab08ba9b9f6c71d77595  ./scripts/local-top/mdadm
2613966c4ad244d2020546606edf881d  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/linear.ko
ac72e0740fbbed1d4a7b771a0b98b2ac  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid0.ko
912cd85e91564b2da63cf5d2cd87ce59  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid6_pq.ko
0bdeea8ac1da08d22e9f341b57ed3240  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/md-mod.ko
1707ef1ad879edbd28669595280e1380  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/dm-mod.ko
626ce1750d8050656dbac2ca18877747  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid456.ko
86a641df9b740ea7194c73ba0b5cf153  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid10.ko
1284687180c2447540b9e65acbf84bde  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/raid1.ko
9560815ed4d481c31ba7ee0d0f43dfd6  
./lib/modules/2.6.32-5-amd64/kernel/drivers/md/multipath.ko

--- initrd's /conf/conf.d/md:
MD_HOMEHOST='squeeze00'
MD_DEVS=none
MD_MODULES=''

--- /proc/modules:
raid1 18431 0 - Live 0xffffffffa0052000
md_mod 73920 1 raid1, Live 0xffffffffa02cf000

--- /var/log/syslog:

--- volume detail:
/dev/sda is not recognised by mdadm.
/dev/sda1 is not recognised by mdadm.
/dev/sda2 is not recognised by mdadm.
/dev/sda5 is not recognised by mdadm.
/dev/sdb is not recognised by mdadm.
dev/sdb1:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : b0247721:1d41bea7:7fa21d88:ad0c50a9
  Creation Time : Mon Jun 27 13:34:19 2011
     Raid Level : raid1
  Used Dev Size : 96256 (94.02 MiB 98.57 MB)
     Array Size : 96256 (94.02 MiB 98.57 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Fri Aug 31 20:13:27 2012
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 418bd296 - correct
         Events : 28


      Number   Major   Minor   RaidDevice State
this     0       3        1        0      active sync

   0     0       3        1        0      active sync
   1     1       3       65        1      active sync
--
/dev/sdb2 is not recognised by mdadm.
/dev/sdb3:
          Magic : a92b4efc
        Version : 0.90.00
           UUID : 6f05ff4e:b4d49c1f:1b351879:7d3a4743
  Creation Time : Tue Sep  4 12:33:54 2012
     Raid Level : raid1
  Used Dev Size : 8187712 (7.81 GiB 8.38 GB)
     Array Size : 8187712 (7.81 GiB 8.38 GB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 1

    Update Time : Tue Sep  4 12:33:54 2012
          State : active
 Active Devices : 1
Working Devices : 1
 Failed Devices : 1
  Spare Devices : 0
       Checksum : 67ee952 - correct
         Events : 1


      Number   Major   Minor   RaidDevice State
this     0       8       19        0      active sync   /dev/sdb3

   0     0       8       19        0      active sync   /dev/sdb3
   1     0       0        0        0      spare
--
/dev/sdc is not recognised by mdadm.
/dev/sdc1:
         Magic : a92b4efc
        Version : 0.90.00
           UUID : b0247721:1d41bea7:7fa21d88:ad0c50a9
  Creation Time : Mon Jun 27 13:34:19 2011
     Raid Level : raid1
  Used Dev Size : 96256 (94.02 MiB 98.57 MB)
     Array Size : 96256 (94.02 MiB 98.57 MB)
   Raid Devices : 2
  Total Devices : 2
Preferred Minor : 0

    Update Time : Fri Aug 31 20:13:27 2012
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0
       Checksum : 418bd2d8 - correct
         Events : 28


      Number   Major   Minor   RaidDevice State
this     1       3       65        1      active sync

   0     0       3        1        0      active sync
   1     1       3       65        1      active sync
--
/dev/sdc2 is not recognised by mdadm.
/dev/sdc3 is not recognised by mdadm.

--- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-amd64 
root=UUID=5214601b-a9c6-496a-95cf-99962f6bb215 ro clock=pit quiet

--- grub2:
set root='(hd0,msdos1)'
set root='(hd0,msdos1)'
set root='(hd0,msdos1)'
        set root='(hd0,msdos1)'
        linux   /boot/vmlinuz-2.6.32-5-amd64 
root=UUID=5214601b-a9c6-496a-95cf-99962f6bb215 ro clock=pit quiet
        set root='(hd0,msdos1)'
        linux   /boot/vmlinuz-2.6.32-5-amd64 
root=UUID=5214601b-a9c6-496a-95cf-99962f6bb215 ro single clock=pit

--- udev:
ii  udev           164-3          /dev/ and hotplug management daemon
4a574fcd059040d33ea18a8aa605a184  /lib/udev/rules.d/64-md-raid.rules

--- /dev:
brw-rw---- 1 root disk 9, 1 Sep  4 12:35 /dev/md1

/dev/disk/by-id:
total 0
lrwxrwxrwx 1 root root  9 Sep  3 21:13 ata-QEMU_HARDDISK_QM00001 -> ../../sda
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00001-part1 -> 
../../sda1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00001-part2 -> 
../../sda2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00001-part5 -> 
../../sda5
lrwxrwxrwx 1 root root  9 Sep  3 21:13 ata-QEMU_HARDDISK_QM00002 -> ../../sdb
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00002-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00002-part2 -> 
../../sdb2
lrwxrwxrwx 1 root root 10 Sep  4 12:33 ata-QEMU_HARDDISK_QM00002-part3 -> 
../../sdb3
lrwxrwxrwx 1 root root  9 Sep  3 21:13 ata-QEMU_HARDDISK_QM00003 -> ../../sdc
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00003-part1 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00003-part2 -> 
../../sdc2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 ata-QEMU_HARDDISK_QM00003-part3 -> 
../../sdc3
lrwxrwxrwx 1 root root  9 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00001 -> 
../../sda
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00001-part1 -> 
../../sda1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00001-part2 -> 
../../sda2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00001-part5 -> 
../../sda5
lrwxrwxrwx 1 root root  9 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00002 -> 
../../sdb
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00002-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00002-part2 -> 
../../sdb2
lrwxrwxrwx 1 root root 10 Sep  4 12:33 scsi-SATA_QEMU_HARDDISK_QM00002-part3 -> 
../../sdb3
lrwxrwxrwx 1 root root  9 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00003 -> 
../../sdc
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00003-part1 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00003-part2 -> 
../../sdc2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 scsi-SATA_QEMU_HARDDISK_QM00003-part3 -> 
../../sdc3

/dev/disk/by-path:
total 0
lrwxrwxrwx 1 root root  9 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:0:0 -> 
../../sda
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:0:0-part1 -> 
../../sda1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:0:0-part2 -> 
../../sda2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:0:0-part5 -> 
../../sda5
lrwxrwxrwx 1 root root  9 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:1:0 -> 
../../sdb
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:1:0-part1 -> 
../../sdb1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-0:0:1:0-part2 -> 
../../sdb2
lrwxrwxrwx 1 root root 10 Sep  4 12:33 pci-0000:00:01.1-scsi-0:0:1:0-part3 -> 
../../sdb3
lrwxrwxrwx 1 root root  9 Sep  3 21:13 pci-0000:00:01.1-scsi-1:0:0:0 -> 
../../sdc
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-1:0:0:0-part1 -> 
../../sdc1
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-1:0:0:0-part2 -> 
../../sdc2
lrwxrwxrwx 1 root root 10 Sep  3 21:13 pci-0000:00:01.1-scsi-1:0:0:0-part3 -> 
../../sdc3

/dev/disk/by-uuid:
total 0
lrwxrwxrwx 1 root root 10 Sep  3 21:13 383bd487-edb6-46b8-9396-e76903bd47e6 -> 
../../sda5
lrwxrwxrwx 1 root root 10 Sep  3 21:13 5214601b-a9c6-496a-95cf-99962f6bb215 -> 
../../sda1

Auto-generated on Tue, 04 Sep 2012 13:07:35 -0700
by mdadm bugscript 3.1.4-1+8efb9d1+squeeze1

-- System Information:
Debian Release: 6.0.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mdadm depends on:
ii  debconf                 1.5.36.1         Debian configuration management sy
ii  libc6                   2.11.3-3         Embedded GNU C Library: Shared lib
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  udev                    164-3            /dev/ and hotplug management daemo

Versions of packages mdadm recommends:
ii  exim4-daemon-light [mail 4.72-6+squeeze2 lightweight Exim MTA (v4) daemon
ii  module-init-tools        3.12-2          tools for managing Linux kernel mo

mdadm suggests no packages.

-- debconf information:
  mdadm/initrdstart_msg_errexist:
  mdadm/initrdstart_msg_intro:
* mdadm/autostart: false
  mdadm/autocheck: true
  mdadm/initrdstart_msg_errblock:
  mdadm/mail_to: root
  mdadm/initrdstart_msg_errmd:
* mdadm/initrdstart: none
  mdadm/initrdstart_msg_errconf:
  mdadm/initrdstart_notinconf: false
  mdadm/start_daemon: true


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

Reply via email to