[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 2nd try: Thermaltake Muse NAS-RAID (N0001LN) - IOP architecture - HELP requested



With Arnaud's help I've been able to successfully boot the device.
Here's the command sequence:
1. halt the startup sequence (connected via serial cable) at Redboot> prompt with CTRL+C
2. RedBoot> fis load ramdisk.gz
3. RedBoot> load -r -v -h 192.168.1.122 -b 0x01008000 -m tftp zImage_2633_iop32x_defconfig
4. RedBoot> exec -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000 force_ep80219 ramdisk_size=32768"

Please find attached the full boot sequence plus a few exploratory commands.

In the end logging into the system is possible although RAID stays in failure mode.
Issues:
1. disks are not fully recognized/mounted
2. disk LEDs are off

Any pointers to a good document where RAID is explained in detail? raid.wiki.kernel.org?
As usual, any advice is appreciated :)

Thanks,
-mw

P.S. rebooting the system after the test brought the NAS back to normal (phew!!!)



On Thu, Mar 11, 2010 at 11:48 AM, Mello <mellowiz@gmail.com> wrote:
Hi,
after the (usual) long delay I've managed to fight my jet-lag with a good coffee and I've tested the image Arnaud provided me with :)

The steps I've followed are:
1. halt the startup sequence at Redboot> prompt with CTRL+C
2. RedBoot> fis load ramdisk.gz
3. RedBoot> load -r -v -h 192.168.1.122 -b 0x01008000 -m tftp zImage_2633_iop32x_defconfig
   (since Redboot comes up preconfigured with an IP address I've chosen tftp)
   This step ends with the following message:
   Raw file loaded 0x01008000-0x01279aaf, assumed entry at 0x01008000
4. RedBoot> exec -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000 force_ep80219"
At this point the startup sequence goes on pretty normal until it stops with errors (RAMDISK) eventually terminating in a kernel panic (full sequence is attached).

What's the meaning of the hex addresses in the above commands? Are they hardcoded in the image or do they just point to (almost) arbitrary addresses?

Thanks,
-mw



On Thu, Feb 25, 2010 at 10:52 AM, Arnaud Patard <arnaud.patard@rtp-net.org> wrote:
> Mello <mellowiz@gmail.com> writes:
>
> Hi,
>
>> So, basically, I must stop the startup sequence at a point where I can
>> gain access to the Redboot prompt.
>> Then issue the commands you suggested, right?
>>
>> Questions:
>> 1. where do I find/how can I generate such a kernel?
>
> I've build one for you. It's based on the 2.6.33 kernel (tbh, no patches
> were added). I've not tested it but it should work. You'll find it here:
>
> http://www.rtp-net.org/ss4000e/zImage_2633_iop32x_defconfig
>
> You can load it with (for instance) :
> load -v -r -b 0x01008000 -m ymodem zImage
>
> I've choose the ymodem upload method but things like http should work
> too (as long as the redboot has been configured/compiled correctly)
>
> Oh, and don't forget to load the initrd and launch the kernel with the
> commands I gave before :P
>
>
>> 2. what happens to my device after doing this test? Will it revert to
>> normal after a power-cycle or do those command overwrite the
>> flash/disk somehow?
>
> the 'load' command is safe as it loads the kernel/initrd into
> memory. Nothing should be modifying it, so, after a poweroff/reboot,
> you'll go back to the "normal" state.
>
> Arnaud
>


+Ethernet eth0: MAC address 00:40:d0:8a:1f:99
IP: 192.168.1.11/255.255.255.0, Gateway: 192.168.1.1
Default server: 192.168.1.122, DNS server IP: 0.0.0.0

RedBoot(tm) bootstrap and debug environment [ROM]
Intel IOP RedBoot release
         version 2.2.V6-IOP-RedBoot
         built 13:51:51, Jan 12 2006

Platform: EP80219 (XScale) 
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x00000000-0x10000000, 0x00021790-0x0ffd1000 available
FLASH: 0xf0000000 - 0xf0800000, 64 blocks of 0x00020000 bytes each.
== Executing boot script in 1.000 seconds - enter ^C to abort
^C
RedBoot> ^C
RedBoot> fis load ramdisk.gz
RedBoot> load -r -v -h 192.168.1.122 -b 0x01008000 -m tftp zImage_2633_iop32x_defconfig
RedBoot> exec -c "console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000 force_ep80219 ramdisk_size=32768"
Using base address 0x01008000 and length 0x00271ab0
The boot tags are located at 0xA0000100
Booting the kernel...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.33 (rtp@jules) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #1 Wed Feb 24 21:57:47 CET 2010
CPU: XScale-80219 [69052e20] revision 0 (ARMv5TE), cr=0000397f
CPU: VIVT data cache, VIVT instruction cache
Machine: Intel IQ31244
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000 force_ep80219 ramdisk_size=32768
PID hash table entries: 1024 (order: 0, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 246400KB available (4652K code, 301K data, 148K init, 0K highmem)
Hierarchical RCU implementation.
RCU-based detection of stalled CPUs is enabled.
NR_IRQS:32
clockevent: iop_timer0 uses shift 32 mult 0x33333333
clocksource: iop_timer1 uses shift 29 mult 0xa0000000
Console: colour dummy device 80x30
Calibrating delay loop... 398.95 BogoMIPS (lpj=1994752)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :   257.600 MB/sec
   8regs     :   287.600 MB/sec
   32regs    :   274.800 MB/sec
xor: using function: 8regs (287.600 MB/sec)
NET: Registered protocol family 16
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: BAR 0: assigned [mem 0x80000000-0x8001ffff]
pci 0000:00:01.0: BAR 0: set to [mem 0x80000000-0x8001ffff] (PCI address [0x80000000-0x8001ffff]
pci 0000:00:01.0: BAR 1: assigned [mem 0x80020000-0x8003ffff]
pci 0000:00:01.0: BAR 1: set to [mem 0x80020000-0x8003ffff] (PCI address [0x80020000-0x8003ffff]
pci 0000:00:01.0: BAR 6: assigned [mem 0x80040000-0x8005ffff pref]
pci 0000:00:03.0: BAR 0: assigned [mem 0x80060000-0x80060fff 64bit]
pci 0000:00:03.0: BAR 0: set to [mem 0x80060000-0x80060fff 64bit] (PCI address [0x80060000-0x80060fff]
pci 0000:00:01.0: BAR 2: assigned [io  0x90000000-0x9000003f]
pci 0000:00:01.0: BAR 2: set to [io  0x90000000-0x9000003f] (PCI address [0x90000000-0x9000003f]
bio: create slab <bio-0> at 0
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1     42 MB/s
raid6: int32x2     39 MB/s
raid6: int32x4     39 MB/s
raid6: int32x8     29 MB/s
raid6: using algorithm int32x1 (42 MB/s)
Switching to clocksource iop_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 8192K
NetWinder Floating Point Emulator V0.97 (double precision)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 497
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xfe800000 (irq = 28) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
nbd: registered device at major 43
scsi0 : sata_vsc
scsi1 : sata_vsc
scsi2 : sata_vsc
scsi3 : sata_vsc
ata1: SATA max UDMA/133 mmio m4096@0x80060000 port 0x80060200 irq 29
ata2: SATA max UDMA/133 mmio m4096@0x80060000 port 0x80060400 irq 29
ata3: SATA max UDMA/133 mmio m4096@0x80060000 port 0x80060600 irq 29
ata4: SATA max UDMA/133 mmio m4096@0x80060000 port 0x80060800 irq 29
physmap platform flash device: 00800000 at f0000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
Searching for RedBoot partition table in physmap-flash.0 at offset 0x7e0000
7 RedBoot partitions found on MTD device physmap-flash.0
Creating 7 MTD partitions on "physmap-flash.0":
0x000000000000-0x000000040000 : "RedBoot"
0x000000040000-0x000000240000 : "zImage"
0x000000240000-0x000000640000 : "ramdisk.gz"
0x000000640000-0x0000007a0000 : "unallocated"
0x0000007a0000-0x0000007c0000 : "vendor"
0x0000007c0000-0x0000007c1000 : "RedBoot config"
0x0000007e0000-0x000000800000 : "FIS directory"
Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e1000: 0000:00:01.0: e1000_probe: (PCI:33MHz:32-bit) 00:40:d0:8a:1f:99
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
usbmon: debugfs is not available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.16.0-ioctl (2009-11-05) initialised: dm-devel@redhat.com
iop-adma iop-adma.0: Intel(R) IOP: ( cpy intr )
iop-adma iop-adma.1: Intel(R) IOP: ( cpy intr )
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
XScale DSP coprocessor detected.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
ata1: link is slow to respond, please be patient (ready=0)
ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata1.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133
ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3
sda: p3 size 624616273 exceeds device capacity, limited to end of disk
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: link is slow to respond, please be patient (ready=0)
ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata2.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133
ata2.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
sd 1:0:0:0: [sdb] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb3
sdb: p3 size 624616273 exceeds device capacity, limited to end of disk
sd 1:0:0:0: [sdb] Attached SCSI disk
ata3: link is slow to respond, please be patient (ready=0)
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata3.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133
ata3.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata3.00: configured for UDMA/133
scsi 2:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
sd 2:0:0:0: [sdc] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdc: sdc1 sdc2 sdc3
sdc: p3 size 624616273 exceeds device capacity, limited to end of disk
sd 2:0:0:0: [sdc] Attached SCSI disk
ata4: link is slow to respond, please be patient (ready=0)
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata4.00: ATA-7: ST3320620AS, 3.AAE, max UDMA/133
ata4.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata4.00: configured for UDMA/133
scsi 3:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
sd 3:0:0:0: [sdd] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 3:0:0:0: Attached scsi generic sg3 type 0
sd 3:0:0:0: [sdd] Write Protect is off
sd 3:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdd: sdd1 sdd2 sdd3
sdd: p3 size 624616273 exceeds device capacity, limited to end of disk
sd 3:0:0:0: [sdd] Attached SCSI disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: gzip image found at block 0
EXT3-fs (ram0): warning: feature flags set on rev 0 fs, running e2fsck is recommended
EXT2-fs (ram0): warning: feature flags set on rev 0 fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing init memory: 148K
++ /bin/cat /etc/version
+ echo '======== /linuxrc  =(MNAS4100 - 1.0-b153h)============='
======== /linuxrc  =(MNAS4100 - 1.0-b153h)=============
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ export PATH
+ UPGRADE_PKG=/sysroot/tmp/upgrade.tgz
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ UPGRADE_FLASH_ONLY_LOCK=/upgrade_flash_only
+ echo 'Mounting /proc filesystem ...'
Mounting /proc filesystem ...
+ /bin/mount -t proc /proc /proc
+ grep ' hda$' /proc/partitions
+ '[' 1x = 0x ']'
+ PHYSICAL_DISK=sda
+ echo Creating root device ...
Creating root device ...
+ echo 0x0100
+ /fs/hwtool -startdriver
+ ifconfig lo 127.0.0.1 netmask 255.0.0.0 up
+ route add -net 127.0.0.0 netmask 255.0.0.0 lo
+ LoadModules
+ echo 'Loading modules...'
Loading modules...
+ '[' sda = sda ']'
+ insmod gd31244_lib.o
insmod: /lib/modules/2.6.33: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: gd31244_lib.ko: no module by that name found
+ insmod gd31244.o
insmod: /lib/modules/2.6.33: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: gd31244.ko: no module by that name found
+ insmod e1000
insmod: /lib/modules/2.6.33: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: e1000.ko: no module by that name found
+ grep 'e1000$' /proc/iomem
+ '[' 0 '!=' 0 ']'
+ echo 1
+ StartDiskLed
++ grep ' - Connected' /proc/scsi/gd31244/0
++ awk '{printf "%d ",$2+1}'
grep: /proc/scsi/gd31244/0: No such file or directory
+ diskno=
+ '[' disks '!=' '' ']'
+ CheckRaidSupport
+ RAIDON=y
+ grep sda /proc/partitions
+ '[' 0 = 1 ']'
+ MountRootFilesystem
+ mkdir -p /sysroot
+ '[' y '!=' '' ']'
+ /fs/fsraid.sh start /dev/md0
+ ARGS===== /fs/fsraid.sh start /dev/md0 =============================================================
+ ACTION=start
+ RAIDDEV=/dev/md0
+ RAIDLEVEL=
+ RAID5SPARE=
+ DEVS_PHY=
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=98
+ RAIDTYPE_MD1=98
++ cat /proc/mtd
++ grep vendor
++ head -1
++ cut -c 4
+ VENDOR_DEV=/dev/mtdblock4
+ DISK_PREFIX=sd
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ MAX_RAID_SYNC_SPEED=5000
+ ACSL2DEV=/usr/local/ipstor/bin/acsl2dev
+ '[' xstart = x -o x/dev/md0 = x ']'
+ Get_DEVS_PHY
+ '[' -x /usr/local/ipstor/bin/acsl2dev ']'
+ DEVS_PHY=
++ egrep 'sd[a-z]$|sd[a-z][a-z]$' /proc/partitions
++ awk '{print $4}'
+ grep ' sda$' /proc/partitions
+ '[' 0 = 0 ']'
+ DEVS_PHY= /dev/sda
+ grep ' sdb$' /proc/partitions
+ '[' 0 = 0 ']'
+ DEVS_PHY= /dev/sda /dev/sdb
+ grep ' sdc$' /proc/partitions
+ '[' 0 = 0 ']'
+ DEVS_PHY= /dev/sda /dev/sdb /dev/sdc
+ grep ' sdd$' /proc/partitions
+ '[' 0 = 0 ']'
+ DEVS_PHY= /dev/sda /dev/sdb /dev/sdc /dev/sdd
+ '[' ' /dev/sda /dev/sdb /dev/sdc /dev/sdd' = '' ']'
+ '[' '' = 0 ']'
+ ReadUUIDFlash
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=0
+ RAIDTYPE_MD1=98
++ dd if=/dev/mtdblock4 bs=200 count=1
1+0 records in
1+0 records out
+ UUID_STR=0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f 
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $1}'
++ awk -F, '{print $2}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 '!=' '' ']'
+ UUID_MD0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $1}'
+ RAIDTYPE=10
+ '[' 10 '!=' '' ']'
+ RAIDTYPE_MD1=10
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $2}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f '!=' '' ']'
+ UUID_MD1=052e1193:02c537a6:3b0800f4:4183650f
+ return
+ StartRaid
+ '[' /dev/md0 = /dev/md0 ']'
+ StartMD0
+ ReadUUIDFlash
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=0
+ RAIDTYPE_MD1=98
++ dd if=/dev/mtdblock4 bs=200 count=1
1+0 records in
1+0 records out
+ UUID_STR=0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f 
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $1}'
++ awk -F, '{print $2}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 '!=' '' ']'
+ UUID_MD0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $1}'
+ RAIDTYPE=10
+ '[' 10 '!=' '' ']'
+ RAIDTYPE_MD1=10
++ awk '{print $2}'
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk -F, '{print $2}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f '!=' '' ']'
+ UUID_MD1=052e1193:02c537a6:3b0800f4:4183650f
+ return
+ DEVS_VALID=
++ dd if=/dev/sda bs=16 count=1
1+0 records in
1+0 records out
+ '[' FALCONSTOR@INTEL '!=' FALCONSTOR@INTEL ']'
++ mdadm --misc --examine /dev/sda1
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = '' ']'
+ UUID0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ mdadm --misc --examine /dev/sda3
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f = '' ']'
+ UUID1=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 -a 052e1193:02c537a6:3b0800f4:4183650f = 052e1193:02c537a6:3b0800f4:4183650f ']'
+ DEVS_VALID= /dev/sda1
++ dd if=/dev/sdb bs=16 count=1
1+0 records in
1+0 records out
+ '[' FALCONSTOR@INTEL '!=' FALCONSTOR@INTEL ']'
++ grep ' UUID :'
++ mdadm --misc --examine /dev/sdb1
++ awk '{print $3}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = '' ']'
+ UUID0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ mdadm --misc --examine /dev/sdb3
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f = '' ']'
+ UUID1=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 -a 052e1193:02c537a6:3b0800f4:4183650f = 052e1193:02c537a6:3b0800f4:4183650f ']'
+ DEVS_VALID= /dev/sda1 /dev/sdb1
++ dd if=/dev/sdc bs=16 count=1
1+0 records in
1+0 records out
+ '[' FALCONSTOR@INTEL '!=' FALCONSTOR@INTEL ']'
++ mdadm --misc --examine /dev/sdc1
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = '' ']'
+ UUID0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ mdadm --misc --examine /dev/sdc3
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f = '' ']'
+ UUID1=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 -a 052e1193:02c537a6:3b0800f4:4183650f = 052e1193:02c537a6:3b0800f4:4183650f ']'
+ DEVS_VALID= /dev/sda1 /dev/sdb1 /dev/sdc1
++ dd if=/dev/sdd bs=16 count=1
1+0 records in
1+0 records out
+ '[' FALCONSTOR@INTEL '!=' FALCONSTOR@INTEL ']'
++ mdadm --misc --examine /dev/sdd1
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = '' ']'
+ UUID0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ mdadm --misc --examine /dev/sdd3
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f = '' ']'
+ UUID1=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 5d2dcc17:ed919193:91c3f4a6:e1md: md0 stopped.
6dc3a3 = 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 -a 052e1193:02c537a6:3b0800f4:4183650f = 052e1193:02c537a6:3b0800f4:4183650f ']'
+ DEVS_VALID= /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
+ mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 -u 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 --verbose --run --force
mdadm: looking for devices for /dev/md0
mdadm: /dev/sda1 is identified as a member of /dev/md0, slot 0.
mdadm: /dev/sdb1 is identified as a member of /dev/md0, slot 1.
mdadm: /dev/sdc1 is identified as a member of /dev/md0, slot 3.
mdadm: /dev/sdd1 is identified as a member of /dev/md0, slot 2.
md: bind<sdb1>
mdadm: added /dev/sdb1 to /dev/md0 as 1
md: bind<sdd1>
mdadm: added /dev/sdd1 to /dev/md0 as 2
md: bind<sdc1>
mdadm: added /dev/sdc1 to /dev/md0 as 3
md: bind<sda1>
mdadm: added /dev/sda1 to /dev/md0 as 0
raid1: raid set md0 active with 4 out of 4 mirrors
md0: detected capacity change from 0 to 134610944
mdadm: /dev/md0 has been started with 4 drives.
+ grep '^md0' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' 0 '!=' 0 ']'
+ grep '^md0' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' 0 '!=' 0 ']'
+ RecoverRaid
+ '[' /dev/md0 = /dev/md0 ']'
+ RecoverMD0
++ basename /dev/sda1
+ grep ' sda1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdb1
+ grep ' sdb1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdc1
+ grep ' sdc1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdd1
+ grep ' sdd1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 '!=' x0 ']'
+ return
+ return
+ sleep 1
+ cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>
+ '[' 1 ']'
+ grep ' finish=' /proc/mdstat
+ '[' x1 '!=' x0 ']'
+ break
+ '[' /dev/md0 = /dev/md1 ']'
+ cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>
+ exit 0
+ grep '^md0 : active' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' 0 '!=' 0 ']'
+ grep UUID
+ dumpe2fs -h /dev/md0
dumpe2fs 1.36 (0 md0:5-Feb-2005)
 unknown partition table
