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

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



Hi Arnaud and all,
sorry for the long wait but I've been traveling (for work).

Please find attached the requested data. I believe I've taken the
entire boot log.
Also I've run a few commands to explore /proc filesystem.

Unfortunately "lspci" is not available.

I'll be waiting for further inputs :)

-mw

On Mon, Feb 1, 2010 at 5:29 PM, Arnaud Patard <arnaud.patard@rtp-net.org> wrote:
> Mello <mellowiz@gmail.com> writes:
>
>> Hi all,
> Hi,
>
>> I've searched through the archives but I've found nothing about my
>> LAN-based NAS (in the subject) hence I'm asking the alias...
>>
>> Anybody has any ideas on how to hack it to carry out a fresh install
>> of Debian+Samba on Thermaltake Muse NAS-RAID (N0001LN)?
>> Very simply put, it is a 4-bay box, built around the Intel IOP 80219
>> (@400MHz) architecture.
>> It also features an externally accessible serial interface, one 1G
>> Ethernet interface and 256MB RAM (+8MB flash). Additionally, although
>> I'm unaware of the nitty-gritty stuff, it has a Redboot firmware (seen
>> via the serial cable).
>
> great. Having a serial cable is a good start.
>
>> The system is based on Linux (uname -m => armv5tel;  uname -r =>
>> 2.6.10-iop1) and it runs software made by FalconStor (ipstord,
>> ipstorcomm...). I'm not sure whether RAID is done in software or
>> hardware.
>
> IOP80219 is only telling us it's an arm box. As there are already a
> bunch of other NAS based on this SoC, more informations are needed.
> Can you provide somewhere informations like :
>
> - boot log (with redboot logs)
> - content of /proc/interrupts
> - lspci output
>
> More informations may be needed later but the one I listed previously
> should help us knowing what's exactly is in your device. Also, if you're
> not afraid of opening your NAS, look for informations on the PCB. This
> may help us to find if the NAS is already supported by the kernel with a
> different name/vendor.
>
>>
>> What I'd like to achieve is to have a Debian server, running SSH
>> instead of Telnet (!), that I can configure to share data via SMB.
>> Disks should be configured as RAID 1 at least.
>
> imho, it should not be hard as long as one manage to boot a custom kernel
> on it.
>
> Arnaud
>
0 Set system power off successfully# drivers/scsi/gdó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
RedBoot> fis load ramdisk.gz
RedBoot> fis load zImage
RedBoot> exec
Using base address 0x01008000 and length 0x00200000
The boot tags are located at 0xA0000100
Booting the kernel...
Uncompressing Linux...................................................................................................................... done, booting the kernel.
Linux version 2.6.10-iop1 (root@localhost.localdomain) (gcc version 3.3.2) #135 Tue Apr 4 18:11:39 CST 2006
CPU: XScale-IOP8032x Family [69052e20] revision 0 (ARMv5TE)
CPU: D VIVT undefined 5 cache
CPU: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Machine: Intel IQ31244
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: console=ttyS0,115200 rw root=/dev/ram0 init=/linuxrc initrd=0xa1800000,8M mem=256M@0xa0000000
PID hash table entries: 2048 (order: 11, 32768 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 256MB = 256MB total
Memory: 247552KB available (3019K code, 666K data, 108K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 8192K
NET: Registered protocol family 16
PCI: bus0: Fast back to back transfers disabled
SCSI subsystem initialized
Intel IOP3XX DMA Copyright(c) 2004 Intel Corporation
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
SGI XFS with ACLs, security attributes, no debug enabled
SGI XFS Quota Management subsystem
Initializing Cryptographic API
I2C: M41ST85W RTC driver successfully loaded
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0xfe800000 (irq = 28) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 5.5.4-k2-NAPI
Copyright (c) 1999-2004 Intel Corporation.
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e100: Intel(R) PRO/100 Network Driver, 3.2.3-k2-NAPI
e100: Copyright(c) 1999-2004 Intel Corporation
PPP generic driver version 2.4.2
NET: Registered protocol family 24
Intel(R) GD31244 SATA driver - version 1.264-TimerCheck
Copyright (c) 2002-2005 Intel Corporation.
scsi0 : GD31244: Intel Sata Controller Driver Ver 1.264-TimerCheck, Max 4 Channels, Max 1 devices per channel, Max 1 Luns per device
elevator: using anticipatory as default io scheduler
Found SATA Drive Ho:Ch:Tgt:Lun (0:0:0:0)
  Vendor:           Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI revision: 02
Found SATA Drive Ho:Ch:Tgt:Lun (0:0:0:0)
Found SATA Drive Ho:Ch:Tgt:Lun (0:1:0:0)
  Vendor:           Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI revision: 02
Found SATA Drive Ho:Ch:Tgt:Lun (0:1:0:0)
Found SATA Drive Ho:Ch:Tgt:Lun (0:2:0:0)
  Vendor:           Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI revision: 02
Found SATA Drive Ho:Ch:Tgt:Lun (0:2:0:0)
Found SATA Drive Ho:Ch:Tgt:Lun (0:3:0:0)
  Vendor:           Model: ST3320620AS       Rev: 3.AA
  Type:   Direct-Access                      ANSI SCSI revision: 02
Found SATA Drive Ho:Ch:Tgt:Lun (0:3:0:0)
GD31244: 1 Controllers Detected.
SCSI device sda: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sda: drive cache: write back
 /dev/scsi/host0/bus0/target0/lun0: p1 p2 p3
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sdb: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdb: drive cache: write back
 /dev/scsi/host0/bus1/target0/lun0: p1 p2 p3
Attached scsi disk sdb at scsi0, channel 1, id 0, lun 0
SCSI device sdc: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdc: drive cache: write back
SCSI device sdc: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdc: drive cache: write back
 /dev/scsi/host0/bus2/target0/lun0: p1 p2 p3
Attached scsi disk sdc at scsi0, channel 2, id 0, lun 0
SCSI device sdd: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdd: drive cache: write back
SCSI device sdd: 625142449 512-byte hdwr sectors (320073 MB)
SCSI device sdd: drive cache: write back
 /dev/scsi/host0/bus3/target0/lun0: p1 p2 p3
Attached scsi disk sdd at scsi0, channel 3, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
Attached scsi generic sg1 at scsi0, channel 1, id 0, lun 0,  type 0
Attached scsi generic sg2 at scsi0, channel 2, id 0, lun 0,  type 0
Attached scsi generic sg3 at scsi0, channel 3, id 0, lun 0,  type 0
physmap flash device: 800000 at f0000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
cmdlinepart partition parsing not available
6 RedBoot partitions found on MTD device phys_mapped_flash
Creating 6 MTD partitions on "phys_mapped_flash":
0x00000000-0x00040000 : "RedBoot"
0x00040000-0x00240000 : "zImage"
0x00240000-0x00640000 : "ramdisk.gz"
0x007a0000-0x007c0000 : "vendor"
0x007c0000-0x007c1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
0x007e0000-0x00800000 : "FIS directory"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: raid10 personality registered as nr 9
md: raid5 personality registered as nr 4
raid5: measuring checksumming speed
   arm4regs  :   230.000 MB/sec
   8regs     :   264.800 MB/sec
   32regs    :   288.000 MB/sec
raid5: using function: 32regs (288.000 MB/sec)
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
device-mapper: 4.3.0-ioctl (2004-09-30) initialised: dm-devel@redhat.com
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
EXT3-fs warning: feature flags set on rev 0 fs, running e2fsck is recommended
EXT2-fs warning: feature flags set on rev 0 fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 108K
++ /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.10-iop1: 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.10-iop1: 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.10-iop1: 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}'
+ diskno=1 2 3 4 
+ '[' disks '!=' '' ']'
+ /fs/hwtool -hdledon 1
+ /fs/hwtool -hdledon 2
+ /fs/hwtool -hdledon 3
+ /fs/hwtool -hdledon 4
+ 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
++ head -1
++ cut -c 4
++ grep vendor
+ VENDOR_DEV=/dev/mtdblock3
+ 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=
++ awk '{print $4}'
++ egrep 'sd[a-z]$|sd[a-z][a-z]$' /proc/partitions
+ 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/mtdblock3 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 -F, '{print $2}'
++ awk '{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/mtdblock3 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}'
++ awk -F, '{print $2}'
++ echo 0,5d2dcc17:ed919193:91c3f4a6:e16dc3a3 10,052e1193:02c537a6:3b0800f4:4183650f
+ 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
++ grep ' UUID :'
++ awk '{print $3}'
++ mdadm --misc --examine /dev/sda3
+ 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 ']'
++ mdadm --misc --examine /dev/sdb1
++ grep ' UUID :'
++ awk '{print $3}'
+ UUID=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
+ '[' 5d2dcc17:ed919193:91c3f4a6:e16dc3a3 = '' ']'
+ UUID0=5d2dcc17:ed919193:91c3f4a6:e16dc3a3
++ mdadm --misc --examine /dev/sdb3
++ awk '{print $3}'
++ grep ' UUID :'
+ 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
++ grep ' UUID :'
++ awk '{print $3}'
++ mdadm --misc --examine /dev/sdc3
+ 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
++ awk '{print $3}'
++ grep ' UUID :'
+ 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:91c3f4md: md0 stopped.
a6:e16dc3a3 = 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: admd: bind<sdd1>
ded /dev/sdb1 to /dev/md0 as 1
mdadm: added /dev/sdd1 to /dev/md0 as 2
md: bind<sdc1>
mdadm: added /dev/sdc1 to /dev/md0md: bind<sda1>
 as 3
mdadm: adderaid1: raid set md0 active with 4 out of 4 mirrors
d /dev/sda1 to /dev/md0 as 0
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 : [linear] [raid0] [raid1] [raid5] [raid10] 
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 : [linear] [raid0] [raid1] [raid5] [raid10] 
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 ']'
+ dumpe2fs -h /dev/md0
+ grep UUID
dumpe2fs 1.36 (05-Feb-2005)
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 warning: maximal mount count reached, running e2fsck is recommended
EXT3 FS on md0, internal journal
EXT3-fs: md0: 1 orphan inode deleted
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered 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/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
+ 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
+ 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
+ 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
+ mount
+ grep /dev/ram
+ '[' 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
+ echo '127.0.0.1 localhost MNAS4100'
+ '[' 0 = 1 ']'
+ rm -f /etc/resolv.conf
+ '[' 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
+ '[' 192.168.20.1 '!=' 0.0.0.0 ']'
+ route adde1000: eth0: e1000_watchdog: NIC Link is Up 10 Mbps Half Duplex
 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.10-iop1
+ 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 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
socket: Address family not supported by protocol
+ 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
socket: Address family not supported by protocol
mini_httpd: started as root without requesting chroot(), warning only
+ sleep 1
+ 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.10-iop1
+ 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 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 kfsnbase: module license 'unspecified' taints kernel.
FSNBASE init_module, got kfsnbase major 252 for char device
FSNBASE init_module, kfsnbase will use adaptor 'blkscsi'.
IOCORE1 Log filter thread started.
IOCORE1 ipstor_attach, skip device ACSL(0:0:0:0) at adaptor 'GD31244' not in fsnbase_only_adaptors list.
IOCORE1 ipstor_attach, skip device ACSL(0:1:0:0) at adaptor 'GD31244' not in fsnbase_only_adaptors list.
IOCORE1 ipstor_attach, skip device ACSL(0:2:0:0) at adaptor 'GD31244' not in fsnbase_only_adaptors list.
IOCORE1 ipstor_attach, skip device ACSL(0:3:0:0) at adaptor 'GD31244' not in fsnbase_only_adaptors list.
IOCORE1 Special vendor disk detect  
IOCORE1 ====================
IOCORE1 Special host type type detect 
IOCORE1 QLogic Fibre Channel 2100
IOCORE1 QLogic Fibre Channel 2200
IOCORE1 QLogic Fibre Channel 2300
IOCORE1 MPT SCSI Host
IOCORE1 lpfc
IOCORE1 qla2xxx
IOCORE1 ====================
[  OK  ]
+ '[' 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/mtdblock3
+ 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/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/mtdblock3 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 -F, '{print $2}'
++ awk '{print $1}'
+ 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
++ basename /dev/sdb
+ grep ' sdb1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ DEVS_VALID= /dev/sda3 /dev/sdb3
++ basename /dev/sdc
+ grep ' sdc1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ DEVS_VALID= /dev/sda3 /dev/sdb3 /dev/sdc3
++ basename /dev/sdd
+ grep ' sdd1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
+ DEVS_VALID= /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3
+ mdadm --assemble /dev/md1 /dev/sda3 /dev/sdb3 /dev/sdc3 /dev/sdd3 -u 052e1193:02c537a6:3b0800f4:4183650f --verbose --run --force
md: md1 stopped.
mdadm: looking for devices for /dev/md1
mdadm: /dev/sda3 is identified as a member of /dev/md1, slot 0.
mdadm: /dev/sdb3 is identified as a member of /dev/md1, slot 1.
mdadm: /dev/sdc3 is identified as a member of /dev/md1, slot 2.
mdadm: /dev/sdd3 is identified as a member of /dev/md1, slot 3.
md: bind<sdb3>
mdadm: added /dev/sdb3 to /dev/md1 as 1
md: bind<sdc3>
mdadm: added /dev/sdc3 to /dev/md1 as 2
md: bind<sdd3>
mdadm: added /dev/sdd3 to /dev/md1 as 3
md: bind<sda3>
mdadm: added /devraid10: raid set md1 active with 4 out of 4 devices
/sda3 to /dev/md1 as 0
mdadm: /dev/md1 has been started with 4 drives.
+ grep 'md1 : active ' /proc/mdstat
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' 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 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdb
+ grep ' sdb1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
++ basename /dev/sdb
+ grep ' sdb3\[' /proc/mdstat
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdc
+ grep ' sdc1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
++ basename /dev/sdc
+ grep ' sdc3\[' /proc/mdstat
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' x0 ']'
++ basename /dev/sdd
+ grep ' sdd1\[' /proc/mdstat
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
+ '[' x0 = x0 ']'
++ basename /dev/sdd
+ grep ' sdd3\[' /proc/mdstat
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' x0 ']'
+ return
+ return
+ grep 'md1 : inactive ' /proc/mdstat
+ '[' x1 = x0 ']'
+ return
+ ShowRaidStatusOnLed
+ grep '^md1 : ' /proc/mdstat
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' 0 -eq 0 ']'
+ /fs/hwtool -raid_ok_on
0 on+ /fs/hwtool -raid_fail_off
0 off
+ StartRaidMonitor
+ ps ax
+ grep -v grep
+ grep 'raidmon --scan'
+ '[' 1 '!=' 0 ']'
+ mdadm --follow --program=/fs/raidmon --scan --daemonise --delay=10 /dev/md0 /dev/md1
1112
+ cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid5] [raid10] 
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
      624616064 blocks 64K chunks 2 near-copies [4/4] [UUUU]
      
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
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
+ '[' x0 '!=' x0 ']'
+ echo 'Loading storage ...'
Loading storage ...
++ uname -r
+ insmod /usr/local/ipstor/lib/modules/2.6.10-iop1/scsi/bksc_mod.ko
Using /usr/local/ipstor/lib/modules/2.6.10-iop1/scsi/bksc_mod.ko
++ cat /proc/devices
++ awk '$2=="bkscctl" {print $1}'
+ MAJOR=251
+ '[' 251 ']'
+ rm -f /dev/bkscctl
+ mknod /dev/bkscctl c 251 0
+ chmod 600 /dev/bkscctl
+ add_blkscsi -t block -m 9 -n 1 -i -1 -l -1 -e
FalconStor Block-to-SCSI Driver Utility. Version 1.0

