๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๋ชฉ๋ก์ด ์—†์Šต๋‹ˆ๋‹ค.

[Ubuntu] iptime NAS ๋งˆ์šดํŠธ ์˜ค๋ฅ˜ (mount error)

Server/Ubuntu

     

    ๐Ÿ’ก Ubuntu 20.04 LTS ๋ฒ„์ „์—์„œ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค !

    ๊ฒฐ๋ก ์ ์œผ๋กœ ๋งˆ์šดํŠธ๋ฅผ ๊ฐ•์ œ๋กœ ํ•ด์ œํ•˜๊ณ  ๋‹ค์‹œ mount ํ•ด์ฃผ๋ฉด ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค.
    ๊ฐ•์ œ๋กœ ๋งˆ์šดํŠธ ํ•ด์ œํ•˜๋Š” ๋ช…๋ น์–ด: umount -l /NAS

     

    cifs๋กœ ์ž˜ ๋งˆ์šดํŠธ ๋˜์–ด ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋˜ NAS๊ฐ€ ๊ฐ‘์ž๊ธฐ ์•ˆ๋œ๋‹ค.. ๋•๋ถ„์— ์‚ฌ์ดํŠธ์—์„œ ์—…๋กœ๋“œ๋œ ์ด๋ฏธ์ง€๋“ค์ด ์ „๋ถ€ ์—‘๋ฐ•์œผ๋กœ ๋ณด์ด๋Š” ํ˜„์ƒ์ด ๋ฐœ์ƒํ–ˆ๋‹ค..

    ์šฐ๋ฆฌ ์„œ๋ฒ„์—์„œ๋Š” NAS ๋งˆ์šดํŠธ๋ฅผ 10์ดˆ๋งˆ๋‹ค ํ™•์ธํ•ด์„œ ๋งŒ์•ฝ ๋–จ์–ด์ ธ์žˆ์„ ๊ฒฝ์šฐ ๋‹ค์‹œ ๋ถ™์ด๋„๋ก cron์„ ๋Œ๋ฆฌ๊ณ  ์žˆ์—ˆ๋‹ค.

    ๊ทธ๋ž˜์„œ ์–ด๋–ค ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ  ์žˆ๋‚˜ ์ปค๋„ ๋กœ๊ทธ /var/log/kern.log ์—ด์–ด๋ณด์•˜๋‹ค.

     

    Apr 27 06:54:58 ubuntu kernel: [11648455.315436] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.319163] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.322201] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.326257] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.329104] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.333025] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.337391] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.340095] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.341562] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.343018] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.347064] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.350773] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.352227] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.358670] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    Apr 27 06:54:58 ubuntu kernel: [11648455.364467] Status code returned 0xc000006d STATUS_LOGON_FAILURE
    ...

     

    ์œ„์™€ ๊ฐ™์ด ๋งŽ์€ ์—๋Ÿฌ๊ฐ€ ์ง€์†์ ์œผ๋กœ ๋ฐœ์ƒํ•˜๊ณ  ์žˆ์—ˆ๋‹ค... ๐Ÿ˜ฑ

     

     

    ์‹ฌ์ง€์–ด ๋””์Šคํฌ ์ƒํƒœ ์‚ดํŽด๋ณด๋‹ˆ ์•„๋ž˜์ฒ˜๋Ÿผ ๋งˆ์šดํŠธ๋„ ๋˜์–ด ์žˆ์ง€ ์•Š์€ ๊ฒƒ ์ฒ˜๋Ÿผ ๋‚˜์˜ค๊ณ  ์žˆ์—ˆ๋‹ค.

     

    root@ubuntu:/var/log# df -h
    Filesystem                        Size  Used Avail Use% Mounted on
    udev                               32G     0   32G   0% /dev
    tmpfs                             6.3G   15M  6.3G   1% /run
    /dev/sda2                         231G   66G  166G  29% /
    tmpfs                              32G     0   32G   0% /dev/shm
    tmpfs                             5.0M     0  5.0M   0% /run/lock
    tmpfs                              32G     0   32G   0% /sys/fs/cgroup
    tmpfs                             6.3G     0  6.3G   0% /run/user/1000

     

    ๋งˆ์šดํŠธ ๊ฒฝ๋กœ๋ฅผ ์ง์ ‘ ๊ฐ€๋ณด๋‹ˆ ์ฒ˜์Œ๋ณด๋Š” ๊ถŒํ•œ๊ณผ ์†Œ์œ ์ž์˜ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์žˆ์—ˆ๋‹ค..

    ๋ฌผ์Œํ‘œ๋Š” ์•Œ ์ˆ˜ ์—†๋‹ค๋Š” ํ‘œ์‹œ์ธ๋ฐ ๊ถŒํ•œ๋„ ์†Œ์œ ์ž๋„ ์•Œ ์ˆ˜ ์—†๋Š” ์ƒํƒœ๊ฐ€ ๋˜์–ด ์žˆ๋‹ค..

    ์ด ๋•Œ๋ฌธ์— root ๊ณ„์ •์œผ๋กœ๋„ ๋ชฉ๋ก ์ฝ๊ธฐ, ์‚ญ์ œ ๋“ฑ ์•„๋ฌด๊ณ ํ†  ์•ˆ๋œ๋‹ค..

    ๋งˆ์šดํŠธ ํ•ด์ œ๋ฅผ ์‹œ๋„ํ•˜๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋ฐ”์˜๋‹ค๊ณ  ํ•œ๋‹ค..

     

    root@ubuntu:/# umount /NAS 
    umount: /NAS: target is busy.

     

    ๊ฐ•์ œ๋กœ ๋งˆ์šดํŠธ ํ•ด์ œ ํ•ด๋ณด์ž

     

    root@ubuntu:/# umount -l /NAS

    ๊ทธ๋žฌ๋”๋‹ˆ NAS ๋””๋ ‰ํ† ๋ฆฌ์˜ ๊ถŒํ•œ ๋ฐ ์†Œ์œ ์ž๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋‹ค์‹œ ๋Œ์•„์™”๋‹ค!

    ์ด์ œ ๋‹ค์‹œ mount ํ•ด์ฃผ์ž..

     

     

    ํ•ด๊ฒฐ!