1221
Comment: Add more notes
|
2170
|
Deletions are marked like this. | Additions are marked like this. |
Line 45: | Line 45: |
* NFS Filesystems /etc/fstab , activated by /etc/init.d/netfs {{{ mount -t nfs server1:/var/ftp/pub /mnt/server1 Line in /etc/fstab server1:/var/ftp/pub /mnt/server1 nfs defaults 0 0 }}} * Automounter (autofs RPM) U5-P137 /etc/auto.master: << contains dir in fs, and yet another config file with further specific mount options. /misc /etc/auto.misc /net -hosts << -hosts allow browsing of nfs shares (could also use -g flag) /home/guests /etc/auto.home.guests /- /etc/auto.direct << /- Allows auto.direct to mount anywhere in file-system |
|
Line 46: | Line 58: |
/etc/auto.misc: server1 -ro,soft server1:/var/ftp/pub or cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom |
|
Line 47: | Line 63: |
/etc/auto.home.guests * -fstype=nfs server1:/home/guests/& << Mounts nfs on server1 with same name as dir access local in /home/guests |
RedHat
- Set-up and installation notes.
- Add new yum repo
sudo wget -P /etc/yum.repos.d/ ftp://server1/pub/gls/server1.repo
- Start / Stop a service.
$ sudo /sbin/service httpd stop $ sudo /sbin/chkconfig httpd off OR System->Admin->Services
- YUM
yum localinstall xxxxx.rpm yum clean dbcache / all
- Persistent Kernel Configuration sysctl, add to /proc/sys
sysctl -a sysctl -p << Process sysctl.conf
fdisk & partitions
partprove << reinitializes the kernel's in-memory version of the partition table e2label /dev/sdX MYfsLabel mount LABEL-MYfsLabel /mnt blkid << show all labels tune2fs -o acl,user_xattr /dev/sda2 << set default mount options., check with dumpe2fs
- Files in use
fuser -v /mnt/home << who is using file system fuser -km /mnt/home << kill all actions on a filesystem mount -o remount,rw / mount --bind /something /anotherthing
- NFS Filesystems /etc/fstab , activated by /etc/init.d/netfs
mount -t nfs server1:/var/ftp/pub /mnt/server1 Line in /etc/fstab server1:/var/ftp/pub /mnt/server1 nfs defaults 0 0
- Automounter (autofs RPM) U5-P137
/etc/auto.master: << contains dir in fs, and yet another config file with further specific mount options.
- /misc /etc/auto.misc
/net -hosts << -hosts allow browsing of nfs shares (could also use -g flag) /home/guests /etc/auto.home.guests /- /etc/auto.direct << /- Allows auto.direct to mount anywhere in file-system
- server1 -ro,soft server1:/var/ftp/pub or cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom
-fstype=nfs server1:/home/guests/& << Mounts nfs on server1 with same name as dir access local in /home/guests
- /misc /etc/auto.misc
...