Today, I am trying to scp file from Linux server A to server B but got the following error.
[root@server-A local]# scp don.tar.gz server-B:/tmp
root@server-B's password:
scp: /tmp/don.tar.gz: Read-only file system
Read-only file system error appeared. I waste a lot of time thinking the file permission that can caused the problem.
From dmesg, I got the following error:
[root@server-B ~]# dmesg
l has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
EXT3-fs error (device cciss/c0d0p5) in start_transaction: Journal has aborted
[root@server-B ~]# mount
/dev/cciss/c0d0p2 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/cciss/c0d0p5 on /usr2 type ext3 (rw) <-- /usr2
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Upon googling, I found useful information at http://major.io/2007/11/20/ext3-fs-error-device-hda3-in-start_transaction-journal-has-aborted/
In my case, the problem was resolved by reboot server-B and forced switch off. The system itself will recover the blocks and boot up, if not you can follow guide from link above.
[root@server-A local]# scp don.tar.gz server-B:/tmp
root@server-B's password:
don.tar.gz 100% 16MB 714.6KB/s 00:23
[root@server-B tmp]# df /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p2 15480832 2697412 11997040 19% /
Even though "EXT3-fs error (device cciss/c0d0p5)" refer to /usr2 partition but it prevent me to scp to /tmp directory (which mounted on / partition).
## if you found this article helps you, feel free to click any ads on this page. thank you ##
No comments:
Post a Comment