Use “devfsadm”; from the man page: devfsadm(1M) maintains the /dev namespace. It replaces the previous suite of devfs administration tools including drvconfig(1M), disks(1M), tapes(1M), ports(1M), audlinks(1M), and devlinks(1M). References: Adding a Hard Drive to Solaris 10
By default, in RHEL, nscd is configured to have a persistent cache – one that is “stored on the disk and therefore survive[s] a nscd restart or e.g. machine reboot” according to the nscd.conf man page. To flush the cache, you must run nscd with the “-i” flag instead of simply restarting it: sudo nscd [...]
Edit the following files as appropriate: /etc/hosts /etc/nodename /etc/hostname.<interface> /etc/defaultrouter Reboot to apply the changes, or run: # svcadm restart network/physical
Here for my reference; adapt for your convenience: or possibly:
Steps for creating an XFS partition on /dev/sdc which encompasses the entire disk. (LVM is not used in this example. Post written using Scientific Linux 5.3, but should be relevant to any RHEL clone with XFS support.) Partition the disk using fdisk; we want the standard Linux partition id of “83″, so no need to [...]
If you want to inspect files in an RPM without installing it, use rpm2cpio piped to cpio: rpm2cpio file.rpm | cpio -id Note that this will create a (local) directory tree under which the extracted files will be placed. In other words, expect the files to be extracted under a newly created “usr” directory or [...]
To view ACLs on a file: > getfacl file.txt To modify the ACL on a file: > setfacl -m user:rwx file.txt To recursively change an ACL: > setfacl -R -m user:rwx . To modify the default ACL for a directory: > setfacl -d -m user:rwx. See the getfacl and setfacl man pages for more information.
The crle command on Solaris is used to configure the runtime linking environment (get it?). If you are seeing errors similar to the following, you may need to look at and adjust your linking environment with crle: ld.so.1: conftest: fatal: libreadline.so.5: open failed: No such file or directory Using crle is straightforward; to view the [...]
Check the status of a service: > svcs ntp STATE STIME FMRI disabled Feb_27 svc:/network/ntp:default View a service’s dependencies: > svcs -d ntp STATE STIME FMRI online Feb_27 svc:/network/service:default To see what other services depend on a given service: > svcs -D ntp STATE STIME FMRI online Feb_27 svc:/milestone/multi-user:default To enable a service: > pfexec [...]
Use zonecfg to configure the lofs mount; this will work nicely for CDs in addition to ordinary filesystems: # zonecfg -z zone1 zonecfg:zone1> add fs zonecfg:zone1:fs> set dir=/depot zonecfg:zone1:fs> set special=/depot zonecfg:zone1:fs> set type=lofs zonecfg:zone1:fs> add options [nodevices] zonecfg:zone1:fs> end zonecfg:zone1> commit zonecfg:zone1> exit special is the directory from the global zone to mount; dir is the [...]