How do I find/fix/remove problem ?
Thanks
--Glenn
command sequence:
# umount /dev/sdb1
# rpm -qa| grep reiserfs |sort
libreiserfs-0_3-0-0.3.0.5-163.3.x86_64
libreiserfscore0-3.6.25-56.1.x86_64
reiserfs-3.6.26-1.1.x86_64
reiserfs-debuginfo-3.6.26-1.1.x86_64
# fsck.reiserfs
Usage: fsck.reiserfs [mode] [options] device
Modes:
--check consistency checking (default)
--fix-fixable fix corruptions which can be fixed without
--rebuild-tree
--rebuild-sb super block checking and rebuilding if needed
(may require --rebuild-tree afterwards)
--rebuild-tree force fsck to rebuild filesystem from scratch
(takes a long time)
--clean-attributes clean garbage in reserved fields in StatDatas
Options:
-j | --journal device specify journal if relocated
-B | --badblocks file file with list of all bad blocks on the fs
-l | --logfile file make fsck to complain to specifed file
-n | --nolog make fsck to not complain
-z | --adjust-size fix file sizes to real size
-q | --quiet no speed info
-y | --yes no confirmations
-f | --force force checking even if the file system is marked clean
-V prints version and exits
-a and -p some light-weight auto checks for bootup
-r ignored
Expert options:
--no-journal-available do not open nor replay journal
-S | --scan-whole-partition build tree of all blocks of the device
# fsck.reiserfs --check /dev/sdb1
reiserfsck 3.6.26
Will read-only check consistency of the filesystem on /dev/sdb1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Fri Jul 21 13:20:15 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit.
Checking internal tree.. finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
1 found corruptions can be fixed when running with --fix-fixable
###########
reiserfsck finished at Fri Jul 21 13:31:54 2017
###########
# fsck.reiserfs --fix-fixable /dev/sdb1
reiserfsck 3.6.26
Will check consistency of the filesystem on /dev/sdb1
and will fix what can be fixed without --rebuild-tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Jul 21 13:36:21 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit. Fixed.
Checking internal tree.. finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 125567
Internal nodes 759
Directories 2196
Other files 72209
Data block pointers 122267987 (0 of them are zero)
Safe links 0
###########
reiserfsck finished at Fri Jul 21 13:48:02 2017
###########
Exiting after unrecoverable error.
# fsck.reiserfs --check /dev/sdb1
reiserfsck 3.6.26
Will read-only check consistency of the filesystem on /dev/sdb1
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --check started at Fri Jul 21 13:52:01 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit.
# fsck.reiserfs --fix-fixable /dev/sdb1
reiserfsck 3.6.26
Will check consistency of the filesystem on /dev/sdb1
and will fix what can be fixed without --rebuild-tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Jul 21 14:19:13 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit. Fixed.
Checking internal tree
# fsck.reiserfs --fix-fixable /dev/sdb1
reiserfsck 3.6.26
Will check consistency of the filesystem on /dev/sdb1
and will fix what can be fixed without --rebuild-tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Jul 21 14:19:13 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit. Fixed.
# umount /dev/sdb1
umount: /dev/sdb1: not mounted
# fsck.reiserfs --fix-fixable /dev/sdb1
reiserfsck 3.6.26
Will check consistency of the filesystem on /dev/sdb1
and will fix what can be fixed without --rebuild-tree
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):Yes
###########
reiserfsck --fix-fixable started at Fri Jul 21 14:19:13 2017
###########
Replaying journal: Done.
Reiserfs journal '/dev/sdb1' in blocks [18..8211]: 0 transactions replayed
Zero bit found in on-disk bitmap after the last valid bit. Fixed.
Checking internal tree.. finished
Comparing bitmaps..finished
Checking Semantic tree:
finished
No corruptions found
There are on the filesystem:
Leaves 125567
Internal nodes 759
Directories 2196
Other files 72209
Data block pointers 122267987 (0 of them are zero)
Safe links 0
###########
reiserfsck finished at Fri Jul 21 14:30:53 2017
###########
Exiting after unrecoverable error.
# count files on r3 partition
# mount /dev/sdb1 /media/disk
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 1.5T 467G 970G 33% /media/disk
# find /media/disk/. | wc -l
74404
# umount /dev/sdb1
#
# umount /dev/sdb1
#
# dmesg
77.096157] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 77.096975] scsi host4: usb-storage 1-1:1.0
[ 78.110203] scsi 4:0:0:0: Direct-Access ST320005 42AS PQ: 0 ANSI: 2
[ 78.111026] sd 4:0:0:0: Attached scsi generic sg2 type 0
[ 78.113083] sd 4:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 78.115708] sd 4:0:0:0: [sdb] Write Protect is off
[ 78.115717] sd 4:0:0:0: [sdb] Mode Sense: 38 00 00 00
[ 78.118399] sd 4:0:0:0: [sdb] No Caching mode page found
[ 78.118406] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 87.856653] sdb: sdb1
[ 87.869299] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 91.836828] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 155.843654] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 164.892130] jme 0000:03:00.5 enp3s0f5: Link is down
[ 167.579745] jme 0000:03:00.5 enp3s0f5: Link is up at ANed: 100 Mbps, Full-Duplex, MDI
[ 179.973220] jme 0000:03:00.5 enp3s0f5: Link is down
[ 182.791658] jme 0000:03:00.5 enp3s0f5: Link is up at ANed: 100 Mbps, Full-Duplex, MDI-X
[ 185.808164] jme 0000:03:00.5 enp3s0f5: Link is down
[ 206.695667] jme 0000:03:00.5 enp3s0f5: Link is up at ANed: 100 Mbps, Full-Duplex, MDI
[ 209.248130] jme 0000:03:00.5 enp3s0f5: Link is down
[ 212.795648] jme 0000:03:00.5 enp3s0f5: Link is up at ANed: 100 Mbps, Full-Duplex, MDI
[ 213.320768] IPv4: martian source 255.255.255.255 from 192.168.1.254, on dev enp3s0f5
[ 213.320805] ll header: 00000000: ff ff ff ff ff ff 00 04 ed ae 0d 89 08 00 ..............
[ 213.489340] IPv4: martian source 255.255.255.255 from 192.168.1.254, on dev enp3s0f5
[ 213.489374] ll header: 00000000: ff ff ff ff ff ff 00 04 ed ae 0d 89 08 00 ..............
[ 283.849521] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 539.846750] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 1051.096039] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 1522.802356] device-mapper: uevent: version 1.0.3
[ 1522.802466] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised:
dm-devel@redhat.com
[ 1524.049935] st: Version 20160209, fixed bufsize 32768, s/g segs 256
[ 1524.222239] BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
[ 2047.466458] REISERFS (device sdb1): found reiserfs format "3.6" with standard journal
[ 2047.466533] REISERFS (device sdb1): using ordered data mode
[ 2047.466534] reiserfs: using flush barriers
[ 2047.531504] REISERFS (device sdb1): journal params: device sdb1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[ 2047.532828] REISERFS (device sdb1): checking transaction log (sdb1)
[ 2047.574699] REISERFS (device sdb1): replayed 1 transactions in 0 seconds
[ 2047.639615] REISERFS (device sdb1): Using r5 hash to sort names
[ 2075.095683] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 2734.836292] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC=33:33:00:00:00:fb:14:da:e9:e8:48:af:86:dd SRC=fe80:0000:0000:0000:16da:e9ff:fee8:48af DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 4123.119025] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 6073.086599] REISERFS (device sdb1): found reiserfs format "3.6" with standard journal
[ 6073.086831] REISERFS (device sdb1): using ordered data mode
[ 6073.086832] reiserfs: using flush barriers
[ 6073.147890] REISERFS (device sdb1): journal params: device sdb1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[ 6073.149491] REISERFS (device sdb1): checking transaction log (sdb1)
[ 6073.185385] REISERFS (device sdb1): Using r5 hash to sort names
[ 6335.213077] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC=33:33:00:00:00:fb:14:da:e9:e8:48:af:86:dd SRC=fe80:0000:0000:0000:16da:e9ff:fee8:48af DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 7723.054435] SFW2-INext-DROP-DEFLT IN=enp3s0f5 OUT= MAC= SRC=fe80:0000:0000:0000:22cf:30ff:fe28:fda2 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=728019 PROTO=UDP SPT=5353 DPT=5353 LEN=44
[ 8278.707774] REISERFS (device sdb1): found reiserfs format "3.6" with standard journal
[ 8278.707955] REISERFS (device sdb1): using ordered data mode
[ 8278.707961] reiserfs: using flush barriers
[ 8278.771638] REISERFS (device sdb1): journal params: device sdb1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[ 8278.772989] REISERFS (device sdb1): checking transaction log (sdb1)
[ 8278.809422] REISERFS (device sdb1): Using r5 hash to sort names
#