الفلاتر
طريقة البحث
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • "كلمتان" تجد العبارة بالضبط.
  • --name أو -x تجد خيارًا.
  • #كلمة تبحث داخل الأوامر فقط.
  • @grep تجد الدروس والمعامل التي تستخدم grep.
  • الفلاتر: cat:network · in:labs · level:rhcsa · ch:8 · root:yes. ضع ! قبل كلمة لاستبعادها. OR بين الكلمات تعني إحداها.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث

xfs_info

Show the geometry and features of an XFS file system (block size, allocation groups, log, features).

المستوى
لينكس اليومي
المجموعة
الأقراص وأنظمة الملفات
يحتاج root
للتغييرات
الحزمة
xfsprogs

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

ماذا يفعل

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

الأكثر استخدامًا

MOUNTPOINT | DEVICE
The file system to show.
-t MTAB
Use another mount table file.
-V
Show the version.

أمثلة 10

$ مستخدم عادي# بصلاحية root (أو مع sudo)

  1. 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=25

    isize = inode size, bsize = block size.

  2. 2By device

    xfs_info /dev/vdb1

    Also works unmounted in newer xfsprogs.

  3. 3Check reflink support (fast copies)

    xfs_info /data | grep -o 'reflink=[01]'
    reflink=1

    cp --reflink makes instant copies.

  4. 4Check bigtime (dates after 2038)

    xfs_info /data | grep -o 'bigtime=[01]'

    1 = ready for 2038.

  5. 5Size before and after growing

    xfs_info /data | grep ^data; xfs_growfs /data; xfs_info /data | grep ^data

    The blocks value grows.

  6. 6Log (journal) size

    xfs_info /data | grep ^log

    Bigger logs help heavy metadata work.

  7. 7Compare two servers

    ssh server2 xfs_info / | diff - <(xfs_info /)

    Find different creation settings.

  8. 8Is it really XFS?

    findmnt -no FSTYPE /data
    xfs

    xfs_info fails on other types.

  9. 9Data for capacity reports

    xfs_info /data | awk -F'[ =,]+' '/^data/ {print $3*$5/1024/1024/1024 " GiB"}'

    blocks × block size.

  10. 10Use xfs_spaceman for free space details

    xfs_spaceman -c 'freesp -s' /data

    Fragmentation of free space.

رموز الخروج

0Done.
1Error.

الدليل الكامل

هذه الصفحة تشرح الأمر بكلمات بسيطة. الدليل الأصلي فيه كل التفاصيل.

في الطرفية: man 8 xfs_info