Filesystem UUID:          40ca5aa7-94fd-4386-800b-265dbe80625c
+ '[' x0 '!=' x0 ']'
+ mount -o rw -t ext3 /dev/md0 /sysroot
kjournald starting.  Commit interval 5 seconds
EXT3-fs (md0): warning: maximal mount count reached, running e2fsck is recommended
EXT3-fs (md0): using internal journal
EXT3-fs (md0): 1 orphan inode deleted
EXT3-fs (md0): recovery complete
EXT3-fs (md0): mounted filesystem with writeback data mode
+ return
+ rm -rf '/tmp/*'
+ '[' -f /sysroot/.ram_mode ']'
++ cat /sysroot/etc/version
+ FIRMWARE_NEW=MNAS4100 - 1.0-b153h
+ '[' 'MNAS4100 - 1.0-b153h' '!=' '' ']'
++ cat /etc/version
+ FIRMWARE_OLD=MNAS4100 - 1.0-b153h
+ '[' 'MNAS4100 - 1.0-b153h' '!=' 'MNAS4100 - 1.0-b153h' ']'
+ '[' -f /sysroot/tmp/upgrade.tgz ']'
+ '[' '!' -f /sysroot/sbin/init ']'
+ '[' y '!=' '' ']'
+ echo '/dev/md0 / ext3 defaults 1 1'
+ grep -v ' / ' /sysroot/etc/fstab
+ '[' 0 = 0 ']'
+ mv -f /sysroot/etc/fstab.tmp /sysroot/etc/fstab
+ cd /sysroot
+ umount /proc
+ '[' '!' -d initrd ']'
+ pivot_root . initrd
+ mount -t proc none /proc
+ '[' 0 = 0 ']'
+ exec chroot . /sbin/init
++ /bin/cat /etc/version
+ echo '======== /etc/init.d/rcS  =(MNAS4100 - 1.0-b153h)============='
======== /etc/init.d/rcS  =(MNAS4100 - 1.0-b153h)=============
+ NETIF=eth0
+ PHYSICAL_DISK=/dev/sda
+ rm -rf /tmp/cgidebug.log /tmp/net.conf /tmp/smb.tmp /tmp/. /tmp/.. /tmp/.falconstor /var/run/ftpd.sock /var/run/inetd.pid /var/run/ipstorsm.pid /var/run/lpd.515 /var/run/lprng /var/run/pure-authd.pid /var/run/utmp '/dev/print[12]'
rm: cannot remove `.' or `..'
rm: cannot remove `.' or `..'
+ mount -a
+ umount /initrd
+ freeramdisk /dev/ram0
+ grep ' sda1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ mkswap /dev/sda2
Setting up swapspace version 1, size = 134696960 bytes
+ swapon /dev/sda2
Adding 131536k swap on /dev/sda2.  Priority:-1 extents:1 across:131536k 
+ grep ' sdb1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ mkswap /dev/sdb2
Setting up swapspace version 1, size = 134696960 bytes
+ swapon /dev/sdb2
Adding 131536k swap on /dev/sdb2.  Priority:-2 extents:1 across:131536k 
+ grep ' sdc1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ mkswap /dev/sdc2
Setting up swapspace version 1, size = 134696960 bytes
+ swapon /dev/sdc2
Adding 131536k swap on /dev/sdc2.  Priority:-3 extents:1 across:131536k 
+ grep ' sdd1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ mkswap /dev/sdd2
Setting up swapspace version 1, size = 134696960 bytes
+ swapon /dev/sdd2
Adding 131536k swap on /dev/sdd2.  Priority:-4 extents:1 across:131536k 
+ grep /dev/ram
+ mount
+ '[' 1 = 0 ']'
+ /sbin/syslogd -s 2000 -m 0
+ '[' '!' -f /usr/local/ipstor/etc/unas.conf ']'
+ . /usr/local/ipstor/etc/unas.conf
++ HOSTNAME=MNAS4100
++ WORKGROUP=MIDEARTH
++ COMMENT=NetworkStorage
++ TIMEZONE=GMT-1
++ ADMIN_NAME_0=admin
++ ADMIN_PASSWD_0=fs88.01svoYfQ
++ DHCPC_0=0
++ IP_0=192.168.20.2
++ NETMASK_0=255.255.255.0
++ GATEWAY_0=192.168.20.1
++ DNS_0=208.67.222.222
++ DNS_1=208.67.220.220
++ DHCPS=0
++ DHCPS_START=192.168.0.102
++ DHCPS_END=192.168.0.254
++ DHCPS_NETMASK=255.255.255.0
++ DHCPS_GATEWAY=192.168.20.1
++ DHCPS_DNS_0=208.67.222.222
++ FTPS=0
++ DHCPC_1=1
++ IP_1=192.168.1.101
++ NETMASK_1=255.255.255.0
++ BACKUP_NAME_0=backupuser
++ BACKUP_PASSWD_0=fs6PNBEZ0IZfw
++ NTP=it.pool.ntp.org
+ '[' -f /etc/localtime ']'
+ ls -al /etc/localtime
+ grep GMT
lrwxr-xr-x    1 root     root           25 Dec 16  2008 /etc/localtime -> /usr/share/zoneinfo/GMT-1
+ '[' 0 -ne 0 ']'
+ /fs/hwtool -startdaemon
Loading GPIO Button Daemon...
mount: Mounting none on /sys failed: Device or resource busy
PIC shell test start
mknod: /dev/pic16f8x: File exists
+ '[' '!' -f /etc/passwd ']'
+ '[' '!' -f /etc/group ']'
+ hostname MNAS4100
Cannot find sensor chip.
Unable to find i2c bus information;
Make sure you have mounted sysfs
+ echo '127.0.0.1 localhost MNAS4100'
+ '[' 0 = 1 ']'
+ rm -f /etc/resolv.conf
OPEN Failed: : No such device or address
+ '[' 208.67.222.222 '!=' 0.0.0.0 ']'
+ echo 'nameserver 208.67.222.222'
+ '[' 208.67.220.220 '!=' 0.0.0.0 ']'
+ echo 'nameserver 208.67.220.220'
+ ifconfig eth0 192.168.20.2 netmask 255.255.255.0
ADDRCONF(NETDEV_UP): eth0: link is not ready
+ '[' 192.168.20e1000: eth0 NIC Link is Up 10 Mbps Half Duplex, Flow Control: None
.1 '!=' 0.0.0.0 ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
']'
+ route add default gw 192.168.20.1
+ ifconfig eth1
+ '[' 1 = 0 ']'
+ echo '==Start booting flag=='
==Start booting flag==
+ touch /tmp/isbooting.lock
+ /usr/local/ipstor/bin/unas.sh startweb
+ '[' -f /etc/.is.sh ']'
+ . /etc/.is.sh
++ ISHOME=/usr/local/ipstor
++ ISCLIENTHOME=/usr/local/ipstor
++ ISCOMP=FalconStor
++ ISCOMPSHORT=FalconStor
++ ISPROD=IPStor
++ ISPRODSHORT=IPStor
++ ISPRODDIR=ipstor
++ ISINQUIRY=FALCON  IPSTOR DISK     v1.0
++ ISISCSITARGETPREFIX=_ISISCSITARGETPREFIX
++ LD_LIBRARY_PATH=/usr/local/ipstor/lib:/usr/local/ipstor/lib:
++ dyn_LIBDIR=/usr/local/ipstor/lib/vfs
++ PATH=/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ export ISHOME ISCLIENTHOME
++ export ISCOMP ISCOMPSHORT
++ export ISPROD ISPRODSHORT ISPRODDIR
++ export ISINQUIRY
++ export LD_LIBRARY_PATH PATH
++ export dyn_LIBDIR
++ export ISISCSITARGETPREFIX
++ ulimit -c unlimited
+++ hostname
++ FQDN=MNAS4100
++ HOSTNAME=MNAS4100
++ IS_CONF=/usr/local/ipstor/etc/MNAS4100/ipstor.conf
++ export IS_CONF
++ KRB5_CONFIG=/usr/local/ipstor/etc/krb5.conf
++ KRB5CCNAME=/usr/local/ipstor/var/krb5cc
++ export KRB5_CONFIG KRB5CCNAME
++ SASL_PLUGINS_DIR=/usr/local/ipstor/lib/sasl
++ '[' -d /usr/local/ipstor/lib/sasl ']'
++ ISEMBEDDED=1
++ export ISEMBEDDED
+ INSMOD=/sbin/insmod
+ MKNOD=/bin/mknod
+ CHMOD=/bin/chmod
+ CHGRP=/bin/chgrp
++ uname -r
+ KVER=2.6.33
+ IPSTOR_DEV=/dev/isdev
+ ACTION=startweb
+ IF_NAME=eth0
+ SAN_ALERT_PERCENT=95
+ NAS_ALERT_PERCENT=95
+ USB_ALERT_PERCENT=95
+ CheckRaidSupport
+ grep '^/dev/md0 ' /proc/mounts
/dev/md0 / ext3 rw,relatime,errors=continue,data=writeback 0 0
+ '[' 0 = 0 ']'
+ RAIDON=y
+ StartWebServer
+ '[' '!' -f /usr/local/ipstor/www/.htpasswd ']'
+ cp -f /usr/local/ipstor/www/.htpasswd.uNAS /usr/local/ipstor/www/.htpasswd
cp: /usr/local/ipstor/www/.htpasswd.uNAS: No such file or directory
+ cd /usr/local/ipstor/www
+ '[' -f /usr/local/ipstor/etc/feature.conf ']'
+ . /usr/local/ipstor/etc/feature.conf
++ MERGE_CIFS_NFS=1
+ '[' '' = 1 ']'
+ mini_httpd -c '**.cgi' -u root -M 0
bind: Address already in use
+ sleep 1
mini_httpd: started as root without requesting chroot(), warning only
+ '[' -f /usr/local/ipstor/www/mini_httpd.pem ']'
+ cd /usr/local/ipstor/www
+ mini_httpd -c '**.cgi' -u root -M 0 -S
bind: Address already in use
+ sleep 1
mini_httpd: started as root without requesting chroot(), warning only
+ return
+ /fs/sshd.sh service
/usr/local/ipstor/bin/unas.sh: /fs/sshd.sh: No such file or directory
+ cd /
+ '[' '!' -f /.factory_reset ']'
+ . /etc/.is.sh
++ ISHOME=/usr/local/ipstor
++ ISCLIENTHOME=/usr/local/ipstor
++ ISCOMP=FalconStor
++ ISCOMPSHORT=FalconStor
++ ISPROD=IPStor
++ ISPRODSHORT=IPStor
++ ISPRODDIR=ipstor
++ ISINQUIRY=FALCON  IPSTOR DISK     v1.0
++ ISISCSITARGETPREFIX=_ISISCSITARGETPREFIX
++ LD_LIBRARY_PATH=/usr/local/ipstor/lib:/usr/local/ipstor/lib:
++ dyn_LIBDIR=/usr/local/ipstor/lib/vfs
++ PATH=/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ export ISHOME ISCLIENTHOME
++ export ISCOMP ISCOMPSHORT
++ export ISPROD ISPRODSHORT ISPRODDIR
++ export ISINQUIRY
++ export LD_LIBRARY_PATH PATH
++ export dyn_LIBDIR
++ export ISISCSITARGETPREFIX
++ ulimit -c unlimited
+++ hostname
++ FQDN=MNAS4100
++ HOSTNAME=MNAS4100
++ IS_CONF=/usr/local/ipstor/etc/MNAS4100/ipstor.conf
++ export IS_CONF
++ KRB5_CONFIG=/usr/local/ipstor/etc/krb5.conf
++ KRB5CCNAME=/usr/local/ipstor/var/krb5cc
++ export KRB5_CONFIG KRB5CCNAME
++ SASL_PLUGINS_DIR=/usr/local/ipstor/lib/sasl
++ '[' -d /usr/local/ipstor/lib/sasl ']'
++ ISEMBEDDED=1
++ export ISEMBEDDED
+ '[' '!' -f /usr/local/ipstor/etc/MNAS4100/ipstor.conf ']'
+ /usr/local/ipstor/bin/unas.sh startstorage
+ '[' -f /etc/.is.sh ']'
+ . /etc/.is.sh
++ ISHOME=/usr/local/ipstor
++ ISCLIENTHOME=/usr/local/ipstor
++ ISCOMP=FalconStor
++ ISCOMPSHORT=FalconStor
++ ISPROD=IPStor
++ ISPRODSHORT=IPStor
++ ISPRODDIR=ipstor
++ ISINQUIRY=FALCON  IPSTOR DISK     v1.0
++ ISISCSITARGETPREFIX=_ISISCSITARGETPREFIX
++ LD_LIBRARY_PATH=/usr/local/ipstor/lib:/usr/local/ipstor/lib:/usr/local/ipstor/lib:/usr/local/ipstor/lib:
++ dyn_LIBDIR=/usr/local/ipstor/lib/vfs
++ PATH=/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ export ISHOME ISCLIENTHOME
++ export ISCOMP ISCOMPSHORT
++ export ISPROD ISPRODSHORT ISPRODDIR
++ export ISINQUIRY
++ export LD_LIBRARY_PATH PATH
++ export dyn_LIBDIR
++ export ISISCSITARGETPREFIX
++ ulimit -c unlimited
+++ hostname
++ FQDN=MNAS4100
++ HOSTNAME=MNAS4100
++ IS_CONF=/usr/local/ipstor/etc/MNAS4100/ipstor.conf
++ export IS_CONF
++ KRB5_CONFIG=/usr/local/ipstor/etc/krb5.conf
++ KRB5CCNAME=/usr/local/ipstor/var/krb5cc
++ export KRB5_CONFIG KRB5CCNAME
++ SASL_PLUGINS_DIR=/usr/local/ipstor/lib/sasl
++ '[' -d /usr/local/ipstor/lib/sasl ']'
++ ISEMBEDDED=1
++ export ISEMBEDDED
+ INSMOD=/sbin/insmod
+ MKNOD=/bin/mknod
+ CHMOD=/bin/chmod
+ CHGRP=/bin/chgrp
++ uname -r
+ KVER=2.6.33
+ IPSTOR_DEV=/dev/isdev
+ ACTION=startstorage
+ IF_NAME=eth0
+ SAN_ALERT_PERCENT=95
+ NAS_ALERT_PERCENT=95
+ USB_ALERT_PERCENT=95
+ CheckRaidSupport
+ grep '^/dev/md0 ' /proc/mounts
/dev/md0 / ext3 rw,relatime,errors=continue,data=writeback 0 0
+ '[' 0 = 0 ']'
+ RAIDON=y
+ StartStorage
+ /usr/local/ipstor/bin/ipstor start fsnbase

