标签:
以下试题来自:
http://www.certdepot.net/rhel7-rhcsa-sample-exam-1/
1. Create a xfs file system on a new logical volume of 100MB called lv_xfs. Mount it permanently with uuid under /xfs.
2. Extend the existing xfs file system to a total size of 200MB and add a label called myFS.
Reference answer:
# lvcreate -n lv_xfs -L 100M vg0
# mkdir /xfs
# mkfs.xfs /dev/vg0/lv_xfs
# blkid | grep lv_xfs >> /etc/fstab
# vim /etc/fstab
UUID=xxx /xfs xfs default 1 2
# mount -a
# lvextend -L 200M /dev/vg0/lv_xfs
# xfs_growfs /xfs
# umount /xfs
# xfs_admin -l "myFS" /dev/vg0/lv_xfs
# mount /xfs
标签:
原文地址:http://www.cnblogs.com/emmagikyo/p/4334838.html