우분투 15.04 리눅스 파일시스템 점검 및 복구 관련 문의

chotws   
   조회 1721   추천 0    

개월에 1번씩 접속하는 스토리지 서버가 있습니다. 네트워크 플로우 데이터를 저장용입니다.

우분투 15.04 64비트


어느 순간 루트사용자로 파일을 생성하려고 했는데 아래와 같은 나오네요.

sys-bash: cannot create temp file for here-document: Read-only file system


다행히 데이터영역은 다른 파티션입니다. 

os는 /dev/sda , 데이터는 /dev/sdb


구글검색하니까

 https://jellybeanz.medium.com/ubuntu-%EC%97%90%EC%84%9C-%EA%B0%91%EC%9E%90%EA%B8%B0-read-only-file-system-%EC%97%90%EB%9F%AC%EA%B0%80-%EB%B0%9C%EC%83%9D-%ED%95%98%EB%8A%94-%EA%B2%BD%EC%9A%B0-9284bff8b92b



위처럼 해보라고 하는데 / 파티션 부분이 ro더군요. 원래는 rw이어야 하는데

근데 언마운트롤 하라고 하면 /boot를 해야하는지 아니면 / 영역 자체를 해야 하는지 궁금합니다.

만약 싱글모드?로 부팅해서 해야 할 것 같기도 한데요. 싱글모드 진입 후 언마운트 하고 e2fsck 명령어로 복구 가능하다고 하는데 정말 잘될런지 모르겠네요.

혹시 경험있으신 분 계신가요?



짧은글 일수록 신중하게.
엠브리오 2024-02
read-only 에서 read/write로 바꾸는건 어렵지 않죠. 다음과 같이 명령을 내리면 됩니다.
sudo mount  -no remount,rw  /

하지만 정작 중요한건,  왜 read-only로 바뀌었는지를 알아야 한다는 거죠.

문제 해결이 안되면 read-only 는 언제든지 또 발생합니다.
디스크 용량이 꽉 차 있거나, 물리적 고장이거나..

기타 다른 이유가 있을지도..
     
chotws 2024-02
그럼 우분투 싱글부팅후 작업을 해야 하는거네요?
https://yumserv.tistory.com/17
위 url처럼 들어가서 작업하려고 합니다.