FalconStor IPStor Server v5.00 (Build 976)
Copyright 2001-2006 by FalconStor. All Rights Reserved.

touch: /var/lock/subsys/ipstor: No such file or directory
Starting IPStor Server (FSNBase) Module insmod: /lib/modules/2.6.33: No such file or directory
insmod: /lib/modules: No such file or directory
insmod: kfsnbase.ko: no module by that name found
                                                           [FAILED]
+ '[' y = y ']'
+ /fs/fsraid.sh start /dev/md1
+ ARGS===== /fs/fsraid.sh start /dev/md1 =============================================================
+ ACTION=start
+ RAIDDEV=/dev/md1
+ RAIDLEVEL=
+ RAID5SPARE=
+ DEVS_PHY=
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=98
+ RAIDTYPE_MD1=98
++ cat /proc/mtd
++ grep vendor
++ head -1
++ cut -c 4
+ VENDOR_DEV=/dev/mtdblock4
+ DISK_PREFIX=sd
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ MAX_RAID_SYNC_SPEED=5000
+ ACSL2DEV=/usr/local/ipstor/bin/acsl2dev
+ '[' xstart = x -o x/dev/md1 = x ']'
+ Get_DEVS_PHY
+ '[' -x /usr/local/ipstor/bin/acsl2dev ']'
++ /usr/local/ipstor/bin/acsl2dev 0 0 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 1 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 2 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 3 0 0
+ DEVS_PHY=/dev/sda   
+ '[' '/dev/sda   ' = '' ']'
+ '[' '' = 0 ']'
+ ReadUUIDFlash
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=0
+ RAIDTYPE_MD1=98
++ dd if=/dev/mtdblock4 bs=200 count=1
1+0 records in
1+0 records out
+ UUID_STR=0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f 
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $1}'
++ awk -F, '{print $2}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 '!=' '' ']'
+ UUID_MD0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $1}'
+ RAIDTYPE=10
+ '[' 10 '!=' '' ']'
+ RAIDTYPE_MD1=10
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $2}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f '!=' '' ']'
+ UUID_MD1=052e1193:02c537a6:3b0800f4:4183650f
+ return
+ StartRaid
+ '[' /dev/md1 = /dev/md0 ']'
+ '[' /dev/md1 = /dev/md1 ']'
+ echo 5000
+ StartMD1
+ DEVS_VALID=
++ basename /dev/sda
+ grep ' sda1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ DEVS_VALID= /dev/sda3
+ mdadm --assemble /dev/md1 /dev/sda3 -u 052e1193:02c537a6:3b0800f4:4183650f --verbose --run --force
md: md1 stopped.
mdadm: looking for devices for /dev/md1
md: bind<sda3>a3 is identified as a member of /dev/md1, slot 0.

