Trzynaste_21

 0    21 schede    michalesq
Stampa Gioca Testa il tuo livello
 
Domanda - Risposta -
How to disable swap space?
inizia ad imparare
swapoff /dev/volume_name/swap
How to add swap space to /etc/fstab?
inizia ad imparare
/dev/vgname/swap swap swap 0 1
How to display swap devices
inizia ad imparare
swapon -s // cat /proc/swaps
How to install samba client as well as cifs and nfs utils?
inizia ad imparare
sudo yum install samba samba-client samba-common cifs-utils
How to point samba client to samba server?
inizia ad imparare
smbclient -L <ip address of the samba server>, type password
How to mount CISF - not persistent?
inizia ad imparare
mount -t cifs -o username=<username> //<server ip address/share_name /mnt/sambashare
How to mount NFS - not persistent?
inizia ad imparare
mount -t nfs <server IP>:/nfsshare /mnt/nfsshare
How to add CIFS mount to /etc/fstab?
inizia ad imparare
//<IP server>/<sharename> /mnt/sambashare cifs username=<unsername>,password=123456 0 0
How to add NFS mount to /etc/fstab?
inizia ad imparare
<IP server>:/nfsshare /mnt/nfsshare nfs defaults 0 0
How to extend a virtual group for LVM?
inizia ad imparare
vgextend <vgname> /dev/xvdg
How to move content of physical volume to extents from the same virtual group?
inizia ad imparare
pvmove /dev/xvdf1
How to remove /dev/xvdf1 from the volume group?
inizia ad imparare
vgreduce <vgname> /dev/xvdf1
How to extend logical volume to 5G?
inizia ad imparare
lvextend -L 5G /dev/vgname/lvname
How to extend logical volume by 5G?
inizia ad imparare
lvextend -L +5G /dev/battlestar/galactica
How to let Kernel know about extension of logical volume (XFS partition type)?
inizia ad imparare
xfs_growfs /mnt/myvolume
How to let Kernel know about extension of logical volume (EXT4 partition type)?
inizia ad imparare
resize2fs /mnt/myvolume
What file systems support ACLs?
inizia ad imparare
XFS, EXT4
Why do you need ACLs?
inizia ad imparare
ACLs give an access to files and directories for users not included in user groups
How to check extended rights for the file?
inizia ad imparare
getfacl file1
How to set extended rights for the file to the user?
inizia ad imparare
setfacl -m u:<username>: rw file1
How to set extended rights for the file to the group?
inizia ad imparare
setfacl -m g:<groupname>: rw file1

Devi essere accedere per pubblicare un commento.