Bug#499060: dmraid: RAID not detected after upgrading to 1.0.0.rc14-3

2008-09-21 Thread Asier
El Domingo, 21 de Septiembre de 2008, Giuseppe Iuculano escribió:

> > Looks like there's a problem with /usr/bin/basename not present before a
> > full mount of the filesystem?
>
> Right, another deb for testing:
>
> http://sd6.iuculano.it/dmraid-testing/dmraid_1.0.0.rc14-4~unreleased3_amd64
>.deb
>
>
> Make sure that after .deb installation there isn't any difference between
> /etc/udev/rules.d/85_dmraid.rules and the file in attachment.

Magic words: fixed!

RAID array now is detected and the /dev/mapper/ entry is created. 

Thanks for your support

Greets
-- 
Asier.



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



Bug#499060: dmraid: RAID not detected after upgrading to 1.0.0.rc14-3

2008-09-21 Thread Asier
El Domingo, 21 de Septiembre de 2008, Giuseppe Iuculano escribió:
> I need some debug logs.
> Extract the attached .tar.gz, and you have a dmraid-debug directory
>
> cd dmraid-debug
> cp -a sbin/* /sbin/
> cp -a 85_dmraid.rules /etc/udev/rules.d/
>
> Reboot, and you will get /dev/dmraid.log and /dev/dmraid-activate.log
>
> Please, do not run dmraid-activate or udevadmin trigger after the first
> fail, otherwise logs are overwritten.

Here they go.

Looks like there's a problem with /usr/bin/basename not present before a full 
mount of the filesystem?

Thanks
-- 
Asier.
+ set -v

if [ -z "$1" ] || [ "$1" = "--degraded" ] && [ "$#" -lt 2 ]; then
	echo "Node name not specified." >&2
	exit 1
fi
+ '[' -z sdc ']'
+ '[' sdc = --degraded ']'

if [ "$1" = "--degraded" ]; then
	Degraded=1
	Node_Name=$(basename $2)
else
	Node_Name=$(basename $1)
fi
+ '[' sdc = --degraded ']'
+ set -v

if [ -z "$1" ] || [ "$1" = "--degraded" ] && [ "$#" -lt 2 ]; then
	echo "Node name not specified." >&2
	exit 1
fi
+ '[' -z sdb ']'
+ '[' sdb = --degraded ']'

if [ "$1" = "--degraded" ]; then
	Degraded=1
	Node_Name=$(basename $2)
else
	Node_Name=$(basename $1)
fi
+ '[' sdb = --degraded ']'
+ set -v

if [ -z "$1" ] || [ "$1" = "--degraded" ] && [ "$#" -lt 2 ]; then
	echo "Node name not specified." >&2
	exit 1
fi
+ '[' -z sda ']'
+ '[' sda = --degraded ']'
basename $1

if [ "$1" = "--degraded" ]; then
	Degraded=1
	Node_Name=$(basename $2)
else
	Node_Name=$(basename $1)
fi
+ '[' sda = --degraded ']'
++ basename sdb
/sbin/dmraid-activate-debug: line 33: basename: command not found
basename $1
+ Node_Name=
++ basename sdc

Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1)
/sbin/dmraid-activate-debug: line 33: basename: command not found
+ Node_Name=

Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1)
dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1
basename $1
++ dmraid -i -r -cr /dev/
++ basename sda
/sbin/dmraid-activate-debug: line 33: basename: command not found
+ Node_Name=

Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1)
dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1
++ dmraid -i -r -cr /dev/
dmraid -i -r -cr /dev/$Node_Name >> /dev/dmraid.log 2>&1
++ dmraid -i -r -cr /dev/
+ Raid_Name=
Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks")
dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks"
++ dmraid -i -r -cr /dev/
+ Raid_Name=
Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks")
+ Raid_Name=
Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks")
++ grep -v 'No RAID disks'
dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks"
+ Raid_Name=

if [ -z "$Raid_Name" ]; then
	exit 0
fi
+ '[' -z '' ']'
+ exit 0
dmraid -i -r -cr /dev/$Node_Name | grep -v "No RAID disks"
++ dmraid -i -r -cr /dev/
++ grep -v 'No RAID disks'
++ dmraid -i -r -cr /dev/
+ Raid_Name=

if [ -z "$Raid_Name" ]; then
	exit 0
fi
+ '[' -z '' ']'
+ exit 0
++ grep -v 'No RAID disks'
+ Raid_Name=

if [ -z "$Raid_Name" ]; then
	exit 0
fi
+ '[' -z '' ']'
+ exit 0
No RAID disks and with names: "/dev/"
No RAID disks and with names: "/dev/"
No RAID disks and with names: "/dev/"


Bug#499060: dmraid: RAID not detected after upgrading to 1.0.0.rc14-3

2008-09-21 Thread Asier
El Sábado, 20 de Septiembre de 2008, Giuseppe Iuculano escribió:

> Try this .deb:
> http://sd6.iuculano.it/dmraid-testing/dmraid_1.0.0.rc14-4~unreleased2_amd64
>.deb

I installed it:

[EMAIL PROTECTED]:~# dpkg -l |grep dmraid
ii  dmraid  1.0.0.rc14-4~unreleased2  Device-Mapper Software RAID support tool

[EMAIL PROTECTED]:~# apt-cache policy dmraid
dmraid:
  Instalados: 1.0.0.rc14-4~unreleased2
  Candidato: 1.0.0.rc14-4~unreleased2
  Tabla de versión:
 *** 1.0.0.rc14-4~unreleased2 0
100 /var/lib/dpkg/status
 1.0.0.rc14-3 0
500 http://ftp.fr.debian.org lenny/main Packages

> I think this should fix this issue.
>
> Make sure that after .deb installation there isn't any difference between
> /etc/udev/rules.d/85_dmraid.rules and the file in attachment.
>

The problem... remains, attached /etc/udev/rules.d/85_dmraid.rules and the 
boot loog :-(

Thanks
-- 
Asier.
Sun Sep 21 09:05:03 2008: .
Sun Sep 21 09:05:03 2008: Setting parameters of disc: (none).
Sun Sep 21 09:05:03 2008: Setting the system clock.
Sun Sep 21 09:05:03 2008: Activating swap...done.
Sun Sep 21 09:05:03 2008: Checking root file system...fsck 1.41.0 (10-Jul-2008)
Sun Sep 21 09:05:03 2008: /dev/sda1: clean, 10611/122624 files, 54786/244983 
blocks
Sun Sep 21 09:05:03 2008: done.
Sun Sep 21 09:05:03 2008: Setting the system clock.
Sun Sep 21 09:05:03 2008: Cleaning up ifupdown
Sun Sep 21 09:05:03 2008: Loading kernel modules...done.
Sun Sep 21 09:05:03 2008: Loading device-mapper support.
Sun Sep 21 09:05:03 2008: Checking file systems...fsck 1.41.0 (10-Jul-2008)
Sun Sep 21 09:05:03 2008: /dev/sda2 has been mounted 21 times without being 
checked, check forced.
Sun Sep 21 09:05:03 2008: \002/dev/sda2: 116/24192 files (7.8% non-contiguous), 
16358/96388 blocks   
Sun Sep 21 09:05:03 2008: /dev/sda5: clean, 162435/1465920 files, 
994410/2929846 blocks
Sun Sep 21 09:05:03 2008: /dev/sda6 has been mounted 21 times without being 
checked, check forced.
Sun Sep 21 09:05:03 2008: \002/dev/sda6: 24997/1831424 files (8.6% 
non-contiguous), 1113381/3662812 blocks   
Sun Sep 21 09:05:03 2008: /sbin/fsck.xfs: XFS file system.
Sun Sep 21 09:05:03 2008: /dev/sda7: clean, 33/1465920 files, 171602/2929846 
blocks
Sun Sep 21 09:05:03 2008: /sbin/fsck.xfs: XFS file system.
Sun Sep 21 09:05:03 2008: fsck.ext3: No such file or directory while trying to 
open /dev/mapper/isw_bbfcfdfbdj_RAID_Sata
Sun Sep 21 09:05:03 2008: /dev/mapper/isw_bbfcfdfbdj_RAID_Sata: 
Sun Sep 21 09:05:03 2008: The superblock could not be read or does not describe 
a correct ext2
Sun Sep 21 09:05:03 2008: filesystem.  If the device is valid and it really 
contains an ext2
Sun Sep 21 09:05:03 2008: filesystem (and not swap or ufs or something else), 
then the superblock
Sun Sep 21 09:05:03 2008: is corrupt, and you might try running e2fsck with an 
alternate superblock:
Sun Sep 21 09:05:03 2008: e2fsck -b 8193 
Sun Sep 21 09:05:03 2008: 
Sun Sep 21 09:05:03 2008: fsck died with exit status 8
Sun Sep 21 09:05:03 2008: failed (code 8).
Sun Sep 21 09:05:03 2008: File system check failed. A log is being saved in 
/var/log/fsck/checkfs if that location is writable. Please repair the file 
system manually. failed!
Sun Sep 21 09:05:03 2008: A maintenance shell will now be started. CONTROL-D 
will terminate this shell and resume system boot. (warning).
Sun Sep 21 09:05:03 2008: Give root password for maintenance
Sun Sep 21 09:05:03 2008: (or type Control-D to continue): 
Sun Sep 21 09:05:03 2008: Setting kernel variables (/etc/sysctl.conf)...done.
Sun Sep 21 09:05:03 2008: Mounting local filesystems...mount: special device 
/dev/mapper/isw_bbfcfdfbdj_RAID_Sata does not exist
Sun Sep 21 09:05:05 2008: ^[[31mfailed.^[[39;49m
Sun Sep 21 09:05:05 2008: Activating swapfile swap...done.
Sun Sep 21 09:05:07 2008: Setting up networking
Sun Sep 21 09:05:07 2008: Configuring network 
interfaces...if-up.d/mountnfs[eth1]: waiting for interface tap0 before doing 
NFS mounts (warning).
Sun Sep 21 09:05:07 2008: if-up.d/mountnfs[eth1]: waiting for interface dummy0 
before doing NFS mounts (warning).
Sun Sep 21 09:05:08 2008: Restarting openntpd: ntpd.
Sun Sep 21 09:05:24 2008: SIOCSIFADDR: No such device
Sun Sep 21 09:05:24 2008: tap0: ERROR while getting interface flags: No such 
device
Sun Sep 21 09:05:24 2008: SIOCSIFNETMASK: Cannot assign requested address
Sun Sep 21 09:05:24 2008: SIOCSIFBRDADDR: Cannot assign requested address
Sun Sep 21 09:05:24 2008: Failed to bring up tap0.
Sun Sep 21 09:05:24 2008: if-up.d/mountnfs[dummy0]: waiting for interface tap0 
before doing NFS mounts (warning).
Sun Sep 21 09:05:24 2008: Restarting openntpd: ntpd.
Sun Sep 21 09:05:41 2008: done.
Sun Sep 21 09:05:41 2008: Setting sensors limits.
Sun Sep 21 09:05:41 2008: Setting console screen modes and fonts.
Sun Sep 21 09:05:41 2008: ^[]R^[[9;30]^[[14;30]Setting up ALSA...done.
Sun Sep 21 09:05:42 2008: INIT: Entering runlevel: 2
Sun Sep 21 09:05:42

Bug#499060: dmraid: RAID not detected after upgrading to 1.0.0.rc14-3

2008-09-18 Thread Asier
El Jueves, 18 de Septiembre de 2008, Giuseppe Iuculano escribió:
> Asier ha scritto:
> > Hmmm... no file is created under /root Perhaps I don't have some kernel
> > option enabled :-?
>
> I think something is broken in udev rule, please backup again your
> /etc/udev/rules.d/85_dmraid.rules and replace it with the attackment.

Bet one...

The same problem. The RAID array isn't detected :(

/var/log/boot

Thu Sep 18 23:09:34 2008: .
Thu Sep 18 23:09:34 2008: Setting parameters of disc: (none).
Thu Sep 18 23:09:34 2008: Setting the system clock.
Thu Sep 18 23:09:34 2008: Activating swap...done.
Thu Sep 18 23:09:34 2008: Checking root file system...fsck 1.41.0 
(10-Jul-2008)
Thu Sep 18 23:09:34 2008: /dev/sda1: clean, 10611/122624 files, 54784/244983 
blocks
Thu Sep 18 23:09:34 2008: done.
Thu Sep 18 23:09:34 2008: Setting the system clock.
Thu Sep 18 23:09:34 2008: Cleaning up ifupdown
Thu Sep 18 23:09:34 2008: Loading kernel modules...done.
Thu Sep 18 23:09:34 2008: Loading device-mapper support.
Thu Sep 18 23:09:34 2008: Checking file systems...fsck 1.41.0 (10-Jul-2008)
Thu Sep 18 23:09:34 2008: /dev/sda2: clean, 116/24192 files, 16358/96388 
blocks (check in 4 mounts)
Thu Sep 18 23:09:34 2008: /dev/sda5: clean, 161881/1465920 files, 
988701/2929846 blocks (check after next mount)
Thu Sep 18 23:09:34 2008: /dev/sda6: clean, 24997/1831424 files, 
1113381/3662812 blocks (check in 4 mounts)
Thu Sep 18 23:09:34 2008: /sbin/fsck.xfs: XFS file system.
Thu Sep 18 23:09:34 2008: /dev/sda7: clean, 121/1465920 files, 50659/2929846 
blocks
Thu Sep 18 23:09:34 2008: /sbin/fsck.xfs: XFS file system.
Thu Sep 18 23:09:34 2008: fsck.ext3: No such file or directory while trying to 
open /dev/mapper/isw_bbfcfdfbdj_RAID_Sata
Thu Sep 18 23:09:34 2008: /dev/mapper/isw_bbfcfdfbdj_RAID_Sata:
Thu Sep 18 23:09:34 2008: The superblock could not be read or does not 
describe a correct ext2
Thu Sep 18 23:09:34 2008: filesystem.  If the device is valid and it really 
contains an ext2
Thu Sep 18 23:09:34 2008: filesystem (and not swap or ufs or something else), 
then the superblock
Thu Sep 18 23:09:34 2008: is corrupt, and you might try running e2fsck with an 
alternate superblock:
Thu Sep 18 23:09:34 2008: e2fsck -b 8193 
Thu Sep 18 23:09:34 2008:
Thu Sep 18 23:09:34 2008: fsck died with exit status 8
Thu Sep 18 23:09:34 2008: failed (code 8).
Thu Sep 18 23:09:34 2008: File system check failed. A log is being saved 
in /var/log/fsck/checkfs if that location is writable. Please repair the file 
system manually. failed!
Thu Sep 18 23:09:34 2008: A maintenance shell will now be started. CONTROL-D 
will terminate this shell and resume system boot. (warning).
Thu Sep 18 23:09:34 2008: Give root password for maintenance
Thu Sep 18 23:09:34 2008: (or type Control-D to continue):

Thanks
-- 
Asier.



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