Differences between revisions 2 and 3
Revision 2 as of 2010-01-21 16:08:18
Size: 529
Editor: PieterSmit
Comment:
Revision 3 as of 2010-01-22 12:50:04
Size: 1221
Editor: PieterSmit
Comment: Add more notes
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
 * 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

   }}}

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

...


CategoryLinux

LinuxRedhat (last edited 2021-06-06 00:25:15 by PieterSmit)