Netgear ReadyNAS NV+に関するページです。

ReadyNAS NV+とは

元々はInfrant社の製品で、後にNetgearに買収されたNAS。最大4台のSATAドライブを内蔵可能。安価な割に、しっかりした製品という印象。ただし、電源が壊れやすいとの情報もあり。

ブラウザを使った管理

https://ReadyNAS NV+のIPアドレス/admin
にユーザ admin でアクセスする。初期パスワードは、netgear1。

Firmware のアップグレード

Release 版はこちらから、ベータ版はこちらからダウンロードする。なお、Firmwareのアップグレードに用いるのは、"RAIDiator-*" という名前のファイルである。

ちなみに、"RAIDar-*" の方は、ネットワーク上にある ReadyNAS 装置を発見して、Webベースの設定ファイルを起動するユーティリティである。(RAIDar is used to discover ReadyNAS devices on the network and start the ReadyNAS web-based configuration utility.)

Addons のインストール

ReadyNAS に Add-on をインストールする : NETGEAR Japan ReadyNAS Community

SSH でのログインを可能にする。

EnableRootSSH Add-onを Netgearのサイトからダウンロードして PC に保存しておく。NV+ は CPU が SPARC 系なので、間違えて x86 用をダウンロードしないように気をつける。

公式ページによると、
説明: このAddonをインストールすると、ユーザがReadyNASにSSHを使用してアクセスすることができるようになります。インストールすると、rootアカウントのパスワードが管理者(admin)のパスワードと同じに設定されます。各種のSSHクライアントを用いてNASにログインできます。
注意: このAddonをインストールした場合、サポートを拒否する場合があります。

ブラウザで FrontViewアドバンストコントロールを開き、「システム」→「アップグレード」→「ローカル」へと移動し、「ファイルの選択」で先ほどダウンロードした EnableRootSSH_1.0.bin を選択する。

ssh01.jpg

次に、「アップロードファイルベリファイする」をクリックして、上で指定したファイルが正しいファイルかどうか確認する。

ssh02-1.jpg

確認用のウィンドウがポップアップしてくるので、OKをクリックしてファイルのアップロードと検証作業を続ける。

ssh03-1.jpg

ファイルが正しいことが分かったら、「システムアップデートの実行」ボタンをクリックして Add-on をインストールする。

ssh04-1.jpg

インストールが終了すると、再起動するよう促されるので

ssh05-1.jpg

指示に従って再起動を指定する。

ssh06-1.jpg

再起動すると、SSHが有効になったと表示される。

ssh07-1.jpg

ただし、この段階では root 以外のユーザはログインシェルが /bin/false になっており、root 以外のユーザはログインできない。

# cat /etc/passwd | grep hogehoge
hogehoge:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/:1002:100:yyyyy@gmail.com:/c/home/hogehoge:/bin/false

そこで、一旦 root でログインし、sshを許可するユーザのログインシェルを /bin/bash に変更する必要がある。

# chsh hogehoge
Changing the login shell for hogehoge
Enter the new value, or press return for the default
        Login Shell [/bin/false]: /bin/bash
# cat /etc/passwd | grep hogehoge
hogehoge:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/:1002:100:yyyyy@gmail.com:/c/home/hogehoge:/bin/bash

指定したユーザ名で ssh でログインできることを確認する。

sudo を使いたい場合は、ユーザアカウントを admin グループに登録し、/etc/sudoers を編集して admin グループに所属するユーザに root 権限を与える。ReadyNAS NV+ には visudo コマンドが含まれていないので、root ユーザ権限で vi コマンドを使って /etc/sudoers ファイルに以下の内容を追加する。

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

しかし、rootでのログインを許可するとセキュリティが甘くなるので、/etc/ssh/sshd_config ファイルを以下のように編集し、root でのログインを禁止すればよい。

PermitRootLogin yes		→PermitRootLogin no

sshd を再起動すると、DSAのホストキーがないと怒られるが気にしない。

# /etc/init.d/ssh restart
Could not load host key: /etc/ssh/ssh_host_dsa_key
Restarting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_dsa_key
.

参考:標準状態における /etc/ssh/sshd_config

# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile     %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes

システム関連の情報

SSH でログインして調べた内容を以下に列記しておく。

kernel

# uname -a
Linux NaraNAS 2.6.17.14ReadyNAS #1 Thu Sep 1 17:44:33 PDT 2011 padre unknown

パーティション

# &color(blue)8{df};
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hdc1              2031872    283648   1748224  14% /
tmpfs                       16         0        16   0% /USB
/dev/c/c             5802383648    558704 5801824944   1% /c

/etc/group

root:*:0:
daemon:*:1:
bin:*:2:
sys:*:3:
adm:*:4:
tty:*:5:
disk:*:6:
lp:*:7:lp
mail:*:8:
kmem:*:15:
sudo:*:27:
www-data:*:33:
shadow:*:42:
utmp:!:43:telnetd
telnetd:x:96:
ftp:x:97:
admin:x:98:
partner:x:99:
users:*:100:
nogroup:*:65534:

/etc/sudoers

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
admin   ALL = NOPASSWD : /frontview/bin/empty_spool, /sbin/tune2fs,
 /usr/bin/net, /sbin/mdconfig, /frontview/bin/share_snapshot, /sbin/lvdisplay,
 /usr/sbin/repquota, /sbin/iwconfig, /usr/sbin/ethtool, /usr/sbin/smartctl,
 /bin/cat, /sbin/dumpe2fs, /bin/mount, /bin/umount, /usr/bin/killall,
 /frontview/bin/check_dir_compatibility.pl, /usr/bin/stat,
 /sbin/hdparm
diag    ALL = NOPASSWD : /frontview/bin/diag_menu

dmesg 出力

Linux version 2.6.17.14ReadyNAS (root@calzone) (gcc version 3.3.5 (Infrant 3.3.5-1)) #1 Thu Sep 1 17:44:33 PDT 2011
You system is PZERO.
ASIC=IT3107
On node 0 totalpages: 65536
  Normal zone: 64512 pages, LIFO batch:7
  DMA zone: 1024 pages, LIFO batch:0