Adding Block-to-SCSI Discsi1 : FalconStor BLOCK-SCSI driver v5.00 Build 976
sk:
   SCSI Id = -1
       Lun = -1
     Major = 9
     Minor = 1
Exclusive? = no

Success.

Engaging SCSI:
  Vendor: FALCON    Model: LVMDISK-M09N01    Rev: v1.0
  Type:   Direct-Access                      ANSI SCSI revision: 02
SCSI device sde: 1249232128 512-byte hdwr sectors (639607 MB)
SCSI device sde: drive cache: write through
SCSI device sde: 1249232128 512-byte hdwr sectors (639607 MB)
SCSI device sde: drive cache: write through
 /dev/scsi/host1/bus0/target1/lun0: p1 p2
Attached scsi disk sde at scsi1, channel 0, id 1, lun 0
Attached scsi generic sg4 at scsi1, channel 0, id 1, lun 0,  type 0
IOCORE1 ipstor_host_capabilities: low_dma 0, sg_tablesize 64
IOCORE1 adapter 1 name "blkscsi" 

Success.

++ ls /proc/scsi/blkscsi/
+ BLKSCSI_ID=1
++ basename 1
+ ANO=1
+ STORAGE_ACSL=1:0:1:0
++ acsl2dev 1 0 1 0
+ STORAGE_DEV=/dev/sde
+ fdisk -l /dev/sde
+ grep ' 77  Unknown'
/dev/sde1             1         1      8032   77  Unknown
+ '[' x0 '!=' x0 ']'
+ rm -f /usr/local/ipstor/etc/storage.lock
+ /usr/local/ipstor/bin/checkDiskStatus
+ /usr/local/ipstor/bin/initlog -c '/usr/local/ipstor/bin/unas.sh start'
+ /sbin/NASClient
+ /usr/local/ipstor/bin/ntp.sh
+ '[' -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
pid in main_fork-1218-
.....................NAS CLIENT START 7.20 NASClientH_4100....................
+ /sbin/FindNasClient
+ echo ================= Done /etc/init.d/rcS =====================
================= Done /etc/fs/hwtool: ## RAID in normal ##
No such device: No such device
/bin/discoverd: waiting for data on port UDP 11575
LZO real-time data compression library v1.08, Jul 12 2002
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
Markus Franz Xaver Johannes Oberhumer
<markus.oberhumer@jk.uni-linz.ac.at>
http://www.oberhumer.com/opensource/lzo/