mdadm: no uptodate device for slot 1 of /dev/md1
mdadm: no uptodate device for slot 2 of /dev/md1
mdadm: no uptodate device for slot 3 of /dev/md1
mdadm: added /dev/sda3 to /dev/md1 as 0
raid10: not enough operational mirrors for md1
md: pers->run() failed ...
mdadm: failed to RUN_ARRAY /dev/md1: Input/output error
+ grep 'md1 : active ' /proc/mdstat
+ '[' x1 '!=' x0 ']'
+ DiscoverRaidMD1
++ mdadm --detail /dev/md0
++ grep 'active sync'
++ head -1
++ awk '{print $7}'
++ tr 1 3
+ P3=/dev/sda3
++ mdadm --examine /dev/sda3
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' x052e1193:02c537a6:3b0800f4:4183650f '!=' x ']'
+ DEVS=
+ DEVS= /dev/sda3
+ mdadm --assemble /dev/md1 /dev/sda3 -u 052e1193:02c537a6:3b0800f4:4183650f --verbose --run --force
mdadm: device /dev/md1 already active - cannot assemble it
+ grep 'md1 : active ' /proc/mdstat
+ '[' x1 = x0 ']'
+ RecoverRaid
+ '[' /dev/md1 = /dev/md0 ']'
+ '[' /dev/md1 = /dev/md1 ']'
+ RecoverMD1
++ basename /dev/sda
+ grep ' sda1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
++ basename /dev/sda
+ grep ' sda3\[' /proc/mdstat
md1 : inactive sda3[0]
+ '[' x0 '!=' x0 ']'
+ return
+ return
+ grep 'md1 : inactive ' /proc/mdstat
md1 : inactive sda3[0]
+ '[' x0 = x0 ']'
+ /fs/fsraid.sh stop /dev/md1
+ ARGS===== /fs/fsraid.sh stop /dev/md1 =============================================================
+ ACTION=stop
+ RAIDDEV=/dev/md1
+ RAIDLEVEL=
+ RAID5SPARE=
+ DEVS_PHY=
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=98
+ RAIDTYPE_MD1=98
++ cat /proc/mtd
++ grep vendor
++ head -1
++ cut -c 4
+ VENDOR_DEV=/dev/mtdblock4
+ DISK_PREFIX=sd
+ SIGNATURE=FALCONSTOR@INTEL
+ SIGNATURE_LEN=16
+ MAX_RAID_SYNC_SPEED=5000
+ ACSL2DEV=/usr/local/ipstor/bin/acsl2dev
+ '[' xstop = x -o x/dev/md1 = x ']'
+ Get_DEVS_PHY
+ '[' -x /usr/local/ipstor/bin/acsl2dev ']'
++ /usr/local/ipstor/bin/acsl2dev 0 0 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 1 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 2 0 0
++ /usr/local/ipstor/bin/acsl2dev 0 3 0 0
+ DEVS_PHY=/dev/sda   
+ '[' '/dev/sda   ' = '' ']'
+ '[' '' = 0 ']'
+ ReadUUIDFlash
+ UUID_MD0=00000000:00000000:00000000:00000000
+ UUID_MD1=00000000:00000000:00000000:00000000
+ RAIDTYPE_MD0=0
+ RAIDTYPE_MD1=98
++ dd if=/dev/mtdblock4 bs=200 count=1
1+0 records in
1+0 records out
+ UUID_STR=0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f 
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $1}'
++ awk -F, '{print $2}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 '!=' '' ']'
+ UUID_MD0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk -F, '{print $1}'
++ awk '{print $2}'
+ RAIDTYPE=10
+ '[' 10 '!=' '' ']'
+ RAIDTYPE_MD1=10
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
++ awk '{print $2}'
++ awk -F, '{print $2}'
+ UUID=052e1193:02c537a6:3b0800f4:4183650f
+ '[' 052e1193:02c537a6:3b0800f4:4183650f '!=' '' ']'
+ UUID_MD1=052e1193:02c537a6:3b0800f4:4183650f
+ return
+ StopRaid
+ mdadm --stop /dev/md1 --verbose
md: md1 stopped.
md: unbind<sda3>
md: export_rdev(sda3)
+ cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>
+ ShowRaidStatusOnLed
+ grep '^md1 : ' /proc/mdstat
+ '[' 1 -eq 0 ']'
+ /fs/hwtool -raid_ok_off
OPEN Failed: : No such device or address
-1 Failed to turn off LED 2+ /fs/hwtool -raid_fail_on
OPEN Failed: : No such device or address
-1 Failed to turn on LED 3+ exit 0
+ return
+ ShowRaidStatusOnLed
+ grep '^md1 : ' /proc/mdstat
+ '[' 1 -eq 0 ']'
+ /fs/hwtool -raid_ok_off
OPEN Failed: : No such device or address
-1 Failed to turn off LED 2+ /fs/hwtool -raid_fail_on
OPEN Failed: : No such device or address
-1 Failed to turn on LED 3+ StartRaidMonitor
+ grep -v grep
+ ps ax
+ grep 'raidmon --scan'
+ '[' 1 '!=' 0 ']'
+ mdadm --follow --program=/fs/raidmon --scan --daemonise --delay=10 /dev/md0 /dev/md1
4352
+ cat /proc/mdstat
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>
+ exit 0
+ BM=9
+ BN=1
+ grep '^md1 :' /proc/mdstat
+ '[' x1 '!=' x0 ']'
+ touch /usr/local/ipstor/etc/storage.lock
+ return 0
+ /usr/local/ipstor/bin/initlog -c '/usr/local/ipstor/bin/unas.sh start'
+ /usr/local/ipstor/bin/ntp.sh
+ /sbin/NASClient
+ '[' -f /etc/.is.sh ']'
+ . /etc/.is.sh
++ ISHOME=/usr/local/ipstor
++ ISCLIENTHOME=/usr/local/ipstor
++ ISCOMP=FalconStor
++ ISCOMPSHORT=FalconStor
++ ISPROD=IPStor
++ ISPRODSHORT=IPStor
++ ISPRODDIR=ipstor
++ ISINQUIRY=FALCON  IPSTOR DISK     v1.0
++ ISISCSITARGETPREFIX=_ISISCSITARGETPREFIX
++ LD_LIBRARY_PATH=/usr/local/ipstor/lib:/usr/local/ipstor/lib:/usr/local/ipstor/lib:/usr/local/ipstor/lib:
++ dyn_LIBDIR=/usr/local/ipstor/lib/vfs
++ PATH=/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/local/ipstor/bin:/usr/local/ipstor/lbin:/usr/local/ipstor/util:/usr/local/ipstor/bin:/usr/bin:/bin:/usr/sbin:/sbin
++ export ISHOME ISCLIENTHOME
++ export ISCOMP ISCOMPSHORT
++ export ISPROD ISPRODSHORT ISPRODDIR
++ export ISINQUIRY
++ export LD_LIBRARY_PATH PATH
++ export dyn_LIBDIR
++ export ISISCSITARGETPREFIX
++ ulimit -c unlimited
+++ hostname
pid in main_fork-4374-
+ /sbin/FindNasClient
++ FQDN=MNAS4100
++ HOSTNAME=MNAS4100
++ IS_CONF=/usr/local/ipstor/etc/MNAS4100/ipstor.conf
++ export IS_CONF
.....................NAS CLIENT START 7.20 NASClientH_4100....................
++ KRB5_CONFIG=/usr/local/ipstor/etc/krb5.conf
++ KRB5CCNAME=/usr/local/ipstor/var/krb5cc
++ export KRB5_CONFIG KRB5CCNAME
++ SASL_PLUGINS_DIR=/usr/local/ipstor/lib/sasl
++ '[' -d /usr/local/ipstor/lib/sasl ']'
++ ISEMBEDDED=1
++ export ISEMBEDDED
+ INSMOD=/sbin/insmod
+ MKNOD=/bin/mknod
+ CHMOD=/bin/chmod
+ CHGRP=/bin/chgrp
++ uname -r
Looking for host it.pool.ntp.org and service ntp
+ echo ================= Done /etc/init.d/rcS =====================
================= Done /etc/init.d/rcS =====================
No such device: No such device
                              /bin/discoverd: waiting for data on port UDP 11575

