Jedenaste_21

 0    21 fiche    michalesq
Imprimir jogar verifique-se
 
questão - resposta -
Command to show all atteched storages to the system?
começar a aprender
blkid
Command to display all physical volumes?
começar a aprender
pvdisplay
Command to display all volume groups?
começar a aprender
vgdisplay
Command to display all logical volumes?
começar a aprender
lvdisplay
Command to make filesystem for logical volume
começar a aprender
mksf /dev/vgname/lvname
How to create physical volume for LVM?
começar a aprender
pvcreate /dev/xvdf1 /dev/xvdf2
How to creage virtual group for LVM?
começar a aprender
vgcreate <vgname> /dev/xvdf1 /dev/xvdf2
How to create logical volume for LVM?
começar a aprender
lvcreate -n <lvname> -L 10G vgname
How to Remove logical volume?
começar a aprender
lvremove /dev/volume_name/volume_name_manager
How to Remove volume groups?
começar a aprender
vgremove <volume_group>
How to Remove physical volumes?
começar a aprender
pvremove /dev/xvdf1
Extending volume group battlestar by adding new device
começar a aprender
vgextend battlestar /dev/xvdj
How to extend a logical volume after adding new disks to virtual group for LVM?
começar a aprender
lvextend -L +20G /dev/vgname/lvname
Command for the operating system and file system to recognize the increase in size on the device?
começar a aprender
xfs_growfs /mnt/mydir
How to add label for the partition with xfs filesystem?
começar a aprender
xfs_admin -L <label name> /dev/xvdf1
How to add label for the partition with ext4 filesystem?
começar a aprender
tune2fs (or e2label) -L <label name> /dev/xvdf2
Create persistent mounts for the system - with UUID?
começar a aprender
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?
começar a aprender
1) blkid to get UUID, 2) LABEL=<label name> /mnt/mount2 ext4 defaults 1 2
How to display how much physical space left?
começar a aprender
free -m
Creating swap space with LVM
começar a aprender
1) create partition with LVM type, 2) create pv, vg, lv, 3) mkswap /dev/vgname/swap(lvname)
How to enable swap space?
começar a aprender
swapon /dev/volume_name/swap

Você deve entrar para postar um comentário.