MNAS4100 login: IOCORE1 init_module, SANRPC initialized: 0
FSNALIAS ignore lsi check 0
FSNALIAS ignoreall command 0
FSNALIAS attach ACSL 1 0 1 0 begin
FSNALIAS get attributes (create fake fsid)
FSNALIAS handle_scsi_notify, ACSL 1 0 1 0 attached fsid=fa1cfe00-0000-0000-0001-000000010000
IOCORE1 init_module, Debug level (0) and default rdev timeout (10) are set
PID 1307 MTCP> New channel created, SIO_HANDLE 1
PID 1307 MTCP> Listening on port 11577
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/ipstor created
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/cache created
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/umap created
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/timemark created
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/hotzone created
IOCORE1 build_ipstor_proc_dir, /proc/ipstor/adaptive created
FSNBASE ipstor_ioctl, function_code (104) was not registered with the ioctl service, return -EINVAL
IOCORE1 ipstor_set_snmp_level, snmp level (0) is set
IOCORE1 mirror-sync-cmdsout set to 2
IOCORE1 mirror-sync-blksize set to 64KB
IOCORE1 replication_microscan is set to 0
IOCORE1 setting window-size to 4
IOCORE1 setting transport-timeout to 600
IOCORE1 replication_throttle is set to 0
FSNALIAS get attributes (create fake fsid)
FSNALIAS get attributes (create fake fsid)
FSNALIAS  Illegal request , failed command  for device (77553303-72b6-bb19-4925-00004947e3d9) 
IOCORE1 ipstor_get_umaps, high resolution umap found on disk for vdev 2, 304983 bits (1249210368 sectors)
IOCORE1 dispatch_ivpr_resume, restarting vdev 2
IOCORE1 resume_vdev_exec, resumed 0 commands
IOCORE1 dispatch_ivpr_resume, restarting vdev 1
IOCORE1 resume_vdev_exec, resumed 0 commands
IOCORE1 replication-cmdsout set to 4
VBDI init_module, block_siz is deprecated, use ioctl BLKBSZSET instead
devfs_mk_dir(kvbdi): could not append to dir: cfa7eda0 ""
IOCORE1 replication-cmdsout set to 4
_devfs_append_entry(2): dir: "kvbdi" is not a directory
devfs_mk_dev: could not append to parent for kvbdi/2
XFS mounting filesystem vbdi2
/fs/hwtool: ## RAID in normal ##
MNAS4100 login: 
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.10-iop1 #135 Tue Apr 4 18:11:39 CST 2006 armv5tel unknown