MNAS4100 login: /fs/hwtool: ## RAID in failure mode ##

MNAS4100 login: root
Password: 
Welcome to

      _/_/_/  _/_/_/          _/_/_/    _/                            
       _/    _/    _/      _/        _/_/_/_/    _/_/    _/  _/_/     
      _/    _/_/_/          _/_/      _/      _/    _/  _/_/          
     _/    _/                  _/    _/      _/    _/  _/             
  _/_/_/  _/            _/_/_/        _/_/    _/_/    _/              

                    Powered by FalconStor Software, Inc.
                    Copyright 2001-2006 by FalconStor. 
                    All Rights Reserved.
                    http://www.falconstor.com
# 
# 
# 
# 
# uname -a
Linux MNAS4100 2.6.33 #1 Wed Feb 24 21:57:47 CET 2010 armv5tel unknown
# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/md0                124.3M     89.5M     28.4M  76% /
# mount
/dev/md0 on / type ext3 (rw,relatime,errors=continue,data=writeback)
none on /proc type proc (rw,relatime)
none on /sys type sysfs (rw,relatime)
# pwd
/
# ls
bin         fs          lib         nas         sys
conf        home        linuxrc     proc        tmp
dev         images      lost+found  root        usr
etc         initrd      mnt         sbin        var
# ls /proc
1              161            4388           driver         pagetypeinfo
1000           162            4389           execdomains    partitions
1097           163            4390           filesystems    sched_debug
1119           165            4581           fs             scsi
1138           166            5              interrupts     self
1139           167            6              iomem          slabinfo
1153           168            6349           ioports        softirqs
1162           169            6350           irq            stat
1163           170            884            kallsyms       swaps
1165           2              887            key-users      sys
1184           3              890            keys           sysrq-trigger
1187           3301           893            kmsg           sysvipc
119            4              9              kpagecount     timer_list
121            4352           901            kpageflags     tty
1221           4366           945            loadavg        uptime
1222           4374           buddyinfo      locks          version
1223           4379           bus            mdstat         vmallocinfo
123            4381           cmdline        meminfo        vmstat
129            4383           cpu            misc           zoneinfo
130            4384           cpuinfo        modules
135            4385           crypto         mounts
153            4386           devices        mtd
160            4387           diskstats      net
# cat /proc/filesystems 
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   sockfs
nodev   pipefs
nodev   anon_inodefs
nodev   rpc_pipefs
nodev   inotifyfs
nodev   devpts
        ext3
        ext2
        cramfs
