1xfs_logprint(8) System Manager's Manual xfs_logprint(8)
2
3
4
6 xfs_logprint - print the log of an XFS filesystem
7
9 xfs_logprint [ options ] device
10
12 xfs_logprint prints the log of an XFS filesystem (see xfs(5)). The
13 device argument is the pathname of the partition or logical volume con‐
14 taining the filesystem. The device can be a regular file if the -f
15 option is used. The contents of the filesystem remain undisturbed.
16 There are two major modes of operation in xfs_logprint.
17
18 One mode is better for filesystem operation debugging. It is called
19 the transactional view and is enabled through the -t option. The trans‐
20 actional view prints only the portion of the log that pertains to
21 recovery. In other words, it prints out complete transactions between
22 the tail and the head. This view tries to display each transaction
23 without regard to how they are split across log records.
24
25 The second mode starts printing out information from the beginning of
26 the log. Some error blocks might print out in the beginning because
27 the last log record usually overlaps the oldest log record. A message
28 is printed when the physical end of the log is reached and when the
29 logical end of the log is reached. A log record view is displayed one
30 record at a time. Transactions that span log records may not be decoded
31 fully.
32
34 -b Extract and print buffer information. Only used in transactional
35 view.
36
37 -c Attempt to continue when an error is detected.
38
39 -C filename
40 Copy the log from the filesystem to the file filename. The log
41 itself is not printed.
42
43 -d Dump the log from front to end, printing where each log record
44 is located on disk.
45
46 -D Do not decode anything; just print data.
47
48 -e Exit when an error is found in the log. Normally, xfs_logprint
49 tries to continue and unwind from bad logs. However, sometimes
50 it just dies in bad ways. Using this option prevents core
51 dumps.
52
53 -f Specifies that the filesystem image to be processed is stored in
54 a regular file at device (see the mkfs.xfs(8) -d file option).
55 This might happen if an image copy of a filesystem has been made
56 into an ordinary file with xfs_copy(8).
57
58 -l logdev
59 External log device. Only for those filesystems which use an
60 external log.
61
62 -i Extract and print inode information. Only used in transactional
63 view.
64
65 -q Extract and print quota information. Only used in transactional
66 view.
67
68 -n Do not try and interpret log data; just interpret log header
69 information.
70
71 -o Also print buffer data in hex. Normally, buffer data is just
72 decoded, so better information can be printed.
73
74 -s start-block
75 Override any notion of where to start printing.
76
77 -t Print out the transactional view.
78
80 mkfs.xfs(8), mount(8).
81
82
83
84 xfs_logprint(8)