# ls /proc
1               1381            71              ioports
1084            1382            72              ipstor
1112            1399            73              isprefetch
1125            1445            733             kallsyms
1126            1447            74              kfsnalias
1127            1448            75              kfsncmd
1218            1469            754             kfsndev
1220            1512            755             kfsnioctl
1228            1534            76              kfsnmem
1229            1535            77              kfsnmon
1230            1536            852             kfsnproxy
1239            1537            871             kmsg
1240            1538            903             krudp
1241            1539            911             kvbdi
1242            1540            912             loadavg
1252            1541            913             locks
1253            1542            916             mdstat
1255            1543            932             meminfo
1256            1554            937             misc
1257            1581            996             modules
1266            1597            997             mounts
1267            1602            998             mtd
1268            1603            buddyinfo       net
1270            1606            bus             partitions
1291            1607            cmdline         pci
1292            1608            config.gz       scsi
1305            1610            cpu             self
1306            1615            cpuinfo         slabinfo
1312            1679            crypto          stat
1317            1866            devices         swaps
1332            1868            diskstats       sys
1333            1917            driver          sysvipc
1334            2               execdomains     tty
1343            21              filesystems     uptime
1365            3               fs              version
1375            4               interrupts      vmstat
1377            70              iomem
1379            701             iop3xx_dmacopy

