هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.
ماذا يفعل
xfs_info MOUNTPOINT prints how the XFS file system was created: block size, number of allocation groups, inode size, log size and features like reflink and bigtime. It works on mounted file systems (and on devices or image files).
طريقة الكتابة
xfs_info [-t MTAB] MOUNTPOINT | DEVICE | IMAGEالخيارات 3
الأكثر استخدامًا
لا يوجد شيء يطابق هذا الفلتر.
أمثلة 10
$ مستخدم عادي# بصلاحية root (أو مع sudo)
1Show a mounted XFS
xfs_info / meta-data=/dev/mapper/rhel-root isize=512 agcount=4, agsize=1113856 blks data = bsize=4096 blocks=4455424, imaxpct=25isize = inode size, bsize = block size.
2By device
xfs_info /dev/vdb1Also works unmounted in newer xfsprogs.
3Check reflink support (fast copies)
xfs_info /data | grep -o 'reflink=[01]' reflink=1cp --reflinkmakes instant copies.4Check bigtime (dates after 2038)
xfs_info /data | grep -o 'bigtime=[01]'1 = ready for 2038.
5Size before and after growing
xfs_info /data | grep ^data; xfs_growfs /data; xfs_info /data | grep ^dataThe blocks value grows.
6Log (journal) size
xfs_info /data | grep ^logBigger logs help heavy metadata work.
7Compare two servers
ssh server2 xfs_info / | diff - <(xfs_info /)Find different creation settings.
8Is it really XFS?
findmnt -no FSTYPE /data xfsxfs_info fails on other types.
9Data for capacity reports
xfs_info /data | awk -F'[ =,]+' '/^data/ {print $3*$5/1024/1024/1024 " GiB"}'blocks × block size.
10Use xfs_spaceman for free space details
xfs_spaceman -c 'freesp -s' /dataFragmentation of free space.
لا يوجد شيء يطابق هذا الفلتر.
رموز الخروج
0 | Done. |
1 | Error. |