Bug#474548: mdadm: error hot-adding drive to raid1 array after fail

2008-04-29 Thread Neil Brown
On Friday April 11, [EMAIL PROTECTED] wrote:
 tags 474548 upstream
 thanks
 
 also sprach Alex Samad [EMAIL PROTECTED] [2008.04.06.1525 +0200]:
  seems like there is an error in 2.6.x stream of mdadm, when trying to
  hot add a disk to a raid1 array after 1 disk failed.
  
  I tried to do it and I kept getting errors. down graded to 2.5.x and it
  worked fine.
  
  Found this thread (with patch)
 
 Any chance of getting this patch[0] into upstream?
 
 0. http://www.mail-archive.com/[EMAIL PROTECTED]/msg10248.html

OK, it will appear in my .git shortly.

NeilBrown



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#474548: mdadm: error hot-adding drive to raid1 array after fail

2008-04-11 Thread martin f krafft
tags 474548 upstream
thanks

also sprach Alex Samad [EMAIL PROTECTED] [2008.04.06.1525 +0200]:
 seems like there is an error in 2.6.x stream of mdadm, when trying to
 hot add a disk to a raid1 array after 1 disk failed.
 
 I tried to do it and I kept getting errors. down graded to 2.5.x and it
 worked fine.
 
 Found this thread (with patch)

Any chance of getting this patch[0] into upstream?

0. http://www.mail-archive.com/[EMAIL PROTECTED]/msg10248.html

-- 
 .''`.   martin f. krafft [EMAIL PROTECTED]
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems


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


Bug#474548: mdadm: error hot-adding drive to raid1 array after fail

2008-04-06 Thread Alex Samad
Package: mdadm
Version: 2.6.4-1
Severity: normal


seems like there is an error in 2.6.x stream of mdadm, when trying to
hot add a disk to a raid1 array after 1 disk failed.

I tried to do it and I kept getting errors. down graded to 2.5.x and it
worked fine.

Found this thread (with patch)

http://www.mail-archive.com/[EMAIL PROTECTED]/msg10248.html

Alex

-- Package-specific info:
--- mount output
/dev/md1 on / type ext3 (rw,errors=remount-ro,acl)
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)
procbususb on /proc/bus/usb type usbfs (rw)
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)
none on /selinux type selinuxfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/md0 on /boot type ext3 (rw)
/dev/mapper/raid0-tmp on /tmp type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime)
/dev/mapper/raid0-varlog on /var/log type ext3 (rw,noatime,nodiratime,acl)
/dev/mapper/raid1-home on /home type ext3 (rw,noatime,nodiratime,acl)
/dev/mapper/raid1-alexhome on /home/alex type ext3 (rw,noatime,nodiratime,acl)
/dev/mapper/raid1-anastazia on /home/anastazia type ext3 
(rw,noatime,nodiratime,acl)
/dev/mapper/raid1-kathrinhome on /home/kathrin type ext3 
(rw,noatime,nodiratime,acl)
/home/alex/Maildir on /home/alex/Maildir type none (rw,bind)
/home/kathrin/Maildir on /home/kathrin/Maildir type none (rw,bind)
/dev/mapper/raid1-bblxfw01 on /home/bblxfw01 type ext3 
(rw,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid0-squid on /var/cache/squid type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-apt--cacher on /var/cache/apt-cacher type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid0-apt on /var/cache/apt type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-downloads on /exports/downloads type ext3 
(rw,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-video on /exports/video type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-music on /exports/music type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-shared on /exports/shared type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-pictures on /exports/Pictures type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-cvs on /exports/cvs type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-webdav on /exports/webdav type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-doc on /usr/share/doc type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-usrlocal on /usr/local type ext3 
(rw,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-www on /var/www type ext3 
(rw,noexec,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid0-vmware on /srv/vmware type ext3 
(rw,nosuid,nodev,noatime,nodiratime,acl)
/dev/mapper/raid1-spoolexim on /var/spool/exim4 type ext3 
(rw,noexec,nosuid,nodev,sync,acl)
/dev/mapper/raid1-VideoCamera on /exports/VideoCamera type ext3 
(rw,noexec,nosuid,nodev,sync,noatime,nodiratime,acl)
/dev/dm-5 on /exports/rex type xfs (ro,noexec,nosuid,nodev,noatime,nodiratime)
/dev/mapper/raid1-chroot on /chroot type ext3 (rw,acl)
proc on /chroot/etch-ia32/proc type proc (rw)
/tmp on /chroot/etch-ia32/tmp type none (rw,bind)
/home on /chroot/etch-ia32/home type none (rw,bind)
/home/alex on /chroot/etch-ia32/home/alex type none (rw,bind)
/exports/downloads on /chroot/etch-ia32/exports/downloads type none (rw,bind)
/exports/video on /chroot/etch-ia32/exports/video type none (rw,bind)
/exports/music on /chroot/etch-ia32/exports/music type none (rw,bind)
/exports/shared on /chroot/etch-ia32/exports/shared type none (rw,bind)
/exports/Pictures on /chroot/etch-ia32/exports/Pictures type none (rw,bind)
/dev/mapper/raid1-backups on /backups type ext3 (rw,nosuid,nodev,acl)
nfsd on /proc/fs/nfsd type nfsd (rw)

--- mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST system

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=04698cd3:a02af09f:069cb42f:03f72d27
ARRAY /dev/md1 level=raid1 num-devices=2 
UUID=ba8c4627:6e74a6c4:1a2e6c15:22feafcf
ARRAY /dev/md2 level=raid1 num-devices=2 
UUID=6afd4ab6:ce0ef994:2f0e35eb:2949c9ef
ARRAY /dev/md3 level=raid1 num-devices=2 
UUID=5782df0f:22160d41:2f0e35eb:2949c9ef
#ARRAY /dev/md0 level=raid1 num-devices=2