# cat /proc/interrupts 
           CPU0
  0:          0   IOP321 DMA 0 EOT
  1:          0   IOP321 DMA 0 E0C
  2:          0   IOP321 DMA 1 EOT
  3:          0   IOP321 DMA 1 E0C
  9:      67368   IOP321 Timer Tick
 11:        119   IOP321 i2c biu adapter 0
 12:         32   IOP321 i2c biu adapter 1
 20:          0   IOP321 DMA 0 ERR
 21:          0   IOP321 DMA 1 ERR
 27:       2952   eth0
 28:      28649   serial
 29:       6389   GD31244
 31:          0   pic16f8x
Err:          0

# cat /proc/cpuinfo 
Processor	: XScale-IOP8032x Family rev 0 (v5l)
BogoMIPS	: 399.76
cpu MHz		: 399.769
Features	: swp half thumb fastmult edsp 
CPU implementer	: 0x69
CPU architecture: 5TE
CPU variant	: 0x0
CPU part	: 0x2e2
CPU revision	: 0
Cache type	: undefined 5
Cache clean	: undefined 5
Cache lockdown	: undefined 5
Cache format	: Harvard
I size		: 32768
I assoc		: 32
I line length	: 32
I sets		: 32
D size		: 32768
D assoc		: 32
D line length	: 32
D sets		: 32

