Pomoc Problem po migracji do RAID1

Moyrez

System Engineer
Q Specialist
8 Wrzesień 2013
142
24
18
Kraków
QNAP
TS-x51
Ethernet
1 GbE
Pojawiła się kolejna zagadka i zastanawiam się kiedy z tym dojdę do ładu, ale mam nadzieję, że z Waszą pomocą będzie to szybciej niż później. Mianowicie po przebudowie macierzy RAID1 wyskakuje mi komunikat, że powinienem przeskanować wolumen, co też chcę zrobić z tym, że po chwili wyrzuca mi, że błąd skanowania bo nie może odmontować dysków. Próbowałem powyłączać wszystkie aplikacje, ale niestety nic to nie dało. Prośba o poradę bo chciałbym w końcu zacząć się cieszyć nowym nabytkiem a jak na razie same kłody pod nogi mi to cudo podrzuca.
 
jak wklepałem to pierwsze to wyskoczyło mi brak takiego pliku lub katalogu, niestetyPanowie myślałem, że się uda bez tego skanowania, ale zaczęło mi to cały czas wyskakiwać że są błędy. Prośba o pomoc bo program do skanowania nie może odpalić ze względu na niemożność odmonotwania dysku a polecenie powyżej nie działa. Mogę coś jeszcze spróbować?
Z góry dziękuję za wszelkie sugestie.
 
Czyli na chwilę bieżącą jest taki stan:
zrobiłeś raid
nastawiłeś skanowanie, które jest przerywane
według wskazówek pigers-a powyłączałeś wszystkie!! możliwe usługi i aplikacje (za co ręczysz głową), wykonałeś restart
po czym oznajmiłeś, iż skanowanie jest dalej przerywane, możesz coś więcej powiedzieć są jakieś wzmianki/opisy w logu o przerwaniu skanu?
 
Stan jest taki: powyłączałem wszystkie qpkg i mam nadzieję, że wszystkie inne usługi z tym, że ręcznie bo podane przez pigers-a polecenie mi nie działa. Zrobiłem restart i próbuję uruchomić skanowanie i się zatrzymuje zaraz na początku dając komunikat: Disko volume host drive 1 i 2 examination failed (cannot unmount disk).
 
@Silas Mariusz - czy to nie jest dziwne ? powinien mieć to polecenie :O
Maestro. To nie Debian :)
Bash:
/etc/init.d/services.sh stop

FYI:
Bash:
#!/bin/sh

NSS_ENABLED=`/sbin/getcfg NVR "NSS Enabled" -d no`

SERVICES="GQ.sh smb.sh ftp.sh nfs atalk.sh Qthttpd.sh recycled.sh mysqld.sh btd.sh bt_scheduler.sh ImRd.sh nvrd.sh crond.sh StartMediaService.sh init_iTune.sh twonkymedia.sh lunportman.sh iscsitrgt.sh snmp rsyslog.sh qsyncman.sh qsnapman.sh qbox.sh iso_mount.sh init_mozyclient.sh antivirus.sh ldap_server.sh vpn_pptp.sh vpn_openvpn.sh cloud3p.sh"
SERVICES_STOP="cloud3p.sh vpn_openvpn.sh vpn_pptp.sh ldap_server.sh antivirus.sh init_mozyclient.sh iso_mount.sh qbox.sh qsnapman.sh qsyncman.sh rsyslog.sh snmp lunportman.sh iscsitrgt.sh twonkymedia.sh init_iTune.sh StartMediaService.sh crond.sh nvrd.sh ImRd.sh bt_scheduler.sh btd.sh mysqld.sh recycled.sh Qthttpd.sh atalk.sh nfs ftp.sh smb.sh GQ.sh"

Other_Services()
{
    if [ -z "$1" ] || ([ "$1" != start ] && [ "$1" != stop ]); then
        return
    fi
    #service list
    [ -f /etc/init.d/init_symform.sh ] && /etc/init.d/init_symform.sh $1
}

