Trzynaste_21

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

コメントを投稿するにはログインする必要があります。