El Lunes 20 Abril 2009, Giuseppe Iuculano escribió: > Please test again with dmraid-debug.tar.gz but cp the attached > dmraid-activate-debug in /sbin/ >
Not detected nor mounted; attached logs Thanks -- Asier.
isw_bbfcfdfbdj isw_bbfcfdfbdj /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdc (isw): 0x000 sig: " Intel Raid ISM Cfg Sig. 1.0.00" 0x020 check_sum: 2305271808 0x024 mpb_size: 480 0x028 family_num: 1152535139 0x02c generation_num: 27 0x030 error_log_size: 4384 0x034 attributes: 3221225472 0x038 num_disks: 2 0x039 num_raid_devs: 1 0x03a error_log_pos: 2 0x03c cache_size: 0 0x040 orig_family_num: 0 0x0d8 disk[0].serial: " L60GVTMG" 0x0e8 disk[0].totalBlocks: 586114704 0x0ec disk[0].scsiId: 0x0 0x0f0 disk[0].status: 0x13a 0x0f4 disk[0].owner_cfg_num: 0x0 0x108 disk[1].serial: " V60NNGGG" 0x118 disk[1].totalBlocks: 625142448 0x11c disk[1].scsiId: 0x30000 0x120 disk[1].status: 0x13a 0x124 disk[1].owner_cfg_num: 0x0 0x138 isw_dev[0].volume: " RAID_Sata" 0x14c isw_dev[0].SizeHigh: 0 0x148 isw_dev[0].SizeLow: 1172228096 0x150 isw_dev[0].status: 0x0 0x154 isw_dev[0].reserved_blocks: 0 0x158 isw_dev[0].migr_priority: 0 0x159 isw_dev[0].num_sub_vol: 0 0x15a isw_dev[0].tid: 1 0x15b isw_dev[0].cng_master_disk: 0 0x15c isw_dev[0].cache_policy: 0 0x15e isw_dev[0].cng_state: 0 0x15f isw_dev[0].cng_sub_state: 0 0x188 isw_dev[0].vol.curr_migr_unit: 0 0x18c isw_dev[0].vol.check_point_id: 0 0x190 isw_dev[0].vol.migr_state: 0 0x191 isw_dev[0].vol.migr_type: 0 0x192 isw_dev[0].vol.dirty: 0 0x193 isw_dev[0].vol.fs_state: 0 0x194 isw_dev[0].vol.verify_errors: 0 0x196 isw_dev[0].vol.verify_bad_blocks: 0 0x1a8 isw_dev[0].vol.map[0].pba_of_lba0: 0 0x1ac isw_dev[0].vol.map[0].blocks_per_member: 586114048 0x1b0 isw_dev[0].vol.map[0].num_data_stripes: 9158032 0x1b4 isw_dev[0].vol.map[0].blocks_per_strip: 64 0x1b6 isw_dev[0].vol.map[0].map_state: 0 0x1b7 isw_dev[0].vol.map[0].raid_level: 0 0x1b8 isw_dev[0].vol.map[0].num_members: 2 0x1b9 isw_dev[0].vol.map[0].num_domains: 1 0x1ba isw_dev[0].vol.map[0].failed_disk_num: 255 0x1bb isw_dev[0].vol.map[0].ddf: 1 0x1d8 isw_dev[0].vol.map[0].disk_ord_tbl[0]: 0x0 0x1dc isw_dev[0].vol.map[0].disk_ord_tbl[1]: 0x1 /dev/sdb: "pdc" and "isw" formats discovered (using isw)! /dev/sdb (isw): 0x000 sig: " Intel Raid ISM Cfg Sig. 1.0.00" 0x020 check_sum: 2305271808 0x024 mpb_size: 480 0x028 family_num: 1152535139 0x02c generation_num: 27 0x030 error_log_size: 4384 0x034 attributes: 3221225472 0x038 num_disks: 2 0x039 num_raid_devs: 1 0x03a error_log_pos: 2 0x03c cache_size: 0 0x040 orig_family_num: 0 0x0d8 disk[0].serial: " L60GVTMG" 0x0e8 disk[0].totalBlocks: 586114704 0x0ec disk[0].scsiId: 0x20000 0x0f0 disk[0].status: 0x13a 0x0f4 disk[0].owner_cfg_num: 0x0 0x108 disk[1].serial: " V60NNGGG" 0x118 disk[1].totalBlocks: 625142448 0x11c disk[1].scsiId: 0x10000 0x120 disk[1].status: 0x13a 0x124 disk[1].owner_cfg_num: 0x0 0x138 isw_dev[0].volume: " RAID_Sata" 0x14c isw_dev[0].SizeHigh: 0 0x148 isw_dev[0].SizeLow: 1172228096 0x150 isw_dev[0].status: 0x0 0x154 isw_dev[0].reserved_blocks: 0 0x158 isw_dev[0].migr_priority: 0 0x159 isw_dev[0].num_sub_vol: 0 0x15a isw_dev[0].tid: 1 0x15b isw_dev[0].cng_master_disk: 0 0x15c isw_dev[0].cache_policy: 0 0x15e isw_dev[0].cng_state: 0 0x15f isw_dev[0].cng_sub_state: 0 0x188 isw_dev[0].vol.curr_migr_unit: 0 0x18c isw_dev[0].vol.check_point_id: 0 0x190 isw_dev[0].vol.migr_state: 0 0x191 isw_dev[0].vol.migr_type: 0 0x192 isw_dev[0].vol.dirty: 0 0x193 isw_dev[0].vol.fs_state: 0 0x194 isw_dev[0].vol.verify_errors: 0 0x196 isw_dev[0].vol.verify_bad_blocks: 0 0x1a8 isw_dev[0].vol.map[0].pba_of_lba0: 0 0x1ac isw_dev[0].vol.map[0].blocks_per_member: 586114048 0x1b0 isw_dev[0].vol.map[0].num_data_stripes: 9158032 0x1b4 isw_dev[0].vol.map[0].blocks_per_strip: 64 0x1b6 isw_dev[0].vol.map[0].map_state: 0 0x1b7 isw_dev[0].vol.map[0].raid_level: 0 0x1b8 isw_dev[0].vol.map[0].num_members: 2 0x1b9 isw_dev[0].vol.map[0].num_domains: 1 0x1ba isw_dev[0].vol.map[0].failed_disk_num: 255 0x1bb isw_dev[0].vol.map[0].ddf: 1 0x1d8 isw_dev[0].vol.map[0].disk_ord_tbl[0]: 0x0 0x1dc isw_dev[0].vol.map[0].disk_ord_tbl[1]: 0x1 ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata" ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata" ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata" ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"
+ set -v # Arguments: $1 = Name of array you want activated. activate_array () { Raid_Setinfo=$(dmraid -i -si "$1") if [ -z "$Raid_Setinfo" ]; then log_error "Cannot retrieve RAID set information for $1" return 1 fi dmraid -i -si -ct "$1" >> /dev/dmraid.log 2>&1 dmraid -i -si -cd "$1" >> /dev/dmraid.log 2>&1 Raid_Type=$(dmraid -i -si -ct "$1") Raid_Nodevs=$(dmraid -i -si -cd "$1") case "$Raid_Type" in stripe) if [ "$Raid_Nodevs" -lt 2 ]; then if [ -n "$Degraded" ]; then log_error "Cannot bring up a RAID0 array in degraded mode, not all devices present." fi return 2 fi ;; mirror) if [ "$Raid_Nodevs" -lt 2 ]; then if [ -z "$Degraded" ]; then log_error "Raid set $Raid_Name is degraded. Not activating" return 2 else log_warning "Activating $Raid_Name in degraded mode" Return_Val=3 + set -v fi fi # Arguments: $1 = Name of array you want activated. ;; activate_array () raid5_*) { Raid_Setinfo=$(dmraid -i -si "$1") modprobe -q dm_raid45 if [ -z "$Raid_Setinfo" ]; then if [ "$Raid_Nodevs" -lt 3 ]; then log_error "Cannot retrieve RAID set information for $1" return 1 if [ -z "$Degraded" ]; then fi dmraid -i -si -ct "$1" >> /dev/dmraid.log 2>&1 log_error "Raid set $Raid_Name is degraded. Not activating" dmraid -i -si -cd "$1" >> /dev/dmraid.log 2>&1 return 2 else Raid_Type=$(dmraid -i -si -ct "$1") log_warning "Activating $Raid_Name in degraded mode" Raid_Nodevs=$(dmraid -i -si -cd "$1") case "$Raid_Type" in Return_Val=3 stripe) if [ "$Raid_Nodevs" -lt 2 ]; then fi if [ -n "$Degraded" ]; then fi ;; esac log_error "Cannot bring up a RAID0 array in degraded mode, not all devices present." # At this point we have the required number of devs, or the user wants the fi return 2 fi ;; mirror) # array brought up in degraded mode, except in the case of striped arrays. if [ "$Raid_Nodevs" -lt 2 ]; then dmraid -i -ay -Z "$1" if [ -z "$Degraded" ]; then log_error "Raid set $Raid_Name is degraded. Not activating" return $Return_Val return 2 else log_warning "Activating $Raid_Name in degraded mode" } Return_Val=3 fi fi ;; raid5_*) modprobe -q dm_raid45 if [ "$Raid_Nodevs" -lt 3 ]; then if [ -z "$Degraded" ]; then log_error "Raid set $Raid_Name is degraded. Not activating" return 2 else log_warning "Activating $Raid_Name in degraded mode" log_warning() { Return_Val=3 if type logger > /dev/null ; then fi fi logger -t dmraid-activate "WARNING: $1" ;; esac else echo "dmraid-activate: WARNING: $1" # At this point we have the required number of devs, or the user wants the fi } # array brought up in degraded mode, except in the case of striped arrays. log_error() dmraid -i -ay -Z "$1" { if type logger > /dev/null ; then return $Return_Val logger -t dmraid-activate "ERROR: $1" else } echo "dmraid-activate: ERROR: $1" fi } modprobe -q dm_mod + modprobe -q dm_mod log_warning() { if type logger > /dev/null ; then logger -t dmraid-activate "WARNING: $1" else echo "dmraid-activate: WARNING: $1" fi } log_error() { if type logger > /dev/null ; then logger -t dmraid-activate "ERROR: $1" else echo "dmraid-activate: ERROR: $1" fi } modprobe -q dm_mod + modprobe -q dm_mod 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=$2 else Node_Name=$1 fi + '[' sdb = --degraded ']' + Node_Name=sdb dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" >> /dev/dmraid.log 2>&1 + dmraid -i -r -cr /dev/sdb if [ -z "$1" ] || [ "$1" = "--degraded" ] && [ "$#" -lt 2 ]; then echo "Node name not specified." >&2 + grep -vi 'formats discovered' exit 1 fi + '[' -z sdc ']' + '[' sdc = --degraded ']' if [ "$1" = "--degraded" ]; then Degraded=1 Node_Name=$2 else Node_Name=$1 fi + '[' sdc = --degraded ']' + Node_Name=sdc dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" >> /dev/dmraid.log 2>&1 + grep -vi 'No RAID disks' + grep -vi 'formats discovered' + grep -vi 'No RAID disks' + dmraid -i -r -cr /dev/sdc + set -v # Arguments: $1 = Name of array you want activated. activate_array () { Raid_Setinfo=$(dmraid -i -si "$1") if [ -z "$Raid_Setinfo" ]; then log_error "Cannot retrieve RAID set information for $1" return 1 fi dmraid -i -si -ct "$1" >> /dev/dmraid.log 2>&1 dmraid -i -si -cd "$1" >> /dev/dmraid.log 2>&1 Raid_Type=$(dmraid -i -si -ct "$1") Raid_Nodevs=$(dmraid -i -si -cd "$1") case "$Raid_Type" in stripe) if [ "$Raid_Nodevs" -lt 2 ]; then if [ -n "$Degraded" ]; then log_error "Cannot bring up a RAID0 array in degraded mode, not all devices present." fi return 2 fi ;; mirror) if [ "$Raid_Nodevs" -lt 2 ]; then if [ -z "$Degraded" ]; then log_error "Raid set $Raid_Name is degraded. Not activating" return 2 else log_warning "Activating $Raid_Name in degraded mode" Return_Val=3 fi fi ;; raid5_*) modprobe -q dm_raid45 if [ "$Raid_Nodevs" -lt 3 ]; then if [ -z "$Degraded" ]; then log_error "Raid set $Raid_Name is degraded. Not activating" return 2 else log_warning "Activating $Raid_Name in degraded mode" Return_Val=3 fi fi ;; esac # At this point we have the required number of devs, or the user wants the # array brought up in degraded mode, except in the case of striped arrays. dmraid -i -ay -Z "$1" return $Return_Val } log_warning() { if type logger > /dev/null ; then logger -t dmraid-activate "WARNING: $1" else echo "dmraid-activate: WARNING: $1" fi } log_error() { if type logger > /dev/null ; then logger -t dmraid-activate "ERROR: $1" else echo "dmraid-activate: ERROR: $1" fi } modprobe -q dm_mod + modprobe -q dm_mod if [ -z "$1" ] || [ "$1" = "--degraded" ] && [ "$#" -lt 2 ]; then echo "Node name not specified." >&2 exit 1 fi + '[' -z sda ']' + '[' sda = --degraded ']' if [ "$1" = "--degraded" ]; then Degraded=1 Node_Name=$2 else Node_Name=$1 fi + '[' sda = --degraded ']' + Node_Name=sda dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" >> /dev/dmraid.log 2>&1 + dmraid -i -r -cr /dev/sda + grep -vi 'No RAID disks' + grep -vi 'formats discovered' Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered") Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered") dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" ++ dmraid -i -r -cr /dev/sdc ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ++ grep -vi 'No RAID disks' ++ grep -vi 'formats discovered' dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" ++ dmraid -i -r -cr /dev/sdb ++ grep -vi 'No RAID disks' ++ grep -vi 'formats discovered' + Raid_Name=isw_bbfcfdfbdj if [ -z "$Raid_Name" ]; then exit 0 fi + '[' -z isw_bbfcfdfbdj ']' # We need a special case for isw arrays, since it is possible to have several # subsets of a RAID group, of varying RAID types. case "$Raid_Name" in isw_*) Isw_Group_Name=$(echo "$Raid_Name" | cut -f 1-2 -d _) dmraid -i -n "/dev/$Node_Name" >> /dev/dmraid.log 2>&1 Isw_Subsets=$(dmraid -i -n "/dev/$Node_Name" | grep volume | sed 's/.*volume: " *\(.*\)"$/\1/') for isw_subset in $Isw_Subsets do activate_array "${Isw_Group_Name}_${isw_subset}" done break ;; *) activate_array "$Raid_Name" break ;; esac + case "$Raid_Name" in echo "$Raid_Name" | cut -f 1-2 -d _ ++ cut -f 1-2 -d _ /sbin/dmraid-activate-debug: line 120: cut: command not found Raid_Name=$(dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered") dmraid -i -r -cr /dev/$Node_Name | grep -vi "No RAID disks" | grep -vi "formats discovered" ++ echo isw_bbfcfdfbdj ++ dmraid -i -r -cr /dev/sda + Isw_Group_Name= + dmraid -i -n /dev/sdc ++ grep -vi 'No RAID disks' + Raid_Name=isw_bbfcfdfbdj if [ -z "$Raid_Name" ]; then exit 0 fi + '[' -z isw_bbfcfdfbdj ']' # We need a special case for isw arrays, since it is possible to have several # subsets of a RAID group, of varying RAID types. case "$Raid_Name" in isw_*) Isw_Group_Name=$(echo "$Raid_Name" | cut -f 1-2 -d _) dmraid -i -n "/dev/$Node_Name" >> /dev/dmraid.log 2>&1 Isw_Subsets=$(dmraid -i -n "/dev/$Node_Name" | grep volume | sed 's/.*volume: " *\(.*\)"$/\1/') for isw_subset in $Isw_Subsets do activate_array "${Isw_Group_Name}_${isw_subset}" done break ;; *) activate_array "$Raid_Name" break ;; esac + case "$Raid_Name" in echo "$Raid_Name" | cut -f 1-2 -d _ ++ grep -vi 'formats discovered' ++ echo isw_bbfcfdfbdj ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ++ cut -f 1-2 -d _ /sbin/dmraid-activate-debug: line 120: cut: command not found + Raid_Name= if [ -z "$Raid_Name" ]; then exit 0 fi + '[' -z '' ']' + exit 0 + Isw_Group_Name= + dmraid -i -n /dev/sdb dmraid -i -n "/dev/$Node_Name" | grep volume | sed 's/.*volume: " *\(.*\)"$/\1/' ++ grep volume dmraid -i -n "/dev/$Node_Name" | grep volume | sed 's/.*volume: " *\(.*\)"$/\1/' ++ sed 's/.*volume: " *\(.*\)"$/\1/' ++ dmraid -i -n /dev/sdb ++ grep volume ++ dmraid -i -n /dev/sdc ++ sed 's/.*volume: " *\(.*\)"$/\1/' + Isw_Subsets=RAID_Sata + for isw_subset in '$Isw_Subsets' + activate_array _RAID_Sata dmraid -i -si "$1" ++ dmraid -i -si _RAID_Sata + Isw_Subsets=RAID_Sata + for isw_subset in '$Isw_Subsets' + activate_array _RAID_Sata dmraid -i -si "$1" ++ dmraid -i -si _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Setinfo='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' + '[' -z '/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' ']' + dmraid -i -si -ct _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Setinfo='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' + '[' -z '/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' ']' + dmraid -i -si -ct _RAID_Sata + dmraid -i -si -cd _RAID_Sata + dmraid -i -si -cd _RAID_Sata dmraid -i -si -ct "$1" ++ dmraid -i -si -ct _RAID_Sata dmraid -i -si -ct "$1" ++ dmraid -i -si -ct _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Type='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' dmraid -i -si -cd "$1" ++ dmraid -i -si -cd _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Type='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' dmraid -i -si -cd "$1" ++ dmraid -i -si -cd _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Nodevs='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' + case "$Raid_Type" in + dmraid -i -ay -Z _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required + Raid_Nodevs='/dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata"' + case "$Raid_Type" in + dmraid -i -ay -Z _RAID_Sata ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata" + return + break exit $Return_Val + exit ERROR: pdc: zero sectors on /dev/sda ERROR: pdc: setting up RAID device /dev/sda ERROR: either the required RAID set not found or more options required /dev/sdc: "pdc" and "isw" formats discovered (using isw)! /dev/sdb: "pdc" and "isw" formats discovered (using isw)! no raid sets and with names: "_RAID_Sata" + return + break exit $Return_Val + exit