nodev   ramfs
nodev   ecryptfs
nodev   nfs
nodev   nfsd
nodev   jffs2
        xfs
# cat /proc/devices 
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
 10 misc
 13 input
 21 sg
 89 i2c
 90 mtd
128 ptm
136 pts
180 usb
189 usb_device
254 rtc

Block devices:
  1 ramdisk
259 blkext
  7 loop
  8 sd
  9 md
 31 mtdblock
 43 nbd
 65 sd
 66 sd
 67 sd
 68 sd
 69 sd
 70 sd
 71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
# cat /proc/mdstat 
Personalities : [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>
# cat /proc/cpuinfo 
Processor       : XScale-80219 rev 0 (v5l)
BogoMIPS        : 398.95
Features        : swp half fastmult edsp 
CPU implementer : 0x69
CPU architecture: 5TE
CPU variant     : 0x0
CPU part        : 0x2e2
CPU revision    : 0

Hardware        : Intel IQ31244
Revision        : 0000
Serial          : 0000000000000000
# cat /proc/meminfo 
MemTotal:         254900 kB
MemFree:          235860 kB
Buffers:            3304 kB
Cached:             7264 kB
SwapCached:            0 kB
Active:             7640 kB
Inactive:           4924 kB
Active(anon):       1996 kB
Inactive(anon):        0 kB
Active(file):       5644 kB
Inactive(file):     4924 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:        526144 kB
SwapFree:         526144 kB
Dirty:                16 kB
Writeback:             0 kB
AnonPages:          2020 kB
Mapped:             1844 kB
Shmem:                 0 kB
Slab:               4516 kB
SReclaimable:       1876 kB
SUnreclaim:         2640 kB
KernelStack:         456 kB
PageTables:          236 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      653592 kB
Committed_AS:      38728 kB
VmallocTotal:     745472 kB
VmallocUsed:        8888 kB
VmallocChunk:     729084 kB
# 

Reply to: