Jedenaste_21

 0    21 词汇卡    michalesq
打印 检查自己
 
问题 - 答案 -
Command to show all atteched storages to the system?
开始学习
blkid
Command to display all physical volumes?
开始学习
pvdisplay
Command to display all volume groups?
开始学习
vgdisplay
Command to display all logical volumes?
开始学习
lvdisplay
Command to make filesystem for logical volume
开始学习
mksf /dev/vgname/lvname
How to create physical volume for LVM?
开始学习
pvcreate /dev/xvdf1 /dev/xvdf2
How to creage virtual group for LVM?
开始学习
vgcreate <vgname> /dev/xvdf1 /dev/xvdf2
How to create logical volume for LVM?
开始学习
lvcreate -n <lvname> -L 10G vgname
How to Remove logical volume?
开始学习
lvremove /dev/volume_name/volume_name_manager
How to Remove volume groups?
开始学习
vgremove <volume_group>
How to Remove physical volumes?
开始学习
pvremove /dev/xvdf1
Extending volume group battlestar by adding new device
开始学习
vgextend battlestar /dev/xvdj
How to extend a logical volume after adding new disks to virtual group for LVM?
开始学习
lvextend -L +20G /dev/vgname/lvname
Command for the operating system and file system to recognize the increase in size on the device?
开始学习
xfs_growfs /mnt/mydir
How to add label for the partition with xfs filesystem?
开始学习
xfs_admin -L <label name> /dev/xvdf1
How to add label for the partition with ext4 filesystem?
开始学习
tune2fs (or e2label) -L <label name> /dev/xvdf2
Create persistent mounts for the system - with UUID?
开始学习
1) blkid to get UUID, 2) add UUID=<UUID> /mnt/mount1 xfs default 1 2 to /etc/fstab
Create persistent mounts for the system - with label?
开始学习
1) blkid to get UUID, 2) LABEL=<label name> /mnt/mount2 ext4 defaults 1 2
How to display how much physical space left?
开始学习
free -m
Creating swap space with LVM
开始学习
1) create partition with LVM type, 2) create pv, vg, lv, 3) mkswap /dev/vgname/swap(lvname)
How to enable swap space?
开始学习
swapon /dev/volume_name/swap

您必须登录才能发表评论。