zlist 0 802fb16c
zone 802faf24, name Normal
zlist 1 802fb180
zone 802facdc, name DMA
zlist 2 802fb194
zone 802faf24, name Normal
Built 1 zonelists
Kernel command line: root=/dev/ram0 init=/linuxrc rw raid=noautodetect profile=2
kernel profiling enabled (shift: 2)
PID hash table entries: 4096 (order: 12, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 5, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 4, 262144 bytes)
Memory: 1010048k/1048576k available (2624k kernel code, 38128k reserved, 672k data, 112k init, 0k highmem)
init_mm.pgd bf0ff000
Calibrating delay loop... 186.36 BogoMIPS (lpj=931840)
Mount-cache hash table entries: 2048
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 16384k freed
NET: Registered protocol family 16
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 8192 (order: 1, 32768 bytes)
TCP established hash table entries: 32768 (order: 3, 131072 bytes)
TCP bind hash table entries: 16384 (order: 2, 65536 bytes)
TCP: Hash tables configured (established 32768 bind 16384)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1070280003.190:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 4096 (order 0, 16384 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
xor engine =>  SPARC.
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
Serial: Padre driver $Revision: 1.1.1.1 $ 2 ports
ttyS0 at I/O 0x0 (irq = 7) is a padre uart
ttyS1 at I/O 0x0 (irq = 8) is a padre uart
oprofile: using timer interrupt.
ip_conntrack version 2.4 (8192 buckets, 65536 max) - 204 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
md: Skipping autodetection of RAID arrays. (raid=noautodetect)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 112k freed
padre_i2c: module license 'Infrant Technologies, Inc.' taints kernel.
padre_i2c: no version for "udiv" found: kernel tainted.
TWSI Initialize
Padre NSPIO setup: 80363394... No argv, go to default.
raid5: xor select to PADRE_RXA.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
padre chip scan,token=1
Scan the padre NSP IO hardware.
Need memory for RTEngine 63680
PIO mode on chan 7
DMA mode on chan 0
DMA mode on chan 1
DMA mode on chan 2
DMA mode on chan 3
Padre IDE controller, sata start:1
WD drive does not support TLER, 0, 3530
hdc: WDC WD20EARS-00MVWB0 (s/n:WD-WCAZA3244188), ATA DISK drive (ATAEXT)
WD drive does not support TLER, 1, 3530
hde: WDC WD20EARS-00MVWB0 (s/n:WD-WCAZA3261151), ATA DISK drive (ATAEXT)
WD drive does not support TLER, 2, 3530
hdg: WDC WD20EARS-00MVWB0 (s/n:WD-WCAZA3273809), ATA DISK drive (ATAEXT)
WD drive does not support TLER, 3, 3530
hdi: WDC WD20EARS-00MVWB0 (s/n:WD-WCAZA3273769), ATA DISK drive (ATAEXT)
ide1 at 0x200-0x207,0x208 on irq 32
ide2 at 0x280-0x287,0x288 on irq 33
ide3 at 0x300-0x307,0x308 on irq 34
ide4 at 0x380-0x387,0x388 on irq 35
Update NSPIO settings 80363394.
hdc: max request size: 512KiB
hdc: use capacity 3907029168 sectors (2000398 MB)
Drive support hpa, still should not change max addr.
hdc: 3907008688 sectors (2000388 MB), CHS=65535/255/63
hdc: cache flushes supported
 hdc:chn=0, statu/LP_S=0x(d0/d050)29, 16
 hdc1 hdc2 hdc3 < hdc5 >
hde: max request size: 512KiB
hde: use capacity 3907029168 sectors (2000398 MB)
Drive support hpa, still should not change max addr.
hde: 3907008688 sectors (2000388 MB), CHS=65535/255/63
hde: cache flushes supported
 hde:chn=1, statu/LP_S=0x(d0/d050)29, 16
 hde1 hde2 hde3 < hde5 >
hdg: max request size: 512KiB
hdg: use capacity 3907029168 sectors (2000398 MB)
Drive support hpa, still should not change max addr.
hdg: 3907008688 sectors (2000388 MB), CHS=65535/255/63
hdg: cache flushes supported
 hdg:chn=2, statu/LP_S=0x(d0/d050)29, 16
 hdg1 hdg2 hdg3 < hdg5 >
hdi: max request size: 512KiB
hdi: use capacity 3907029168 sectors (2000398 MB)
Drive support hpa, still should not change max addr.
hdi: 3907008688 sectors (2000388 MB), CHS=65535/255/63
hdi: cache flushes supported
 hdi:chn=3, statu/LP_S=0x(d0/d050)29, 16
 unknown partition table
Link to padre IO.

RAID disks check:
ALL = 22/33/34/56/0/0/0/0, 4
IDE = 22/33/34/0/0/0/0/0, 3
MD  = 0/0/0/0/0/0/0/0, 0
RAID rule check result: 0
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
Disk protected mark = 1
x_raid_start: 1,current:0
BDL_count= 0, fw=SN04, model=
BDL_count= 1, fw=SN04, model=
GOT MEMORY FOR DJ: 128*4k
Drive hdc SB at 3907015632(-sbs) CURRENT
Drive hde SB at 3907015632(-sbs) CURRENT
Drive hdg SB at 3907015632(-sbs) CURRENT
Drive hdi SB at 3907015632(-sbs) CURRENT
x_raid_start: 1,result:0
Find PHY: 0
Lookup PHY ID: 0x000f, 0x01
P0 GPIO initialization... BOARDID=1
Boot type/reason: normal/2/0
Adjusting fan pwm........................
Found LM75 at 0x48
NAND device: Manufacture ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
size of table 4096
table is there 0x8
total bad block 0
Total bad block number 0
retlen = 0x0200
VPD checksum = 0x69cf
ECC is ON
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00100000 : "P0 flash partition 1"
0x00100000-0x04000000 : "P0 flash partition 2"
NEON flash: probing 8-bit flash bus
CFI: Found no NEON flash device at location zero
NEON flash: unknown flash device, mfr id 0x1, dev id 0x0
NEON flash: Found no Atmel device at location zero
This board is not supported.
You can use parm_extport=X module parm.
ID=6013 on i2c_addr=1f
GPIO2X=7c
lcd:driver loaded
X_RAID_START
startstop  XRAID command = start, flash_cache=0
X_RAID clean shutdown indicator: 0x0.
0 4 4 4 4 0 0 0
0 1 1 1
1 0 1 1
1 1 0 1
1 1 1 0
Update time for sb 1 = 4f8fc9fd.
Update time for sb 2 = 4f8fc9fd.
Update time for sb 3 = 4f8fc9fd.
Update time for sb 4 = 4f8fc9fd.
recent_ID = 1, select_ID=1, most_ID=4 right_mac=4
Selected sb 1, ctime=4f8fc9fd, id=a201b0c6.
Use this image: 1

VERSION/ID    : SB=(V:0.1.0) ID=<a201b0c6.00000000.00000000.00000000> CT:4f8fc9fd
RAID_INFO     : DISKS(TOTAL:4 RAID:4 PARITY:3 ONL:4 WRK:4 FAILED:0 SPARE:0 BASE:0)
                SZ:3907008688 UT:00000000 STATE:0 LUNS:2 EXTCMD:1 LSZ:3907008686
LOGICAL_DRIVE : 0: B:0000000032 E:0004096000 R:1 O:1 I:1:000000000 DM:f
LOGICAL_DRIVE : 1: B:0004096032 E:3902912686 R:4 O:1 I:1:000000000 DM:f
PHYSICAL_DRIVE: 0: DISK<N:0/1,hdc(22,0),ID:0,PT:1,SZ:3907008688,ST: B:online>
PHYSICAL_DRIVE: 1: DISK<N:1/2,hde(33,0),ID:1,PT:1,SZ:3907008688,ST:  :online>
PHYSICAL_DRIVE: 2: DISK<N:2/3,hdg(34,0),ID:2,PT:1,SZ:3907008688,ST:  :online>
PHYSICAL_DRIVE: 3: DISK<N:3/4,hdi(56,0),ID:3,PT:1,SZ:3907008688,ST:P :online>
CURRENT_DRIVE : DISK<N:0/1,XXX(22,0),ID:0,PT:1,SZ:3907008688,ST: B:online>
Need to do drives searching.
Find p d at 3, chn 3
Total=4; raid=4; ready=0; work=4; failed=0
Check degraded mode, start_pos=1
No drive missing, X_RAID run in opt mode.
Change X_RAID running mode from 0 to 1
::::Update backup SB.
X_RAID: recovery thread got woken up ...
New = 3, source drives = f, current/active=4/4
:<6> hdc:chn=0, statu/LP_S=0x(d0/d050)29, 16
 hdc1 hdc2 hdc3 < hdc5 >
:<6> hde:chn=1, statu/LP_S=0x(d0/d050)29, 16
 hde1 hde2 hde3 < hde5 >
:<6> hdg:chn=2, statu/LP_S=0x(d0/d050)29, 16
 hdg1 hdg2 hdg3 < hdg5 >
:<6> hdi:chn=3, statu/LP_S=0x(d0/d050)29, 16
 unknown partition table
chn=0, statu/LP_S=0x(d0/d050)29, 32
chn=0, statu/LP_S=0x(d0/d050)29, 32
chn=1, statu/LP_S=0x(d0/d050)29, 32
chn=2, statu/LP_S=0x(d0/d050)29, 32
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdc1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
phy_irq 8200 repeated 1
linked, 1000mbps mode
::hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hde: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdg: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdg: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdi: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdi: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
::hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hde: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdg: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdg: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdi: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdi: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hde: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
::hdg: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdg: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdi: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdi: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdc: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdc: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hde: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hde: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
hdg: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdg: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
::hdi: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hdi: drive_cmd: error=0x04 { DriveStatusError }
ide: failed opcode was: 0xef
chn=0, statu/LP_S=0x(d1/d150)29, 32
chn=0, statu/LP_S=0x(d0/d050)29, 32
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdc1, internal journal
EXT3-fs: mounted filesystem with journal data mode.
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
Adding 255968k swap on /dev/hdc2.  Priority:0 extents:1 across:255968k
chn=1, statu/LP_S=0x(d0/d050)29, 32
Adding 255968k swap on /dev/hde2.  Priority:0 extents:1 across:255968k
chn=2, statu/LP_S=0x(d0/d050)29, 32
Adding 255968k swap on /dev/hdg2.  Priority:0 extents:1 across:255968k
enable_irq(11) unbalanced from f805459c
:<6>hdc: cache flushes supported
:<6>hde: cache flushes supported
:<6>hdg: cache flushes supported
:<6>hdi: cache flushes supported
:<6> hdi: unknown partition table
chn=1, statu/LP_S=0x(d0/d050)29, 8
chn=2, statu/LP_S=0x(d0/d050)29, 8
::::::::::::::::<6>kjournald starting.  Commit interval 5 seconds
EXT3 FS on dm-0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
::::::chn=3, statu/LP_S=0x(d0/d050)29, 16
::chn=0, statu/LP_S=0x(d0/d050)29, 32
:<6>ehci_hcd 0000:00:17.2: EHCI Host Controller
ehci_hcd 0000:00:17.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:17.2: irq 27, io mem 0x5c010000
ehci_hcd 0000:00:17.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
PCI: VIA IRQ fixup for 0000:00:17.0, from 0 to 11
uhci_hcd 0000:00:17.0: UHCI Host Controller
uhci_hcd 0000:00:17.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:17.0: irq 27, io base 0x5c001000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: VIA IRQ fixup for 0000:00:17.1, from 0 to 11
uhci_hcd 0000:00:17.1: UHCI Host Controller
uhci_hcd 0000:00:17.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:17.1: irq 27, io base 0x5c001020
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
:::::::::::

NFSを用いたマウント

ReadyNAS NV+ では、/backup (実体は /c/backup) をエクスポートしている。

  • /etc/exports
    "/backup" *(insecure,insecure_locks,rw,sync)

また、/c/backup 以下のディレクトリの所有者は backup(uid=1001):nogroup(gid=65534)となっている。

readynas:~# ls -al /c/backup/
total 12
drwxrwxrwx    3 admin    admin        4096  1月 26  2008 .
drwxrwxrwx    6 root     root         4096  4月  6 12:44 ..
drwxr-xr-x    9 backup   nogroup      4096  5月  2  2008 hoge

dmesg の出力

# dmesg
Linux version 2.6.17.8ReadyNAS (root@calzone) (gcc version 3.3.5 (Infrant 3.3.5-1)) #1 Fri Sep 19 15:04:06 PDT 2008
You system is PZERO.
ASIC=IT3107
On node 0 totalpages: 16384
  Normal zone: 15360 pages, LIFO batch:3
  DMA zone: 1024 pages, LIFO batch:0
zlist 0 802ee15c
zone 802edf14, name Normal
zlist 1 802ee170
zone 802edccc, name DMA
zlist 2 802ee184
zone 802edf14, name Normal
Built 1 zonelists
Kernel command line: root=/dev/ram0 init=/linuxrc rw raid=noautodetect profile=2
kernel profiling enabled (shift: 2)
PID hash table entries: 2048 (order: 11, 8192 bytes)
Dentry cache hash table entries: 32768 (order: 3, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 2, 65536 bytes)
Memory: 226176k/262144k available (2592k kernel code, 35856k reserved, 656k data, 96k init, 0k highmem)
init_mm.pgd 8f0ff000
Calibrating delay loop... 186.36 BogoMIPS (lpj=931840)
Mount-cache hash table entries: 2048
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 16384k freed
NET: Registered protocol family 16
usbcore: registered new driver usbfs
usbcore: registered new driver hub
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: -1, 8192 bytes)
TCP established hash table entries: 8192 (order: 1, 32768 bytes)
TCP bind hash table entries: 4096 (order: 0, 16384 bytes)
TCP: Hash tables configured (established 8192 bind 4096)
TCP reno registered
audit: initializing netlink socket (disabled)
audit(1070280003.120:1): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 4096 (order 0, 16384 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
nbd: registered device at major 43
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
xor engine =>  SPARC.
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
Serial: Padre driver $Revision: 1.2 $ 2 ports
ttyS0 at I/O 0x0 (irq = 7) is a padre uart
ttyS1 at I/O 0x0 (irq = 8) is a padre uart
oprofile: using timer interrupt.
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 5
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
md: Skipping autodetection of RAID arrays. (raid=noautodetect)
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 96k freed
padre_i2c: module license 'Infrant Technologies, Inc.' taints kernel.
padre_i2c: no version for "udiv" found: kernel tainted.
TWSI Initialize
Padre NSPIO setup: 8034f394... No argv, go to default.
raid5: xor select to PADRE_RXA.
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
padre chip scan,token=1
Scan the padre NSP IO hardware.
Need memory for RTEngine 63680
PIO mode on chan 7
DMA mode on chan 0
DMA mode on chan 1
DMA mode on chan 2
DMA mode on chan 3
Padre IDE controller, sata start:1
hdc: ST3750330NS (s/n:3QK04JXL), ATA DISK drive (ATAEXT)
hde: ST3750330NS (s/n:3QK044SS), ATA DISK drive (ATAEXT)
hdg: ST3750330NS (s/n:3QK04EZV), ATA DISK drive (ATAEXT)
hdi: ST3750330NS (s/n:3QK03ZSC), ATA DISK drive (ATAEXT)
ide1 at 0x200-0x207,0x208 on irq 32
ide2 at 0x280-0x287,0x288 on irq 33
ide3 at 0x300-0x307,0x308 on irq 34
ide4 at 0x380-0x387,0x388 on irq 35
Update NSPIO settings 8034f394.
hdc: max request size: 512KiB
hdc: use capacity 1465149168 sectors (750156 MB)
Drive support hpa, still should not change max addr.
hdc: 1465128688 sectors (750145 MB), CHS=65535/255/63
hdc: cache flushes supported
 hdc: hdc1 hdc2 hdc3 < hdc5 >
hde: max request size: 512KiB
hde: use capacity 1465149168 sectors (750156 MB)
Drive support hpa, still should not change max addr.
hde: 1465128688 sectors (750145 MB), CHS=65535/255/63
hde: cache flushes supported
 hde: hde1 hde2 hde3 < hde5 >
hdg: max request size: 512KiB
hdg: use capacity 1465149168 sectors (750156 MB)
Drive support hpa, still should not change max addr.
hdg: 1465128688 sectors (750145 MB), CHS=65535/255/63
hdg: cache flushes supported
 hdg: hdg1 hdg2 hdg3 < hdg5 >
hdi: max request size: 512KiB
hdi: use capacity 1465149168 sectors (750156 MB)
Drive support hpa, still should not change max addr.
hdi: 1465128688 sectors (750145 MB), CHS=65535/255/63
hdi: cache flushes supported
 hdi: unknown partition table
Link to padre IO.

RAID disks check:
ALL = 22/33/34/56/0/0/0/0, 4
IDE = 22/33/34/0/0/0/0/0, 3
MD  = 0/0/0/0/0/0/0/0, 0
RAID rule check result: 0
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
Disk protected mark = 1
x_raid_start: 1,current:0
BDL_count= 0, fw=SN04, model=
BDL_count= 1, fw=SN04, model=
GOT MEMORY FOR DJ: 128*4k
Drive hdc SB at 1465135632(-sbs) CURRENT
Drive hde SB at 1465135632(-sbs) CURRENT
Drive hdg SB at 1465135632(-sbs) CURRENT
Drive hdi SB at 1465135632(-sbs) CURRENT
x_raid_start: 1,result:0
Find PHY: 0
Lookup PHY ID: 0x000f, 0x01
P0 GPIO initialization... BOARDID=1
Boot type/reason: normal/2/0
Adjusting fan pwm........................
Found LM75 at 0x48
NAND device: Manufacture ID: 0xad, Chip ID: 0x76 (Hynix NAND 64MiB 3,3V 8-bit)
size of table 4096
table is there 0x8
total bad block 0
Total bad block number 0
retlen = 0x0200
VPD checksum = 0x69cf
ECC is ON
Creating 2 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00100000 : "P0 flash partition 1"
0x00100000-0x04000000 : "P0 flash partition 2"
NEON flash: probing 8-bit flash bus
CFI: Found no NEON flash device at location zero
NEON flash: unknown flash device, mfr id 0x1, dev id 0x0
NEON flash: Found no Atmel device at location zero
This board is not supported.
You can use parm_extport=X module parm.
ID=6013 on i2c_addr=1f
GPIO2X=7c
lcd:driver loaded
X_RAID_START
startstop  XRAID command = start, flash_cache=0
X_RAID clean shutdown indicator: 0x0.
0 4 4 4 4 0 0 0
0 1 1 1
1 0 1 1
1 1 0 1
1 1 1 0
Update time for sb 1 = 47998df5.
Update time for sb 2 = 47998df5.
Update time for sb 3 = 47998df5.
Update time for sb 4 = 47998df5.
recent_ID = 1, select_ID=1, most_ID=4 right_mac=4
Selected sb 1, ctime=47998df5, id=a201b0c6.
Use this image: 1

VERSION/ID    : SB=(V:0.1.0) ID=<a201b0c6.00000000.00000000.00000000> CT:47998df5
RAID_INFO     : DISKS(TOTAL:4 RAID:4 PARITY:3 ONL:4 WRK:4 FAILED:0 SPARE:0 BASE:0)
                SZ:1465128688 UT:00000000 STATE:0 LUNS:2 EXTCMD:1 LSZ:1465128686
LOGICAL_DRIVE : 0: B:0000000002 E:0004096000 R:1 O:1 I:1:000000000 DM:f
LOGICAL_DRIVE : 1: B:0004096002 E:1461032686 R:4 O:1 I:1:000000000 DM:f
PHYSICAL_DRIVE: 0: DISK<N:0/1,hdc(22,0),ID:0,PT:1,SZ:1465128688,ST: B:online>
PHYSICAL_DRIVE: 1: DISK<N:1/2,hde(33,0),ID:1,PT:1,SZ:1465128688,ST:  :online>
PHYSICAL_DRIVE: 2: DISK<N:2/3,hdg(34,0),ID:2,PT:1,SZ:1465128688,ST:  :online>
PHYSICAL_DRIVE: 3: DISK<N:3/4,hdi(56,0),ID:3,PT:1,SZ:1465128688,ST:P :online>
CURRENT_DRIVE : DISK<N:0/1,XXX(22,0),ID:0,PT:1,SZ:1465128688,ST: B:online>
Need to do drives searching.
Find p d at 3, chn 3
Total=4; raid=4; ready=0; work=4; failed=0
Check degraded mode, start_pos=1
No drive missing, X_RAID run in opt mode.
Change X_RAID running mode from 0 to 1
Update backup SB.
X_RAID: recovery thread got woken up ...
New = 3, source drives = f, current/active=4/4
 hdc: hdc1 hdc2 hdc3 < hdc5 >
 hde: hde1 hde2 hde3 < hde5 >
 hdg: hdg1 hdg2 hdg3 < hdg5 >
 hdi: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdc1, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
linked
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hdc1, internal journal
EXT3-fs: mounted filesystem with journal data mode.
Adding 255968k swap on /dev/hdc2.  Priority:0 extents:1 across:255968k
Adding 255968k swap on /dev/hde2.  Priority:0 extents:1 across:255968k
Adding 255968k swap on /dev/hdg2.  Priority:0 extents:1 across:255968k
enable_irq(11) unbalanced from f803059c
hdc: cache flushes supported
hde: cache flushes supported
hdg: cache flushes supported
hdi: cache flushes supported
 hdi: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on dm-0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
chn=3, statu/LP_S=0x(d0/d050)29, 16
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: starting 90-second grace period
GMAC: 37640300; GMT: 00000000; DMA RX: 0000c009; DMA TX: 00008009
linked
chn=0, statu/LP_S=0x(d0/d050)29, 32
ehci_hcd 0000:00:17.2: EHCI Host Controller
ehci_hcd 0000:00:17.2: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:17.2: irq 27, io mem 0x5c010000
ehci_hcd 0000:00:17.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 4 ports detected
USB Universal Host Controller Interface driver v3.0
PCI: VIA IRQ fixup for 0000:00:17.0, from 0 to 11
uhci_hcd 0000:00:17.0: UHCI Host Controller
uhci_hcd 0000:00:17.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:17.0: irq 27, io base 0x5c001000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: VIA IRQ fixup for 0000:00:17.1, from 0 to 11
uhci_hcd 0000:00:17.1: UHCI Host Controller
uhci_hcd 0000:00:17.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:17.1: irq 27, io base 0x5c001020
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
readynas:~# 

電源のピンアサイン

どうも各所で電源が壊れたという情報を見かける。ReadyNAS NV+ の電源はほとんどATX電源を同じ信号配列だが、一部異なる部分がある。以下の情報を元にATX電源を改造すれば使えると思うが、あくまでも自己責任でってことで。

ReadyNASnv+PS.png (下記リンク先より転載)

AT-PS.jpg (参考:PC電源のピンアサイン)

【X-RAID】 ReadyNAS 総合スレPart5 【RAIDiator】

348 :不明なデバイスさん[sage]:2008/12/05(金) 19:26:35 ID:J4TZRDf1
    >>346
    公式以外にも載せ替えできたっていうレスを見たような気もするが。

    電源については、
    ttp://www.readynas.com/forum/viewtopic.php?f=42&t=20000

    とりあえずATX20ピンの-12Vと-5Vを引っこ抜いてNV+に供給されないようにすれば、
    (+12Vの供給が足りる電源なら)動くと思うが、適当に言ってるので間違ってるかもしれない。
    自己責任でよろしく。

    足りない場合は、引っこ抜いたところに+12Vを突っ込めばいいと思うが、自己責任で。 

思い切ってACアダプタ化している人もいる。ReadyNAS NV+ のACアダプタ化 - yellowback's blog


添付ファイル: filessh07-1.jpg 587件 [詳細] filessh06-1.jpg 553件 [詳細] filessh05-1.jpg 592件 [詳細] filessh04-1.jpg 559件 [詳細] filessh03-1.jpg 508件 [詳細] filessh02-1.jpg 491件 [詳細] filessh01.jpg 669件 [詳細] fileAT-PS.jpg 603件 [詳細] fileReadyNASnv+PS.png 747件 [詳細]

トップ   差分 バックアップ リロード   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2012-04-21 (土) 18:01:37 (2612d)