United States (change)
Shortcuts: Downloads Fedora Red Hat Network
November 16, 2006
Red Hat's customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Every month, Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries.
As a way to save a few valuable pennies on newer PCs, manufacturers are increasingly getting rid of the good old PS/2 keyboard and mouse interfaces. As a result, some recent systems only ship with USB ports to which we need to connect a USB keyboard and mouse.
USB is all good, but what if the driver for your USB controller is not loaded? In practice, this is not a problem, as Red Hat loads the ehci- hcd and uhci-hcd drivers automatically at boot time.
There are situations, namely in emergency mode, where the USB drivers won't be available. So you won't even be able to enter a command. This is due to the fact that in emergency mode all drivers need to be provided in the initrd file under /boot, and USB is not there by default. The trick is to add those drivers, so that they will be available earlier. The 'mkinitrd' command can do precisely that with the '--with' argument (this only works under RHEL4):
mkinitrd --with=ehci-hcd --with=uhci-hcd /boot/newinitrd-`uname -r`.img `uname -r`
Add a new entry in your grub.conf file (always do backups!) that points to this new initrd image, and you're done! Your USB keyboard now works in emergency mode.
By default, the USB device is mounted as a vfat filesystem rather than ext3. The vfat filesystem has a maximum filesize limit of 4GB (minus 1 byte). Most filesystems are formatted to vfat because it works on multiple operating systems. However to copy a file larger than 4GB, it has to be changed to the ext3 filetype. The following steps will change the file system to ext3:
mkfs.ext3 /dev/[device_name]
where [device_name] can be sdX
Note: The Windows operating system will not read ext3 filesystems without third party applications.
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
}
If named cannot find the rndckey in /etc/rndc.key, it will report the error 'rndc: connection to remote host closed'.
When using rndc-confgen -a to create a new rndc key, the new key will be called rndc-key by default. Therefore, the /etc/rndc.key file will need to be edited and the key name changed to rndckey for the sake of named. Likewise the command:
rndc-confgen -a -k rndckey
will give the key the correct name as referenced in named.conf.
Here are some points to keep in mind when setting up named and rndc:
$ gconftool-2 --set --type boolean /apps/gnome-terminal/profiles/Default/login_shell true
$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --set --type boolean /apps/gnome-terminal/profiles/Default/login_shell true
$ gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --set --type boolean /apps/gnome-terminal/profiles/Default/login_shell true
Note: gconftool-2 is a utility supplied in the GConf2 package.
A GFS filesystem can be mounted on one machine without the need to start the cluster services. The trick is to use the "lock_nolock" locking protocol.
There are a number of ways to do this:
modprobe gfs
gfs_tool margs lockproto=lock_nolock
mount -t gfs /dev/VolGroup00/LogVol01 /mount/point
The gfs_tool command has to be performed for each GFS filesystem to be mounted. For example:
gfs_tool margs lockproto=lock_nolock mount -t gfs /dev/VolGroup00/LogVol02 /mount/data gfs_tool margs lockproto=lock_nolock mount -t gfs /dev/VolGroup00/LogVol03 /mount/shared
Another way to achieve the same result is to pass the lockproto option during mounting. The example above can be accomplished with the following commands:
mount -t gfs /dev/VolGroup00/LogVol02 /mount/data -o lockproto=lock_nolock mount -t gfs /dev/VolGroup00/LogVol03 /mount/shared -o lockproto=lock_nolock
Again, make sure that the gfs module is loaded before mounting.
Note: This proves useful for situations where the cluster is down and data needs to be accessed from GFS or for back-up purposes. Another machine with an attached tape device can also mount the gfs and back it up.
Warning: Although the gfs mount will be accessible to other machines, do not mount with the lock_nolock option on multiple machines at the same time or the data will be corrupted.
The Sockets Direct Protocol (SDP) is a protocol that maps standard socket operations onto native InfiniBand Remote Direct Memory Access (RDMA) operations. This allows socket applications to run unchanged and still receive most of the performance benefits of Infiniband.
As of Open Fabrics Enterprise Distribution (OFED) version 1.0 (which will be available on Red Hat Enterprise Linux 4.5 and Red Hat Enterprise Linux 5), the SDP kernel code can only support approximately 800 simultaneous connections being open. If more connections are needed, SDP should not be used. Either IP over InfiniBand (IPoIB) or direct RDMA via one of the various other methods should be chosen as an alternative. This limitation has been removed in the upstream OFED 1.1 release, and will be removed from Red Hat products when the OFED 1.1 code is released as part of a regular update to Red Hat Enterprise Linux 4 and Red Hat Eneterprise Linux 5.
Release Found: Red Hat Enterprise Linux 4
Assumption:
This article assumes that there is a correctly configured LDAP server.
On the LDAP server:
dn: ou=netgroup,dc=example,dc=com objectClass: organizationalUnit ou: netgroup
dn: cn=myadmins,ou=netgroup,dc=example,dc=com objectClass: nisNetgroup objectClass: top cn: myadmins nisNetgroupTriple: (-,user1,-) nisNetgroupTriple: (-,user2,-)
On the Client:
UsePAM yes
nss_base_netgroup ou=netgroup,dc=example,dc=com?one
netgroup: ldap
+:ALL:LOCAL +:@myadmins:ALL -:ALL:ALL
account required /lib/security/$ISA/pam_unix.so account [default=bad success=ok user_unknown=ignore service_err=ignore system_err=ignore] /lib/security/$ISA/pam_ldap.so account require /lib/security/$ISA/pam_access.so
The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.
This article is protected by the Open Publication License, V1.0 or later. Copyright © 2006 by Red Hat, Inc.