ReadyNAS: Unterschied zwischen den Versionen
Aus lugvswiki
Zur Navigation springenZur Suche springenUlf (Diskussion | Beiträge) (Aktualisert) |
Ulf (Diskussion | Beiträge) |
||
Zeile 14: | Zeile 14: | ||
echo 1 > /sys/devices/platform/leds-gpio/leds/SATA1_PRESENT/brightness | echo 1 > /sys/devices/platform/leds-gpio/leds/SATA1_PRESENT/brightness | ||
echo 1 > /sys/devices/platform/leds-gpio/leds/SATA2_PRESENT/brightness | echo 1 > /sys/devices/platform/leds-gpio/leds/SATA2_PRESENT/brightness | ||
+ | |||
+ | |||
+ | Script zur SMTP Überwachung findet sich [http://blog.pregos.info/2010/07/19/netgear-readynas-2100-nagios/ hier] | ||
+ | |||
Version vom 15. Juni 2013, 16:17 Uhr
Netgear ReadyNAS RN102
Aufbau und Inbetriebnahme eines NAS (ReadyNAS 102) welcher bei Ulf als Backup Ziel dienen soll (da interne Festplatte im Server doch etwas riskanter als externe Lösung)
Wie folgt kann man per ssh die Status LEDs am ReadyNAS (Getestet mit Version 6.0.6) schalten:
# Power LED ausschalten: echo 0 > /sys/devices/platform/leds-gpio/leds/power/brightness # Status LED für HDD1 und HDD2 ausschalten: echo 0 > /sys/devices/platform/leds-gpio/leds/SATA1_PRESENT/brightness echo 0 > /sys/devices/platform/leds-gpio/leds/SATA2_PRESENT/brightness # Power LED einschalten: echo 1 > /sys/devices/platform/leds-gpio/leds/power/brightness # Status LED für HDD1 und HDD2 einschalten: echo 1 > /sys/devices/platform/leds-gpio/leds/SATA1_PRESENT/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/SATA2_PRESENT/brightness
Script zur SMTP Überwachung findet sich hier
Telnet bevor konfiguration
Nach dem ersten einschalten - benutzt die ReadyNAS die per DHCP vergebene Adresse. Diese kann auch via [1] ermittelt werden. Falls dann die Webkonfiguration per http://meine.ip nicht geht, kann man sich auch mit "telnet meine.ip" und den Benutzer: "root" sowie Password: "infr8ntdebug" anmelden.
"dmesg" output:
Initializing cgroup subsys cpu Linux version 3.0.74.RN_ARM.1 (jenkins@blocks) (gcc version 4.6.2 (Linaro GCC branch-4.6.2. Marvell GCC 201201-883.01c949de) ) #1 Wed May 15 00:42:01 PDT 2013 CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Marvell Armada-370 Using UBoot passing parameters structure >>>>>>>Tag MAC XX:XX:XX:XX:XX:XX >>>>>>>Tag MAC YY:YY:YY:YY:YY:YY Memory policy: ECC disabled, Data cache writealloc On node 0 totalpages: 131072 free_area_init_node: node 0, pgdat c07e1d0c, node_mem_map c0828000 Normal zone: 1024 pages used for memmap Normal zone: 0 pages reserved Normal zone: 130048 pages, LIFO batch:31 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping off. Total pages: 130048 Kernel command line: console=ttyS0,115200 mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubi); reason=normal bdtype=rn102 PID hash table entries: 2048 (order: 1, 8192 bytes) Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 512MB = 512MB total Memory: 505080k/505080k available, 19208k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xexfa800000 ( 416 MB) lowmem : 0xcxe0000000 ( 512 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .init : 0xcxc0033000 ( 172 kB) .text : 0xcxc07a8000 (7636 kB) .data : 0xc07a8000 - 0xc07e2fe0 ( 236 kB) .bss : 0xc07e3004 - 0xc0827f2c ( 276 kB) SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 NR_IRQS:256 axp_time_init Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256) pid_max: default: 32768 minimum: 301 Security Framework initialized Mount-cache hash table entries: 512 Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok Armada-XP Performance Monitor Unit detected (Marvell ID)!!! hw perfevents: enabled with Armada PJ4 PMU driver, 7 counters available xor: measuring software checksum speed arm4regs : 1225.200 MB/sec 8regs : 860.800 MB/sec 32regs : 858.400 MB/sec xor: using function: arm4regs (1225.200 MB/sec) NET: Registered protocol family 16 L0 cache Enabled Speculative Prefetch Disabled aurora_l2_init Aurora: Enabling L2 AuroraL2: System L2 cache support initialised Support IO coherency. Enable DLB and DRAM write coalescing CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 512MB SDRAM_CS1 ....disable SDRAM_CS2 ....disable SDRAM_CS3 ....disable DEVICE_CS0 ....base f2000000, size 32MB DEVICE_CS1 ....no such DEVICE_CS2 ....no such DEVICE_CS3 ....no such PEX0_MEM ....base e0000000, size 32MB PEX0_IO ....base f1100000, size 1MB PEX1_MEM ....base e2000000, size 32MB PEX1_IO ....base f1200000, size 1MB INTER_REGS ....base d0000000, size 1MB DMA_UART ....no such SPI_CS0 ....base f0000000, size 16MB SPI_CS1 ....no such SPI_CS2 ....no such SPI_CS3 ....no such SPI_CS4 ....no such SPI_CS5 ....no such SPI_CS6 ....no such SPI_CS7 ....no such BOOT_ROM_CS ....no such DEV_BOOTCS ....base f5000000, size 16MB PMU_SCRATCHPAD ....no such CRYPT0_ENG ....base c8010000, size 64KB Marvell Armada370 Board-- RN102 Soc: MV6710 A1 LE LSP version: Armada370_LSP_3.1.0_p15_NQ Netgear kernel version: 1.8 Detected Tclk 200000000, SysClk 600000000, FabricClk 600000000 hw-breakpoint: debug architecture 0x4 unsupported. Marvell USB EHCI Host controller #0: d0052800 Marvell USB EHCI Host controller #1: d0052a00 pci 0000:00:01.0: [1b4b:9170] type 0 class 0x000106 pci 0000:00:01.0: reg 10: [io 0xfffffff8-0xffffffff] pci 0000:00:01.0: reg 14: [io 0xfffffffc-0xffffffff] pci 0000:00:01.0: reg 18: [io 0xfffffff8-0xffffffff] pci 0000:00:01.0: reg 1c: [io 0xfffffffc-0xffffffff] pci 0000:00:01.0: reg 20: [io 0xfffffff0-0xffffffff] pci 0000:00:01.0: reg 24: [mem 0x40000000-0x400001ff] pci 0000:00:01.0: reg 30: [mem 0xdxd000ffff pref] pci 0000:00:01.0: PME# supported from D3hot pci 0000:00:01.0: PME# disabled PCI: bus0: Fast back to back transfers disabled pci 0000:01:01.0: [1b73:1009] type 0 class 0x000c03 pci 0000:01:01.0: reg 10: [mem 0x42000000-0x4200ffff 64bit] pci 0000:01:01.0: reg 18: [mem 0x42010000-0x42010fff 64bit] pci 0000:01:01.0: reg 20: [mem 0x42011000-0x42011fff 64bit] pci 0000:01:01.0: supports D1 pci 0000:01:01.0: PME# supported from D0 D1 D3hot D3cold pci 0000:01:01.0: PME# disabled PCI: bus1: Fast back to back transfers disabled pci 0000:01:01.0: BAR 0: assigned [mem 0xe2000000-0xe200ffff 64bit] pci 0000:01:01.0: BAR 0: set to [mem 0xe2000000-0xe200ffff 64bit] (PCI address [0xe2000000-0xe200ffff]) pci 0000:01:01.0: BAR 2: assigned [mem 0xe2010000-0xe2010fff 64bit] pci 0000:01:01.0: BAR 2: set to [mem 0xe2010000-0xe2010fff 64bit] (PCI address [0xe2010000-0xe2010fff]) pci 0000:01:01.0: BAR 4: assigned [mem 0xe2011000-0xe2011fff 64bit] pci 0000:01:01.0: BAR 4: set to [mem 0xe2011000-0xe2011fff 64bit] (PCI address [0xe2011000-0xe2011fff]) pci 0000:00:01.0: BAR 6: assigned [mem 0xexe000ffff pref] pci 0000:00:01.0: BAR 5: assigned [mem 0xexe00101ff] pci 0000:00:01.0: BAR 5: set to [mem 0xexe00101ff] (PCI address [0xexe00101ff]) pci 0000:00:01.0: BAR 4: assigned [io 0x1000-0x100f] pci 0000:00:01.0: BAR 4: set to [io 0x1000-0x100f] (PCI address [0x1000-0x100f]) pci 0000:00:01.0: BAR 0: assigned [io 0x1010-0x1017] pci 0000:00:01.0: BAR 0: set to [io 0x1010-0x1017] (PCI address [0x1010-0x1017]) pci 0000:00:01.0: BAR 2: assigned [io 0x1018-0x101f] pci 0000:00:01.0: BAR 2: set to [io 0x1018-0x101f] (PCI address [0x1018-0x101f]) pci 0000:00:01.0: BAR 1: assigned [io 0x1020-0x1023] pci 0000:00:01.0: BAR 1: set to [io 0x1020-0x1023] (PCI address [0x1020-0x1023]) pci 0000:00:01.0: BAR 3: assigned [io 0x1024-0x1027] pci 0000:00:01.0: BAR 3: set to [io 0x1024-0x1027] (PCI address [0x1024-0x1027]) bio: create slab <bio-0> at 0 raid6: int32x1 135 MB/s raid6: int32x2 191 MB/s raid6: int32x4 202 MB/s raid6: int32x8 171 MB/s raid6: using algorithm int32x4 (202 MB/s) SCSI subsystem initialized libata version 3.00 loaded. usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource armada370_clocksource NET: Registered protocol family 2 IP route cache hash table entries: 4096 (order: 2, 16384 bytes) TCP established hash table entries: 16384 (order: 5, 131072 bytes) TCP bind hash table entries: 16384 (order: 4, 65536 bytes) TCP: Hash tables configured (established 16384 bind 16384) 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 named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PCI: CLS 32 bytes, default 32 Unpacking initramfs... Switched to NOHz mode on CPU #0 Freeing initrd memory: 2216K PMU: registered new PMU device of type 0 cesadev_init(c000f900) mvCesaInit: channels=1, session=640, queue=64 Todo: mknod /dev/buttons c 253 0 Armada XP hwmon thermal sensor initialized. Initializing Armada-XP CPU power management (DISABLED) VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) Installing knfsd (copyright (C) 1996 okir@monad.swb.de). JFFS2 version 2.2. (NAND) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. fuse init (API version 7.16) SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled SGI XFS Quota Management subsystem Btrfs loaded msgmni has been set to 990 async_tx: api initialized (async) io scheduler noop registered io scheduler deadline registered (default) io scheduler cfq registered mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver mv_xor mv_xor.0: Marvell XOR: ( crc32c ) mv_xor mv_xor.1: Marvell XOR: ( xor ) mv_xor mv_xor.2: Marvell XOR: ( cpy ) mv_xor mv_xor.3: Marvell XOR: ( fill cpy ) Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A console [ttyS0] enabled loop: module loaded ahci 0000:00:01.0: version 3.0 PCI: enabling device 0000:00:01.0 (0146 -> 0147) ahci 0000:00:01.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode ahci 0000:00:01.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs scsi0 : ahci scsi1 : ahci ata1: SATA max UDMA/133 abar m512@0xe0010000 port 0xe0010100 irq 58 ata2: SATA max UDMA/133 abar m512@0xe0010000 port 0xe0010180 irq 58 sata_mv sata_mv.0: version 1.28 sata_mv sata_mv.0: slots 32 ports 2 scsi2 : sata_mv scsi3 : sata_mv ata3: SATA max UDMA/133 irq 55 ata4: SATA max UDMA/133 irq 55 mvSFlashInit ERROR: Unknown SPI flash device! ERROR: sflash_probe - Failed to initialize the SFlash. armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit) Bad block table found at page 65472, version 0x01 Bad block table found at page 65408, version 0x01 mtd: no mtd-id 5 cmdlinepart partitions found on MTD device armada-nand Creating 5 MTD partitions on "armada-nand": 0xx000000180000 : "u-boot" 0xx0000001a0000 : "u-boot-env" 0xx000000800000 : "uImage" 0xx000000c00000 : "minirootfs" 0x000000c00000-0x000008000000 : "ubi" mv_eth_probe: port_mask=0x3, cpu_mask=0x1 0 - Base 0x00000000 , Size = 0x20000000. 4 - Base 0xf2000000 , Size = 0x02000000. 8 - Base 0xe0000000 , Size = 0x02000000. 9 - Base 0xf1100000 , Size = 0x00100000. 10 - Base 0xe2000000 , Size = 0x02000000. 11 - Base 0xf1200000 , Size = 0x00100000. 12 - Base 0xd0000000 , Size = 0x00100000. 14 - Base 0xf0000000 , Size = 0x01000000. 23 - Base 0xf5000000 , Size = 0x01000000. 25 - Base 0xc8010000 , Size = 0x00010000. o 2 Giga ports supported o SKB recycle supported (Enabled) o NETA acceleration mode 1 o RX Queue support: 8 Queues * 128 Descriptors o TX Queue support: 8 Queues * 512 Descriptors o GSO supported o GRO supported o Receive checksum offload supported o Transmit checksum offload supported o Driver ERROR statistics enabled o Loading network interface(s) o Warning: GbE port 0 is powered off o Port 1 is connected to Linux netdevice giga p=1: mtu=1500, mac=xxxxxxxx o eth0, ifindex = 2, GbE port = 1 e1000e: Intel(R) PRO/1000 Network Driver - 1.9.5-k e1000e: Copyright(c) 1999 - 2012 Intel Corporation. bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) sky2: driver version 1.28 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_marvell ehci_marvell.0: Marvell Orion EHCI ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1 ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100 ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ehci_marvell ehci_marvell.1: Marvell Orion EHCI ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2 ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100 ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected xhci_hcd 0000:01:01.0: xHCI Host Controller xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 3 xhci_hcd 0000:01:01.0: irq 62, io mem 0xe2000000 xhci_hcd 0000:01:01.0: Failed to enable MSI-X xhci_hcd 0000:01:01.0: failed to allocate MSI entry ata2: SATA link down (SStatus 0 SControl 300) xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected xhci_hcd 0000:01:01.0: xHCI Host Controller xhci_hcd 0000:01:01.0: new USB bus registered, assigned bus number 4 xHCI xhci_add_endpoint called for root hub xHCI xhci_check_bandwidth called for root hub hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected usbcore: registered new interface driver usblp Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-sddr09 ata3: SATA link down (SStatus 0 SControl F300) usbcore: registered new interface driver ums-sddr55 i2c /dev entries driver rtc-isl12057 0-0068: chip found, driver version 0.1 rtc-isl12057 0-0068: rtc core: registered rtc-isl12057 as rtc0 rtc-isl12057 0-0068: rtc power failure detected, please set clock. 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.20.0-ioctl (2011-02-02) initialised: dm-devel@redhat.com cpuidle: using governor ladder cpuidle: using governor menu Registered led device: backup Registered led device: SATA1_PRESENT Registered led device: SATA2_PRESENT Registered led device: power usbcore: registered new interface driver usbhid usbhid: USB HID core driver IPv4 over IPv4 tunneling driver ip_tables: (C) 2000-2006 Netfilter Core Team TCP cubic registered NET: Registered protocol family 10 ip6_tables: (C) 2000-2006 Netfilter Core Team NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Registering the dns_resolver key type VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6 HDD_pwrctl_init SATA1 is detected. SATA2 is not detected. Request the irq HDDpwrctrl success. Just power off HDD(2). ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) ata1.00: ATA-9: WDC WD30EFRX-68AX9N0, 80.00A80, max UDMA/133 ata1.00: 5860533168 sectors, multi 0: LBA48 NCQ (depth 31/32), AA ata1.00: configured for UDMA/133 scsi 0:0:0:0: Direct-Access ATA WDC WD30EFRX-68A 80.0 PQ: 0 ANSI: 5 sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB) sd 0:0:0:0: [sda] 4096-byte physical blocks sd 0:0:0:0: [sda] Write Protect is off sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00 sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA rtc-isl12057 0-0068: setting system clock to 2013-06-14 19:27:54 UTC (1371238074) sda: sda1 sd 0:0:0:0: [sda] Attached SCSI disk usb 3-2: new low speed USB device number 2 using xhci_hcd usb 3-2: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes ata4: SATA link down (SStatus 0 SControl F300) Freeing init memory: 172K vpd: module license 'Proprietary' taints kernel. Disabling lock debugging due to kernel taint ReadyNAS VPD device driver init... pool #1: pkt_size=1536, buf_size=1632 - 2048 of 2048 buffers added eth0: link up eth0: started generic-usb 0003:051D:0002.0001: hiddev0: USB HID v1.10 Device [APC Back-UPS ES 700G FW:871.O2 .I USB FW:O2 ] on usb-0000:01:01.0-2/input0 UBI: attaching mtd4 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 126976 bytes UBI: smallest flash I/O unit: 2048 UBI: VID header offset: 2048 (aligned 2048) UBI: data offset: 4096 UBI: max. sequence number: 792 UBI: attached mtd4 to ubi0 UBI: MTD device name: "ubi" UBI: MTD device size: 116 MiB UBI: number of good PEBs: 920 UBI: number of bad PEBs: 8 UBI: number of corrupted PEBs: 0 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 1 UBI: available PEBs: 0 UBI: total number of reserved PEBs: 920 UBI: number of PEBs reserved for bad PEB handling: 9 UBI: max/mean erase counter: 2/1 UBI: image sequence number: -1920867606 UBI: background thread "ubi_bgt0d" started, PID 605 UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: file system size: 113897472 bytes (111228 KiB, 108 MiB, 897 LEBs) UBIFS: journal size: 5713920 bytes (5580 KiB, 5 MiB, 45 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: lzo UBIFS: reserved for root: 4952683 bytes (4836 KiB) UBIFS: un-mount UBI device 0, volume 0 eth0: no IPv6 routers present
--Ulf 21:42, 14. Jun. 2013 (CEST)