추가로 syslog 메시지 일부 내용도 있습니다.
Jan 19 04:26:31 flow-storage kernel: [13398460.209172] megaraid_sas: FW detected to be in faultstate, restarting it...
Jan 19 04:26:34 flow-storage kernel: [13398463.221343] pcidata = 0
Jan 19 04:26:34 flow-storage kernel: [13398463.221346] megaraid_sas: FW restarted successfully,initiating next stage...
Jan 19 04:26:34 flow-storage kernel: [13398463.221348] megaraid_sas: HBA recovery state machine,state 2 starting...
Jan 19 04:27:04 flow-storage kernel: [13398493.344144] megasas: Waiting for FW to come to ready state
Jan 19 04:27:04 flow-storage kernel: [13398493.344148] megasas: FW in FAULT state!!
Jan 19 04:51:04 flow-storage kernel: [13399933.606050] FW state [-268435456] hasn't changed in 180 secs
Jan 19 04:51:04 flow-storage kernel: [13399933.606054] megaraid_sas:adapter not ready
Jan 19 04:51:06 flow-storage kernel: [13399935.614139] megaraid_sas: pending cmds after reset
Jan 19 04:51:06 flow-storage kernel: [13399935.614142]
Jan 19 04:51:06 flow-storage kernel: [13399935.614142] megasas[2]: Dumping Frame Phys Address of all pending cmds in FW
Jan 19 04:51:06 flow-storage kernel: [13399935.645807] megasas[2]: Total OS Pending cmds : 0
Jan 19 04:51:06 flow-storage kernel: [13399935.657099]
Jan 19 04:51:06 flow-storage kernel: [13399935.657099] megasas[2]: 64 bit SGLs were sent to FW
Jan 19 04:51:06 flow-storage kernel: [13399935.678702] megasas[2]: Pending OS cmds in FW :
Jan 19 04:51:06 flow-storage kernel: [13399935.689737] megasas[2]: Frame addr :0x366c2000 :
Jan 19 04:51:06 flow-storage kernel: [13399935.690008] megasas[2]: frame count : 0x1, Cmd : 0x2, Tgt id : 0x0, lba lo : 0x13018330, lba_hi : 0x0, sense_buf addr : 0x366bf480,sge count : 0x2
Jan 19 04:51:06 flow-storage kernel: [13399935.719622]
Jan 19 04:51:06 flow-storage kernel: [13399935.728899]
Jan 19 04:51:06 flow-storage kernel: [13399935.728899] megasas[2]: Pending Internal cmds in FW :
Jan 19 04:51:06 flow-storage kernel: [13399935.746899] megasas[2]: Dumping Done.
Jan 19 04:51:06 flow-storage kernel: [13399935.746899]
Jan 19 04:51:06 flow-storage kernel: [13399935.763664] megasas: failed to do reset
Jan 19 04:51:06 flow-storage kernel: [13399935.772096] sd 2:2:0:0: [sda] megasas: RESET cmd=2a retries=0
Jan 19 04:51:06 flow-storage kernel: [13399935.772097] megasas: cannot recover from previous reset failures
Jan 19 04:51:06 flow-storage kernel: [13399935.780359] sd 2:2:0:0: [sda] megasas: RESET cmd=2a retries=0
Jan 19 04:51:06 flow-storage kernel: [13399935.780360] megasas: cannot recover from previous reset failures
Jan 19 04:51:06 flow-storage kernel: [13399935.788424] sd 2:2:0:0: Device offlined - not ready after error recovery
Jan 19 04:51:06 flow-storage kernel: [13399935.788430] sd 2:2:0:0: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
Jan 19 04:51:06 flow-storage kernel: [13399935.788432] sd 2:2:0:0: [sda] CDB:
Jan 19 04:51:06 flow-storage kernel: [13399935.788433] Write(10): 2a 00 13 01 83 30 00 00 10 00
Jan 19 04:51:06 flow-storage kernel: [13399935.788438] blk_update_request: I/O error, dev sda, sector 318866224
          
엠브리오 2024-02
로그 기록에 sda 디스크 에러가 보이네요. 점검해보세요.
특히나 SSD는 한방에 훅 날라가 버립니다.

중요한 데이터는 넣어두지 않는게 좋습니다.
제온프로 2024-02
아마도 SSD에 베드가 났겠죠.. 그래서 보호중인 것 같습니다.
백업본.. 출동준비 해 주시고.....
일단 설명데로
싱글모드로 들어가서. .. unmount 후에 FSCK마싸지를 해 보세요...
살아나라.. 살아나라... 
정리후
DD 로 깔끔히 백업도 한 copy 해 놓으시고요...
dateno1 2024-02
보통 이유없이 ro로 변한경우 디스크나 파일 시스템 문제 있는겁니다

다른 디스크로 부트후 마운트해서 디스크 검사해보시고, SMART도 확인해보세요
chotws 2024-02
다행히 싱글모드 부팅 및 작업 후 정상화 되었습니다.


QnA
제목Page 2394/5710
2015-12   1690708   백메가
2014-05   5156364   정은준1
2012-10   6091   starcontrol
2016-10   4167   그파
2020-04   3538   삐돌이슬픔이
2014-07   4677   SpringValley
2015-11   5294   amplifier
2009-09   6514   김건우
2023-04   3749   낄낄맨
2009-10   8247   FreeBSD
2020-05   2722   흠냐
2009-10   6717   푸릉이
2012-12   7452   최시영
2009-11   7175   테슬라
2017-12   4601   일론머스크
2015-12   3441   임종열
2015-12   3384   송진현
2016-11   4398   예관신규식
2021-10   2181   새로운차원
2014-08   5430   김건우
2020-05   6106   댕댕이
2014-09   8212   무느미