Hardware	: Intel IQ31244
Revision	: 0000
Serial		: 0000000000000000

# cat /proc/pci 
PCI devices found:
  Bus  0, device   1, function  0:
    Ethernet controller: Intel Corp. 82541GI/PI Gigabit Ethernet Controller (rev 5).
      IRQ 27.
      Master Capable.  No bursts.  Min Gnt=255.
      Non-prefetchable 32 bit memory at 0x80000000 [0x8001ffff].
      Non-prefetchable 32 bit memory at 0x80020000 [0x8003ffff].
      I/O at 0xfe000000 [0xfe00003f].
  Bus  0, device   3, function  0:
    Class 0106: Intel Corp. GD31244 PCI-X SATA HBA (rev 0).
      IRQ 29.
      Master Capable.  No bursts.  Min Gnt=16.Max Lat=1.
      Non-prefetchable 64 bit memory at 0x80060000 [0x80060fff].

# cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid5] [raid10] 
md1 : active raid10 sda3[0] sdd3[3] sdc3[2] sdb3[1]
      624616064 blocks 64K chunks 2 near-copies [4/4] [UUUU]
      
md0 : active raid1 sda1[0] sdc1[3] sdd1[2] sdb1[1]
      131456 blocks [4/4] [UUUU]
      
unused devices: <none>

# lspci
sh: lspci: command not found


Reply to: