RHEL官网文档阅读笔记

以下内容来自RedHat 官方文档,版本为RHEL 8。

blkid

External programs such as blkid invoked by the rules might open the device for a brief period of time, making the device inaccessible for other uses.
blkid 通常用来获取设备的UUID,但文档中提出 blikid 会短暂阻塞设备的访问,真是个坏消息。
替代方法

ls -l /dev/disk/by-uuid/

total 0
drwxr-xr-x 2 root root  80 Aug 10 09:30 ./
drwxr-xr-x 5 root root 100 Aug 10 09:30 ../
lrwxrwxrwx 1 root root   9 Aug 10 09:30 e076fcd4-a3a2-45fa-ac25-cb77a3aa2af3 -> ../../sdc
lrwxrwxrwx 1 root root   9 Aug 10 09:30 e0d07ec2-c993-49e4-a52d-f7c373dcc344 -> ../../sdb

lsblk -f /dev/sdb

NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sdb  swap   1           e0d07ec2-c993-49e4-a52d-f7c373dcc344                [SWAP]

XFS

XFS does not support shrinking.

你可能感兴趣的:(Linux,笔记,服务器,linux)