case "$1" in
    start)
    echo -n "Start services: "
    [ ! -f "/tmp/quick_format.flag" ] || exit 0
    for i in $SERVICES
    do
        if [ -f /etc/init.d/$i ]; then
            echo -n "$i "
            if [ "x$i" = "xnvrd.sh" ]; then
                if [ "x${NSS_ENABLED}" = "xyes" ]; then
                    [ "`/etc/init.d/nvrd.sh started`" == "1" ] && /etc/init.d/$i _start 2>/dev/null 1>/dev/null
                else
                    /etc/init.d/$i start 2>/dev/null 1>/dev/null
                fi
            else
                /etc/init.d/$i start 2>/dev/null 1>/dev/null
            fi
        fi
    done
    echo .
    $0 qpkg_start
    Other_Services start
    ;;
    stop)
    Other_Services stop
    $0 qpkg_stop
    echo -n "Stop service: "
    for i in $SERVICES_STOP
    do
        if [ -f /etc/init.d/$i ]; then
            echo -n "$i "
            if [ "x$i" = "xnvrd.sh" ]; then
                if [ "x${NSS_ENABLED}" = "xyes" ]; then
                    [ "`/etc/init.d/nvrd.sh started`" == "1" ] && /etc/init.d/$i _stop 2>/dev/null 1>/dev/null
                else
                    /etc/init.d/$i stop 2>/dev/null 1>/dev/null
                fi
            else
                /etc/init.d/$i stop 2>/dev/null 1>/dev/null
            fi
        fi
    done
    echo .
    . /etc/init.d/check_nss2
    if [ ! -f "/tmp/quick_format.flag" ] && [ "x$_NSS2_SUPPORT" = "xyes" ] && [ ! -f /tmp/.no_restart_thttpd ]; then 
        /etc/init.d/thttpd.sh restart 2>/dev/null 1>/dev/null
    fi
    [ ! -f /tmp/.no_restart_thttpd ] || /bin/rm -f /tmp/.no_restart_thttpd
    ;;

    qpkg_start)
    echo -n "Start qpkg service: "
    for i in /etc/rcS.d/QS??* ;do
        [ -f "$i" ] || continue
        case "$i" in
            *.sh)
                # Source shell script for speed.
                (
                    trap - INT QUIT TSTP
                    set start
                    . $i
                )
                ;;
            *)
                # No sh extension, so fork subprocess.
                [ -f $i ] && $i start
                ;;
        esac
    done
    echo .
    ;;
    qpkg_stop)
    echo -n "Stop qpkg service: "
    for i in /etc/rcK.d/QK??* ;do
        [ -f "$i" ] || continue
        case "$i" in
            *.sh)
            # Source shell script for speed.
            (
                trap - INT QUIT TSTP
                set stop
                . $i
            )
            ;;
        *)
            # No sh extension, so fork subprocess.
            [ -f $i ] && $i stop
            ;;
        esac
    done
    echo .
    ;;
    restart)
    $0 stop
    $0 start
    ;;   
    *)
        echo "Usage: /etc/init.d/services.sh {start|stop|restart}"
        exit 1
esac

exit 0
 
Panowie czyli uruchomienie powyższego skryptu powinno jak rozumie rozwiązać problem? To teraz zadam pytanie laika, jak to w całości uruchomić? Pojedyncze polecenia przez terminal potrafię uruchomić, ale w takie skrypty się jeszcze nie bawiłem.
 
To sprawa wygląda tak, uruchomiłem services.sh i poszło wypluło taki komunikat:
Kod:
"Default volume not found.
Stop qpkg service: Default volume not found.
Default volume not found.
Stop service: cloud3p.sh vpn_openvpn.sh vpn_pptp.sh ldap_server.sh antivirus.sh iso_mount.sh qbox.sh qsyncman.sh rsyslog.sh snmp lunportman.sh iscsitrgt.sh twonkymedia.sh init_iTune.sh StartMediaService.sh crond.sh nvrd.sh ImRd.sh bt_scheduler.sh btd.sh mysqld.sh recycled.sh Qthttpd.sh atalk.sh nfs ftp.sh smb.sh"
Następnie uruchomiłem ponownie skanowanie i wyrzuciło ten sam błąd czyli: Disk volume host drive 1 i 2 examination failed (cannot unmount disk).
:'(

i co teraz ??? bo na tą chwilę ma ładną cegiełkę...
 
