Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi, Guys,
It has been quite a while since I have been on here. My first DNS323 is still going strong, but my backup second DNS323 is now playing up and looking for some advice.
Both have f/w version 1.08. I've not really touched them for ages. the second has been off for more than a year. I was using it only to back up my initial DNS323. Both are/were set as raid 1.
This weekend I decided to rsync my data from DNS1 to DNS2. DNS1 has 2 500GB drives, DNS2 has 2 2TB drives.
I did receive a message disk full from DNS2, and that is probably because I rync'd to the wrong folder.
I tried to shut the DNS2 down, with the switch on the front, but it would not shutdown. I'd killed the rsync processes on DNS2 before trying this.
I can still telnet into DNS2, but cannot access from windows. Win7 sees DNS2 but the diagnostic says refused connection.
As this is just a backup, I decided that I would rebuid the array and format the disks, but get error Hard Drive(s) Formatting Failure. (Error Code:107). and the data remains intact.
I am not that conversant with Linux, but am happy with command line options if given exactly what to do.
So now I am either trying to start all over as if I have just bought a new unit with new disks, or correct what is there and remove errant files.
I have fun plug on both units, but is has been ages since I installed it.
Can someone please supply some ideas on how to get the DNS2 unit back up and running. The unit is at fault as I tested mapping the unit from another computer and got the 'network path cannot be found'
DNS2 unit has blue network light but pink disk lights. Both 2TB disks are recognised in the GUI.
TIA
Offline
You can login and run
df cat /proc/mounts cat /proc/mdstat dmesg
The first command will show the usage of all devices. The second the mounts, the 3th the status of the raid array, and the 4th the kernel logs.
Offline
Thank you Mijzelf,
Here are the results of those commands. Can you see anything that stands out as causing the problem.?
TIA
df
Filesystem 1k-blocks Used Available Use% Mounted on rootfs 9911 8866 533 94% / /dev/root 9911 8866 533 94% / /dev/loop0 5760 5760 0 100% /sys/crfs /dev/md0 1920786672 223133188 1697653484 12% /mnt/HD_a2 /dev/sda4 497861 2720 495141 1% /mnt/HD_a4 /dev/sdb4 497861 2326 495535 0% /mnt/HD_b4
cat /proc/mounts
rootfs / rootfs rw 0 0 /dev/root / ext2 rw 0 0 proc /proc proc rw,nodiratime 0 0 /dev/loop0 /sys/crfs squashfs ro 0 0 /dev/md0 /mnt/HD_a2 ext2 rw 0 0 /dev/sda4 /mnt/HD_a4 ext2 rw 0 0 /dev/sdb4 /mnt/HD_b4 ext2 rw 0 0 none /proc/bus/usb usbfs rw 0 0 devpts /dev/pts devpts rw 0 0
cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] md0 : active raid1 sda2[0] sdb2[1] 1951407424 blocks [2/2] [UU] unused devices: <none>
dmesg
Linux version 2.6.12.6-arm1 (tim@SWTEST2) (gcc version 3.3.3) #32 Wed Jun 24 15: 19:48 CST 2009 CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ) CPU0: D VIVT write-back cache CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets Machine: MV-88fxx81 Using UBoot passing parameters structure Sys Clk = 166000000, Tclk = 166000000 Memory policy: ECC disabled, Data cache writeback On node 0 totalpages: 16384 DMA zone: 16384 pages, LIFO batch:7 Normal zone: 0 pages, LIFO batch:1 HighMem zone: 0 pages, LIFO batch:1 Built 1 zonelists Kernel command line: root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none PID hash table entries: 512 (order: 9, 8192 bytes) Console: colour dummy device 80x30 Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory: 64MB 0MB 0MB 0MB = 64MB total Memory: 55296KB available (2596K code, 463K data, 112K init) Calibrating delay loop... 331.77 BogoMIPS (lpj=1658880) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok checking if image is initramfs...it isn't (no cpio magic); looks like an initrd Freeing initrd memory: 6323K NET: Registered protocol family 16 Marvell Development Board (LSP Version 1.7.6_NAS)-- RD-88F5182-NAS-2 Detected Tclk 166000000 and SysClk 166000000 Marvell USB EHCI Host controller #0: c0e49a40 Marvell USB EHCI Host controller #1: c0e49bc0 pexBarOverlapDetect: winNum 2 overlap current 0 mvPexInit:Warning :Bar 2 size is illigal it will be disabled please check Pex and CPU windows configuration PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub cesadev_init(c0012498) Fast Floating Point Emulator V0.9 (c) Peter Teichmann. inotify device minor=63 VFS: Disk quotas dquot_6.5.1 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 3.3 (2007/10/31) Phillip Lougher Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Initializing Cryptographic API Serial: 8250/16550 driver $Revision: 1.1.1.1 $ 4 ports, IRQ sharing disabled ttyS0 at MMIO 0x0 (irq = 3) is a 16550A io scheduler noop registered io scheduler deadline registered RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize loop: loaded (max 8 devices) Marvell Gigabit Ethernet Driver 'egiga': o Ethernet descriptors in DRAM o DRAM SW cache-coherency o Checksum offload enabled o Loading network interface 'egiga0' Intergrated Sata device found scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter Vendor: Hitachi Model: HDS5C3020ALA632 Rev: ML6O Type: Direct-Access ANSI SCSI revision: 03 Vendor: Hitachi Model: HDS5C3020ALA632 Rev: ML6O Type: Direct-Access ANSI SCSI revision: 03 Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 0 Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0, type 0 physmap flash device: 800000 at ff800000 phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using physmap partition definition Creating 5 MTD partitions on "phys_mapped_flash": 0x00000000-0x00010000 : "MTD1" 0x00010000-0x00020000 : "MTD2" 0x00020000-0x001a0000 : "Linux Kernel" 0x001a0000-0x007d0000 : "File System" 0x007d0000-0x00800000 : "u-boot" ehci_platform ehci_platform.20865: EHCI Host Controller ehci_platform ehci_platform.20865: new USB bus registered, assigned bus number 1 ehci_platform ehci_platform.20865: irq 17, io mem 0x00000000 ehci_platform ehci_platform.20865: park 0 ehci_platform ehci_platform.20865: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ehci_platform ehci_platform.86401: EHCI Host Controller ehci_platform ehci_platform.86401: new USB bus registered, assigned bus number 2 ehci_platform ehci_platform.86401: irq 12, io mem 0x00000000 ehci_platform ehci_platform.86401: park 0 ehci_platform ehci_platform.86401: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) mice: PS/2 mouse device common for all mice md: linear personality registered as nr 1 md: raid0 personality registered as nr 2 md: raid1 personality registered as nr 3 md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27 device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com NET: Registered protocol family 2 IP: routing cache hash table of 512 buckets, 4Kbytes TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) NET: Registered protocol family 1 NET: Registered protocol family 17 md: Autodetecting RAID arrays. md: autorun ... md: ... autorun DONE. RAMDISK: Compressed image found at block 0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended VFS: Mounted root (ext2 filesystem). Freeing init memory: 112K SCSI device sda: 3907029168 512-byte hdwr sectors (2000399 MB) SCSI device sda: drive cache: write back SCSI device sda: 3907029168 512-byte hdwr sectors (2000399 MB) SCSI device sda: drive cache: write back sda: sda1 sda2 sda4 Attached scsi disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sdb: 3907029168 512-byte hdwr sectors (2000399 MB) SCSI device sdb: drive cache: write back SCSI device sdb: 3907029168 512-byte hdwr sectors (2000399 MB) SCSI device sdb: drive cache: write back sdb: sdb1 sdb2 sdb4 Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0 usbcore: registered new driver usblp drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver egiga0: mac address changed egiga0: link down Adding 530104k swap on /dev/sda1. Priority:-1 extents:1 Adding 530104k swap on /dev/sdb1. Priority:-2 extents:1 egiga0: link up<5>, full duplex<5>, speed 1 Gbps<5> ext3: No journal on filesystem on sda4 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended ext3: No journal on filesystem on sdb4 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended ext3: No journal on filesystem on sda2 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended ext3: No journal on filesystem on sdb2 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended md: md0 stopped. md: md1 stopped. md: md0 stopped. md: bind<sdb2> md: bind<sda2> raid1: raid set md0 active with 2 out of 2 mirrors ext3: No journal on filesystem on md0 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended ext3: No journal on filesystem on sda4 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended ext3: No journal on filesystem on sdb4 EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended md: mdadm(pid 1737) used obsolete MD ioctl, upgrade your software to use new ict ls. usbcore: deregistering driver usblp
Offline
I believe the smb is screwed somehow.?
I booted another PC with a Knoppix CD and again was able to see the device, but unable to see the shares on it.
I have simply allowed All to access Volume_1 via the GUI and then added myself as a test
[ Volume_1 ] comment = path = /mnt/HD_a2 valid users = read only = no guest ok = yes oplocks = no map archive = no [ Volume_1-1 ] comment = path = /mnt/HD_a2 valid users = paul read only = no guest ok = no oplocks = no map archive = no
Offline
Ok,
From this link http://forums.dlink.com/index.php?topic=19844.0 I discovered 'showmount -e'
On my working unit it shows
Export list for DLINK323: /mnt/HD_a2/Music 192.168.2.0/24 /mnt/HD_a4 192.168.2.0/24 /mnt/HD_b4 192.168.2.0/24 /mnt/web_page 192.168.2.0/24
on the non working unit it shows absolutely nothing.
I've attached the GUI to show they should be mapped.
Offline
When there is something wrong with the filesystem of your nas, the kernel is not aware of it. Your postings look fine.
When it's only samba, you should restart it. Unfortunately I don't know how to do that on a 323. Maybe
/etc/init.d/samba restart
BTW, have you already rebooted that nas?
Offline
I have been searching all morning and must admit I'd forgotten about the hard reset on the back of the unit, which I have just this minute done.
I now have to remember what I next need to do to get it back up an running as I have now lost the static ip address.
I had rebooted the unit several times yesterday.
Even investigating Alt-F which I have found while looking for solutions.
Offline
Windows diagnostic does not help much
'The device or resource (DLINK323A) is not set up to accept connections on port "The File and printer sharing (SMB'
I've hard booted and reset ip address etc.
There is something definitely wrong with the setup. One minute the SMB list is there with Volume_1, and then it disappears. If I restart, it appears again.
Power button is also pink.?
I was hoping to use this experience in case my main DNS323 went this way, but have not learnt much at present.
If you have no idea as what to try next, I'll give that Alt-F f/w a go.?
Offline
One minute the SMB list is there with Volume_1, and then it disappears. If I restart, it appears again.
So it seems samba crashes. You can see that by executing
netstat -ltp
It shows all listening daemons, including the ports they have open. I think smbd should have 2 ports open. If there is no smbd running, maybe you can find out why it crashes by executing it manually, without daemonizing.
smbd -F -d 3 -s /etc/samba/smb.conf
Here '3' is a debug level, and you have to check if your configuration file is indeed on that place,
Offline
Thank you Mijzelf,
I've switched it off for the night now, but will look at it again first thing in the morning.
My smb.conf is in that location.
Thanks again for all these commands to try the various options.
Offline
Results of netstat -lpt
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 localhost.localdomain:9000 0.0.0.0:* LISTEN 1963/twonkymediaser tcp 0 0 DLINK323A:9000 0.0.0.0:* LISTEN 1963/twonkymediaser tcp 0 0 0.0.0.0:http 0.0.0.0:* LISTEN 1593/webs tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1955/sshd tcp 0 0 0.0.0.0:telnet 0.0.0.0:* LISTEN 1940/telnetd
smbd -F -d 3 -s /etc/samba/smb.conf produces nothing
ps shows
PID USER COMMAND 1 0 init 2 0 [ksoftirqd/0] 3 0 [events/0] 4 0 [khelper] 5 0 [kthread] 11 0 [kblockd/0] 14 0 [khubd] 49 0 [pdflush] 50 0 [pdflush] 52 0 [aio/0] 189 0 [scsi_eh_0] 51 0 [kswapd0] 190 0 [scsi_eh_1] 200 0 [mtdblockd] 217 0 [kcryptd/0] 218 0 [kmirrord/0] 229 0 [loop0] 1329 0 xmldb -n config 1372 0 [md0_raid1] 1564 0 chkbutton 1593 0 /web/webs 1631 0 fancontrol 0 1639 0 op_server 3 3 3 1646 0 -sh 1676 0 check_daemon 1685 0 crond 1826 0 mserver 1940 0 /ffp/sbin/telnetd -l /ffp/bin/sh 1955 0 /ffp/sbin/sshd 1962 0 /mnt/HD_a2/twonky/twonkymedia 1963 0 /mnt/HD_a2/twonky/twonkymediaserver 1964 0 /mnt/HD_a2/twonky/twonkymediaserver 1965 0 /mnt/HD_a2/twonky/twonkymediaserver 1966 0 /mnt/HD_a2/twonky/twonkymediaserver 1967 0 /mnt/HD_a2/twonky/twonkymediaserver 1968 0 /mnt/HD_a2/twonky/twonkymediaserver 1969 0 /mnt/HD_a2/twonky/twonkymediaserver 1970 0 /mnt/HD_a2/twonky/twonkymediaserver 1971 0 /mnt/HD_a2/twonky/twonkymediaserver 1973 0 /mnt/HD_a2/twonky/twonkymediaserver 1974 0 /mnt/HD_a2/twonky/twonkymediaserver 1975 0 /mnt/HD_a2/twonky/twonkymediaserver 1977 0 /mnt/HD_a2/twonky/twonkymediaserver 1978 0 /mnt/HD_a2/twonky/twonkymediaserver 1983 0 /mnt/HD_a2/twonky/twonkymediaserver 1984 0 /mnt/HD_a2/twonky/twonkymediaserver 1985 0 /mnt/HD_a2/twonky/twonkymediaserver 2198 0 /mnt/HD_a2/twonky/twonkymediaserver 2929 0 /ffp/bin/sh 3141 0 ps
Logging into the GUI shows
Share Path User/Group Comment Oplocks Map archive R/W Volume_1 Volume_1 ALL No No
I tried smb start and received
$Starting SMB services:
$Starting NMB services:
but ps only shows
3411 0 /usr/sbin/samba/nmbd -D
as an extra process?
Here is the netstat from my working NAS
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN 1950/unfsd tcp 0 0 0.0.0.0:515 0.0.0.0:* LISTEN 1790/lpd Waiting tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 2020/rsync tcp 0 0 localhost.localdomain:9000 0.0.0.0:* LISTEN 1976/twonkymediaser tcp 0 0 DLINK323:9000 0.0.0.0:* LISTEN 1976/twonkymediaser tcp 0 0 localhost.localdomain:9001 0.0.0.0:* LISTEN 2143/twonkymediaser tcp 0 0 DLINK323:9001 0.0.0.0:* LISTEN 2143/twonkymediaser tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2131/smbd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1940/rpc.portmap tcp 0 0 0.0.0.0:http 0.0.0.0:* LISTEN 1557/webs tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN 1726/pure-ftpd (SER tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2009/sshd tcp 0 0 0.0.0.0:telnet 0.0.0.0:* LISTEN 1961/telnetd tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1557/webs tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 2131/smbd
Offline
I have 4 processes running for samba on my working NAS, but notice on the previous post for the non working NAS that the user is 0?
working NAS
PID USER COMMAND 1 root init 2 root [ksoftirqd/0] 3 root [events/0] 4 root [khelper] 5 root [kthread] 11 root [kblockd/0] 14 root [khubd] 49 root [pdflush] 50 root [pdflush] 52 root [aio/0] 51 root [kswapd0] 189 root [scsi_eh_0] 190 root [scsi_eh_1] 200 root [mtdblockd] 217 root [kcryptd/0] 218 root [kmirrord/0] 233 root [loop0] 1266 root atd 1302 root xmldb -n config 1345 root [md0_raid1] 1533 root chkbutton 1557 root /web/webs 1663 root check_hotplug 1668 root check_daemon 1678 root crond 1726 root pure-ftpd (SERVER) 1774 root op_server 0 0 0 1785 root -sh 1790 root lpd Waiting 1832 root mserver 1833 root apkg 1940 root /ffp/sbin/rpc.portmap 1950 root /ffp/sbin/unfsd -e /ffp/etc/exports 1961 root /ffp/sbin/telnetd -l /ffp/bin/sh 1975 root /mnt/HD_a2/twonky/twonkymedia -powersavemode 1 1976 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1977 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1978 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1979 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1980 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1981 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1982 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 1983 root /mnt/HD_a2/twonky/twonkymediaserver -powersavemode 1 2009 root /ffp/sbin/sshd 2020 root /ffp/bin/rsync --daemon --config=/ffp/etc/rsyncd.conf 2023 root /ffp/sbin/fanctl /ffp/etc/fanctl.conf 2026 root /ffp/sbin/fanctl /ffp/etc/fanctl.conf 2059 root [scsi_eh_2] 2060 root [usb-storage] 2131 root /usr/sbin/samba/smbd -D 2135 root /usr/sbin/samba/smbd -D 2136 root /usr/sbin/samba/nmbd -D 2142 root /mnt/HD_a2/twonky/twonkymedia 2143 root /mnt/HD_a2/twonky/twonkymediaserver 2144 root /mnt/HD_a2/twonky/twonkymediaserver 2145 root /mnt/HD_a2/twonky/twonkymediaserver 2146 root /mnt/HD_a2/twonky/twonkymediaserver 2147 root /mnt/HD_a2/twonky/twonkymediaserver 2148 root /mnt/HD_a2/twonky/twonkymediaserver 2149 root /mnt/HD_a2/twonky/twonkymediaserver 2151 root /mnt/HD_a2/twonky/twonkymediaserver 9835 nobody /usr/sbin/samba/smbd -D 10381 root /ffp/bin/sh 15340 root ps
Offline
Have reloaded FW 1.08 hoping that would clear stuff out. When I do that for my VOIP box I have to re enter all the settings, but no improvement.
Right now I would just like to get it back to brand new in the box and start from scratch. The GUI does not appear to apply all the settings I apply.
Offline
Well a Factory Reset has now got me access via windows.
ps now shows
PID USER COMMAND 1 root init 2 root [ksoftirqd/0] 3 root [events/0] 4 root [khelper] 5 root [kthread] 11 root [kblockd/0] 14 root [khubd] 49 root [pdflush] 50 root [pdflush] 52 root [aio/0] 189 root [scsi_eh_0] 51 root [kswapd0] 190 root [scsi_eh_1] 200 root [mtdblockd] 217 root [kcryptd/0] 218 root [kmirrord/0] 229 root [loop0] 1757 root xmldb -n config 1800 root [md0_raid1] 1992 root chkbutton 2027 root /web/webs 2047 root fancontrol 0 2059 root op_server 3 3 3 2065 root -sh 2100 root check_hotplug 2105 root check_daemon 2200 root lpd Waiting 2234 root mserver 2235 root apkg 2365 root /ffp/sbin/telnetd -l /ffp/bin/sh 2380 root /ffp/sbin/sshd 2700 root /usr/sbin/samba/smbd -D 2704 root /usr/sbin/samba/nmbd -D 2708 root /usr/sbin/samba/smbd -D 2751 root atd 2766 root crond 2891 root /ffp/bin/sh 2946 root /usr/sbin/samba/smbd -D 3040 root ps
and all data is intact. Phew
Many thanks for all your help.
Last edited by gasman (2015-07-30 16:26:17)
Offline