λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°

λͺ©λ‘μ΄ μ—†μŠ΅λ‹ˆλ‹€.

[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 ν•΄μ£Όμž..

     

     

    ν•΄κ²°!

    λ°˜μ‘ν˜•