Jedenaste_21

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

Vous devez vous connecter pour poster un commentaire.