Trzynaste_21

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

Sie müssen eingeloggt sein, um einen Kommentar zu schreiben.