Welcome! Log In Create A New Profile

Advanced

Debian on iomega storcenter ix4-200d: succes!

Posted by damacc 
Re: Debian on iomega storcenter ix4-200d: succes!
May 24, 2021 11:12AM
Made progress with the backup but load of errors trying /sys...

rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/unload_heads": Operation not supported (95)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/vendor": No data available (61)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/wwid": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/driver_override": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/driver_override": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/driver_override": No data available (61)
WARNING: sys/devices/platform/kirkwood_cpuidle/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/autosuspend_delay_ms failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/control failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_active_time failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_status failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_suspended_time failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_suspended_time": No data available (61)
WARNING: sys/devices/platform/mbus@f1000000/driver_override failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/driver_override": No data available (61)
WARNING: sys/devices/platform/mbus@f1000000/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/driver_override failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/mtd/mtd0/bad_blocks failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/mtd/mtd0/bbt_blocks failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/uevent": No data available (61)

===
moderator edit: please use code tags



Edited 1 time(s). Last edit at 05/24/2021 04:41PM by bodhi.
Re: Debian on iomega storcenter ix4-200d: succes!
May 24, 2021 04:47PM
reformedfan,

Something wrong in the rsync setup. rsync should not try to back up /sys.

Did you use my instruction in the Wiki thread to set up rsync?

https://forum.doozan.com/read.php?2,111249,111249#msg-111249

Quote
https://forum.doozan.com/read.php?2,23630
Backup and Cloning rootfs

Back up a live rootfs using rsync

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 25, 2021 08:10AM
I'll check the config for rsync, I used the "on demand" one. Anyhow, once validated, I can --exclude /sys/ if needed. All in all, all working now. Env has been committed to NAND, used MDADM to fix the RAID as it was degraded, Samba configured. so far so good and almost ready to help the next person :)

Next steps (views welcome)

1)DNLA/UPNP media service, iOmega used Twonky Media server,
2)way to alert on Disk / Raid issues - thinking email service (postfix?)
3) Apple time machine
4)any other cool tools with low footprint?
Re: Debian on iomega storcenter ix4-200d: succes!
May 25, 2021 04:50PM
reformedfan,

> I'll check the config for rsync, I used the "on
> demand" one. Anyhow, once validated, I can
> --exclude /sys/ if needed. All in all, all
> working now. Env has been committed to NAND,
> used MDADM to fix the RAID as it was degraded,
> Samba configured. so far so good and almost ready
> to help the next person :)

Cool!

> 1)DNLA/UPNP media service, iOmega used Twonky
> Media server,

Install minidlna from Debian repo.

apt-get install minidlna

> 2)way to alert on Disk / Raid issues - thinking
> email service (postfix?)

There are many examples on the Internet for settings up Gmail with smartctl daemon.

> 3) Apple time machine

I'll have to look for my notes. I've done this quite a long time ago, but never actually used it daily (my wifi was too slow back in the days). But using it with Ethernet connection is decent.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 27, 2021 10:18AM
Quick one as I am being thick. Trying to set up the device so you can ping by hostname (FQDN). eg. hostname.local

>Interface is DHCP - and the file has a basic entry [iface eth0 inet dhcp}
>resolve.conf is the local router (DHCP/DNS) [nameserver 192.168.1.1]
>Hosts file only has the loopback and local hostname. I dont want to start adding to this file

Do I need a DNS forwarding service or something, or have I just missed something out?

Thanks
Matthew
Re: Debian on iomega storcenter ix4-200d: succes!
May 27, 2021 05:17PM
Matthew,

Quote

Quick one as I am being thick.

Not at all :) good question.

This hostname capability is provided by avahi. And it is already installed in the basic rootfs.

Quote

Updated 25 Aug 2019:

Basic Debian buster Kirkwood rootfs for most Kirwood plugs:

- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root


In your local network environment the host name is broadcasted by avahi. Your MacOS boxes would see it as nameofhost.local (it is debian.local if you have not changed hostname after installation).

So go ahead and ping it, or ssh in.

ping nameofhost.local

or
ssh root@nameofhost.local

See if you get response in either cases.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 03:27AM
Hi,

It really wierd,

This Debian, rootfs host doesn't resolve names. I have a few raspberry pi's (raspbian) and these work. I have crossed checked the following files and nothing seems majorly different.

/etc/nsswitch.conf
   /etc/resolv.conf
   /etc/hosts
   /etc/network/interfaces
   /etc/avahi/avahi-daemon.conf


The Pis resolve hostname.local (ping) for all of my 100 + hosts on my home network (haha) but this one doesn't:

uname -a
Linux iomega 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel GNU/Linux
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 03:43AM
Matthew,


Reboot the Store Center. Sometime a reboot will help. Check the syslog, there should be avahi activities toward the end of the log.

Or filter out avahi log:
logread | grep avahi

And ping or ssh the hostname after the system is up about 2 minutes or later.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 05:56PM
Matthew,

Is this box behind a wireless bridge?

For reference, I alsway log in to these NAS boxes from my MacBook laptop with hostname.local. Once in a long while, some of the boxes behind a wireless bridge did not advertise their host names through, for whatever reason (dmesg or syslog did show anything strange). A wireless bridge reboot cleared it up.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
June 02, 2021 05:38AM
Hi,

The plot thickens. The host (ix4-200d), can ping IPs and resolve external host names like www.google.com. it can't resolve internal hostnames if you append .local.

e.g ping hostname.local

My other linux devices work ok (raspberry pi's).

I have done an "apt update on avahi"

It is not the end of the work, just frustrating
Re: Debian on iomega storcenter ix4-200d: succes!
June 02, 2021 04:28PM
Matthew,

I think it might have something to do with avahi hosts.

Normally host names should be OK without workaround. But it does not hurt to force the hosts list to contain its own name and other in the network.

First, add the ix4 and the MacOS box or any box (you want it to see the ix4 as hostname.local) to the avahi list of hosts in
/etc/avahi/hosts
(IP address and hostname.local)

And reboot the ix4.

If that is not enough, add those same hosts to the /etc/hosts
/etc/hosts
(IP address and hostname)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
June 17, 2021 04:45AM
Back with a SMARTd (smartmontools) email challenge. Email works from command link but not from samrtd.conf. I get the following error:

[....] Restarting S.M.A.R.T. daemon: smartd
2021 Jun 17 10:41:31 iomega Test of <mail> to [removed]@gmail.com produced unexpected output (29 bytes) to STDOUT/STDERR: 
2021 Jun 17 10:41:31 iomega msmtp: invalid option -- 's'
2021 Jun 17 10:41:31 iomega Test of <mail> to [removed]@gmail.com: failed (32-bit/8-bit exit status: 16384/64)

Originally followed https://linuxconfig.org/how-to-configure-smartd-and-be-notified-of-hard-disk-problems-via-email

I have now tried msmtp, s-nail and mailx.

Any tips are gratefully received. My feeling is that it is a bug!

***FIXED***
removed all mail installs

  apt remove msmtp-mta
  apt remove mailutils
  apt remove s-nail
  apt remove msmtp-mta
  apt remove msmtp

then added Postfix, set to relay to an internal machine that can send to gmail. then installed mailutils

***end***



Edited 2 time(s). Last edit at 06/19/2021 06:50AM by reformedfan.
Re: Debian on iomega storcenter ix4-200d: succes!
June 24, 2021 06:03AM
Fixed the .local name resolution issue by installing: apt install libnss-mdns
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: