Fix disabled dmp path
root # /etc/vx/bin/vxdisksetup -i EMC0_146
VxVM vxdisksetup ERROR V-5-2-3628 The dmpnode EMC0_146 is disabled.Can not
proceed with vxdisksetup.
root # vxdisk list EMC0_146
Device: EMC0_146
devicetag: EMC0_146
type: auto
flags: online error private autoconfig
errno: Device path not valid
Multipathing information:
numpaths: 2
c5t5006048449AE7F48d149s2 state=disabled
c6t5006048C49AE7F77d149s2 state=disabled
solaris: how to recover solaris 11 root password
boot net -s
boot cdrom -s, if it ask username: root/solaris or root/password.
on x86, you need edit grub and append -s on kernel line.
after login. mount /dev/dsk/cxtxdxsx /a
if you use zfs for /, then zfs import
zfs list
zfs set mountpoint=/a rpool/ROOT/solaris
zfs mount -f rpool/ROOT/solaris
then edit /etc/shadow
remove the password section, let it looks likes.
root::15356::::::
don’t forget to reset the mountpoint back
zfs set mountpoint=/ rpool/ROOT/solaris
reboot.
mysqld: unknown variable ‘master-host=
Are you trying to setup on replication on mysql5.5+ ? ok. then that’s the issue.
The following options are removed in MySQL 5.5. If you attempt to start mysqld with any of these options in MySQL 5.5, the server aborts with an unknown variable error.
–master-host
–master-user
–master-password
–master-port
Solution, comment the master- related variables. Read the rest of this entry »
ldap and sudo issue on Linux box
issue with sudo, we can login with ldap account but can’t sudo -i. When turned on sudoer debug, got following error.
sudo: user_matches=1
sudo: host_matches=0
sudo: sudo_ldap_lookup(0)=0×40
[sudo] password for edy:
Actually the same configuration works on other hosts.
On broken-host, debug info,
sudo: found:cn=UNIX-Team-root,ou=SUDOers,dc=abc,dc=com
sudo: ldap sudoUser netgroup ‘+unixadms’ … not
Read the rest of this entry »
how to fix ‘who -r’ shows nothing
OS: Solaris 9.
Issue: who -r won’t give you the running level. so the pkgadd won’t work.
myhost1:~ root # who -r # shows no output
Solution:
check the /var/adm/utmpx, maybe the file has been corrupted
myhost1:~ root # cd /var/adm
myhost1:adm root # vi u1.log
# paste the following content.
system boot 0 2 0000 0000 1315335814 0 0 0 Tue Sep 6 20:03:34 2011
run-level 3 0 1 0063 0123 1315335839 0 0 0 Tue Sep 6 20:03:59 2011
rc2 s2 1262 8 0000 0000 1315335885 0 0 0 Tue Sep 6 20:04:45 2011
rc3 s3 3938 8 0000 0000 1315335915 0 0 0 Tue Sep 6 20:05:15 2011
Read the rest of this entry »
Install Lftp on Solaris 9 manually
Yeah, there is pkg-get way.
If you don’t have pkg-get, you can follow the steps.
wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/lftp-4.0.10-sol9-sparc-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/readline-5.2-sol9-sparc-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/9/libgcrypt-1.4.6-sol9-sparc-local.gz
Read the rest of this entry »
Last LAMP update in CentOS 5/6
PowerStack is a repository that allows you to run the latest LAMP versions in your Enterprise Linux. Currently both CentOS and RHEL are supported (i686 and x86_64).
rpm -Uvh http://download.powerstack.org/powerstack-release-0-2.noarch.rpm
yum update php
From http://wiki.powerstack.org/PowerStack
It’s a very cool project, thanks for the developers.
Cygwin telnet tips etc
Install Telnet Using Cygwin On Windows 7
telnet for Cygwin is in inetutils, install the package to gain telnet
Crontab issue:
pam_access(crond:account): access denied
crond[9985]: CRON (someuser) ERROR: failed to open PAM security session: Success
crond[9985]: CRON (someuser) ERROR: cannot set security context
* if has /etc/cron.allow – add users to this file
* /etc/security/access.conf – comment out
# All other users should be denied to get access from all sources.
#- : ALL : ALL
# -:ALL EXCEPT root:LOCAL
Important Server Maintenance/Update Notes from RH
First, the most important thing is to perform system update in a maintenance window, because if you have any critical service, the service must be stopped before the upgrade begins.
The maintenance window is also necessary because the server needs a reboot to the new kernel goes into production.
If the server has some third-party module into the kernel, the inclusion of these modules should also be made for the new kernel, otherwise the new kernel will not contain all the modules required and this can cause problems at boot process and devices’ recognition, such as storage, drive controllers, and others…
Read the rest of this entry »
Install CentOS 6.0(64bit) with one CD
CentOS 6.0 Finally released. seems the CD/DVD has been updated. you should choose one net install CD or 4.4G DVD. could we have minimal install with one CD ? YES.
Here is the CD, you can minimal install the CentOS 6.0. so it good for guys who want to download one CD and install CentOS, of course you can install once you have installed basic system.
Download link:Download from linuxdict
Arch: 64bit
CD Size: 313M
Md5sum: 3f75769d89c8d5f897435f714abe4d11
Install details, please check http://www.linuxdict.com/2011-07-centos-6-0-in-one-cd/