Ostatnio edytowane przez moderatora:
a proszę Cię bardzo:
Kod:
PID  Uid    VmSize Stat Command
    1 admin      632 S  init             
    2 admin          SW  [kthreadd]
    3 admin          SW  [ksoftirqd/0]
    4 admin          SW  [kworker/0:0]
    5 admin          SW  [kworker/u:0]
    6 admin          SW  [migration/0]
    7 admin          SW  [migration/1]
    9 admin          SW  [ksoftirqd/1]
  10 admin          SW  [kworker/0:1]
  11 admin          SW  [migration/2]
  12 admin          SW  [kworker/2:0]
  13 admin          SW  [ksoftirqd/2]
  14 admin          SW  [migration/3]
  15 admin          SW  [kworker/3:0]
  16 admin          SW  [ksoftirqd/3]
  17 admin          SW< [khelper]
  18 admin          SW  [kdevtmpfs]
  19 admin          SW  [sync_supers]
  20 admin          SW  [bdi-default]
  21 admin          SW< [kintegrityd]
  22 admin          SW< [kblockd]
  23 admin          SW< [tifm]
  24 admin          SW< [ata_sff]
  25 admin          SW  [khubd]
  26 admin          SW  [kethubd]
  27 admin          SW< [md]
  28 admin          SW< [cfg80211]
  29 admin          SW< [rpciod]
  30 admin          SW  [kworker/1:1]
  38 admin          SW  [kswapd0]
  39 admin          SWN [ksmd]
  40 admin          SW  [fsnotify_mark]
  41 admin          SW< [nfsiod]
  42 admin          SW< [cifsiod]
  43 admin          SW< [crypto]
  65 admin          SW< [kthrotld]
  66 admin          SW  [kworker/3:1]
  67 admin          SW  [kworker/2:1]
  68 admin          SW< [kmpath_rdacd]
  69 admin          SW  [scsi_eh_0]
  70 admin          SW  [scsi_eh_1]
  71 admin          SW  [scsi_eh_2]
  72 admin          SW  [scsi_eh_3]
  73 admin          SW  [scsi_eh_4]
  74 admin          SW  [scsi_eh_5]
  80 admin          SW  [kworker/u:6]
  81 admin          SW< [kmpathd]
  82 admin          SW< [kmpath_handlerd]
  86 admin          SW< [deferwq]
  87 admin          SW< [ttm_swap]
  89 admin          SW  [kworker/0:2]
  100 admin          SW  [flush-1:0]
  147 admin          SW< [dm_bufio_cache]
  152 admin          SW< [kcopyd]
  157 admin          SW  [scsi_eh_6]
  158 admin          SW  [usb-storage]
  203 admin      512 S < udevd --daemon
  235 admin          SW  [md9_raid1]
  245 admin          SW  [kjournald]
  256 admin          SW  [md13_raid1]
  290 admin      2524 S  /sbin/hal_daemon -f
  315 admin          SW  [md256_raid1]
  334 admin          SW  [flush-9:9]
  356 admin          SW  [md0_raid1]
  372 admin          SW  [jbd2/md0-8]
  373 admin          SW< [ext4-dio-unwrit]
  464 admin          SW  [flush-9:13]
  465 admin          SW  [flush-9:0]
  472 admin          SW  [kjournald]
  837 admin      1956 S  /sbin/daemon_mgr.nvr
  868 admin          SW< [cryptodev_queue]
  904 admin          SW  [fnotify]
  913 admin      256 S < qWatchdogd: keeping alive every 5 seconds...
  945 admin          SW< [hd-audio0]
