서버운영이 1년을 넘어가니 별별 문제가 다 생기는데 흐음.. 

/etc/samba/smb.conf 에서 mask를 바꾸고는
chown 명령으로 퍼미션을 바꾸어 주려는데 아래와 같이 Read-only라고 배를 짼다 -_-
 unable to chmod /home/samba/sharedDocs/ : Read-only file system 

mount 명령으로 확인해도 /dev/sda rw 인데
혹시나 해서 다시 마운트 하게 해도 에러가 발생한다 -_-
 $ sudo mount -o remount,rw /dev/sda

dmesg를 해보니 헐...
[89502.612438] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[89502.612446] ata1.00: BMDMA stat 0x5
[89502.612469] ata1.00: failed command: READ DMA
[89502.612483] ata1.00: cmd c8/00:00:40:fb:48/00:00:00:00:00/e3 tag 0 dma 131072 in
[89502.612485]          res 51/84:1f:40:fb:48/00:00:00:00:00/e3 Emask 0x10 (ATA bus error)
[89502.612489] ata1.00: status: { DRDY ERR }
[89502.612492] ata1.00: error: { ICRC ABRT }
[89502.612506] ata1: soft resetting link
[89502.785164] ata1.00: configured for UDMA/133
[89502.785193] ata1: EH complete
...
[144064.508283] sd 0:0:0:0: [sda] Got wrong page
[144064.508288] sd 0:0:0:0: [sda] Assuming drive cache: write through
[176393.000227] sd 0:0:0:0: [sda] Unhandled error code
[176393.000235] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[176393.000242] sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 1d 04 d7 f0 00 00 10 00
[176393.000256] end_request: I/O error, dev sda, sector 486856688
[176393.000281] Aborting journal on device sda-8.
[176393.000304] sd 0:0:0:0: [sda] Unhandled error code
[176393.000308] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[176393.000312] sd 0:0:0:0: [sda] CDB: Write(10): 2a 00 1d 04 00 00 00 00 08 00
[176393.000323] end_request: I/O error, dev sda, sector 486801408
[176393.000327] __ratelimit: 15 callbacks suppressed
[176393.000331] Buffer I/O error on device sda, logical block 60850176
[176393.000334] lost page write due to I/O error on sda
[176393.000344] JBD2: I/O error detected when updating journal superblock for sda-8.
[176400.268607] EXT4-fs error (device sda): ext4_journal_start_sb: Detected aborted journal
[176400.268619] EXT4-fs (sda): Remounting filesystem read-only
[177211.612640] sd 0:0:0:0: [sda] Unhandled error code
[177211.612647] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[177211.612654] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 23 81 06 98 00 00 08 00
[177211.612668] end_request: I/O error, dev sda, sector 595658392
...
[177272.311394] EXT4-fs error (device sda): __ext4_get_inode_loc: unable to read inode block - inode=18613272, block=74448993
[177272.311523] sd 0:0:0:0: [sda] Unhandled error code
[177272.311526] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[177272.311530] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 23 80 03 08 00 00 08 00
[177272.311542] end_request: I/O error, dev sda, sector 595591944 

rw라고 나오지만 실제로는 ro로 강제 변경당했다 -_-
fsck 해보라는데 으아아.. fsck 돌렸다가 하드 날린적이 있어서 겁나는디 -_-

[링크 : http://lists.samba.org/archive/samba/2002-August/050432.html]
[링크 : http://www.linuxquestions.org/.../chmod-command-fails-with-read-only-file-system-648675/]
[링크 : http://serverfault.com/.../mount-cannot-remount-block-device-dev-sda5-read-write-is-write-protected]
Posted by 구차니