Linux command
fsadm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Check
fsadm check /dev/vg_name/lv_name
Dry-run
fsadm -n resize /dev/vg_name/lv_name 10G
Grow
fsadm resize /dev/vg_name/lv_name
Example
fsadm -l resize /dev/vg_name/lv_name 100G
Example
fsadm -e resize /dev/vg_name/lv_name 20G
说明
fsadm checks or resizes filesystems on LVM logical volumes. It is a helper script that wraps filesystem-specific tools like resize2fs, xfs_growfs, and fsck.
参数
- check
- Check filesystem for errors
- resize
- Resize filesystem (grow or shrink)
- -n, --dry-run
- Print what would be done without making changes
- -l, --lvresize
- Resize the underlying logical volume as well
- -e, --ext-offline
- Unmount ext2/3/4 filesystem and resize offline
- -f, --force
- Force operation without confirmation
- -v, --verbose
- Verbose mode
- -y, --yes
- Answer yes to all prompts
FAQ
What is the fsadm command used for?
fsadm checks or resizes filesystems on LVM logical volumes. It is a helper script that wraps filesystem-specific tools like resize2fs, xfs_growfs, and fsck.
How do I run a basic fsadm example?
Run `fsadm check /dev/vg_name/lv_name` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does check do in fsadm?
Check filesystem for errors