1057 admin      484 S  /sbin/irqbalance
1176 admin      1676 S  /sbin/modagent
1833 admin        68 S N /sbin/dhcpcd -h SZAFIRNAS -t 30 eth0
2536 admin      3412 S < /usr/local/sbin/_thttpd_ -p 58080 -nor -nos -u admin
2601 admin      9968 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2606 admin      6980 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2607 admin      6980 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2608 admin      6980 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2609 admin      6976 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2610 admin      6720 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2621 admin      6972 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2636 admin      1968 S  /usr/sbin/cupsd -C /etc/config/cups/cupsd.conf
2780 admin      1876 S  /usr/sbin/ntpdated
2826 admin      6720 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
2841 admin      2004 S  /usr/sbin/upsutil
2940 guest      1104 S  /usr/sbin/dbus-daemon --system
3087 admin    10444 S  /usr/local/apache/bin/apache_proxys -k start -f /etc/
3092 admin      6272 S  /usr/local/apache/bin/apache_proxys -k start -f /etc/
3093 admin      6272 S  /usr/local/apache/bin/apache_proxys -k start -f /etc/
3153 admin      6720 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
3210 admin      992 S  /usr/sbin/sshd -f /etc/ssh/sshd_config -p 22
3393 admin      6720 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
3474 guest      1636 S  avahi-daemon: running [SZAFIRNAS.local]
3481 admin      6972 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
3482 admin      6720 S < /usr/local/apache/bin/apache_proxy -k start -f /etc/a
3710 admin      2148 R  sshd: admin@pts/0                             
3728 admin      1580 S  -sh
3867 admin          SW  [kworker/1:2]
6349 admin      2452 S  /sbin/bcclient
6400 admin      540 S N /sbin/acpid
6478 admin      540 S  /sbin/gen_bandwidth -r -i 5
6564 admin          SW< [iscsi_eh]
6582 admin      1124 S  /bin/sh /etc/init.d/klogd.sh start
6596 admin      2708 S  qLogEngined: Write log is enabled...
6600 admin          SW  [qnap_et]
6615 admin      1916 S  /sbin/qsyslogd
6619 admin      2028 S  /sbin/qShield
6655 admin      416 S  /sbin/iscsid --config=/etc/config/iscsi/sbin/iscsid.c
6656 admin      2152 S < /sbin/iscsid --config=/etc/config/iscsi/sbin/iscsid.c
6678 admin      292 S  /bin/dd if=/proc/kmsg of=/mnt/HDA_ROOT/.logs/kmsg bs=
6686 admin      2344 S  /sbin/vdd_control -d
7009 admin      2628 S  /usr/local/bin/porter -d 4
7206 admin      1936 S  /sbin/daemon_mgr
7309 admin      1292 S  /usr/local/bin/eagent -d 4
8362 admin      2800 S  /sbin/upnpcd -i 300
8613 admin      564 S  /sbin/getty 115200 tty1
8614 admin      564 S  /sbin/getty 115200 tty2
13556 admin          SW  [kworker/3:3]
23765 admin      664 S N /usr/bin/rsyncd --daemon --sever-mode=1 --qnap-bwlimi
24148 admin          SW  [kworker/1:0]
24149 admin          SW  [kworker/0:3]
25410 admin          SW  [kworker/2:2]
28242 admin          Z < [_thttpd_]
28243 admin          Z < [_thttpd_]
28245 admin          Z < [_thttpd_]
28246 admin          Z < [_thttpd_]
28248 admin          Z < [_thttpd_]
28250 admin          Z < [_thttpd_]
28254 admin          Z < [_thttpd_]
28256 admin          Z < [_thttpd_]
28257 admin          Z < [_thttpd_]
28258 admin          Z < [_thttpd_]
28266 admin          Z < [_thttpd_]
28267 admin          Z < [_thttpd_]
28274 admin          Z < [_thttpd_]
28275 admin          Z < [_thttpd_]
28278 admin          Z < [_thttpd_]
28279 admin          Z < [_thttpd_]
28281 admin          Z < [_thttpd_]
28282 admin          Z < [_thttpd_]
28284 admin          Z < [_thttpd_]
28285 admin          Z < [_thttpd_]
28299 admin      772 R  ps axl
 
Kod:
/proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=64M)
none on /proc/bus/usb type usbfs (rw)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw,data=ordered)
/dev/md13 on /mnt/ext type ext3 (rw,data=ordered)
/share/MD0_DATA/Download on /share/Qdownload type none (rw,bind)
 
Zatem używasz zapewne rtorrent++. Jedną z wad tej wersji był niepoprawny umount po jej zakończeniu...
Bash:
# zatrzymaj usluge
/etc/init.d/rtorrent++.sh stop

# zmien flage Enable na FALSE, aby ponownie nie uruchamial sie rtorrnet podczas startu serwera
# (nie pamietam pod ktora nazwa dziala rtorrent++ wiec zastosuj oba)
/sbin/setcfg "rtorrent++" Enable FALSE -f /etc/config/qpkg.conf
/sbin/setcfg "rtorrent" Enable FALSE -f /etc/config/qpkg.conf

# .. i reboot aby upewnic sie ze nic na nowo nie bedzie podmountowane
reboot