if cannot demote (dcpromo) you can use
dcpromo /Forceremoval
and next you must manual remove from AD
2010-03-30
2010-01-18
Howtodo remove disk from mirror AIX
before remove you must unmirror (detatch)
#unmirrorvg vg-name hdisk-no
then remove disk from volumegroup
#reducevg vg-name hdisk-no
and delete hdisk-no
#rmdev -dl hdisk-no
................................................................
#unmirrorvg
then remove disk from volumegroup
#reducevg
and delete hdisk-no
#rmdev -dl hdisk-no
................................................................
2010-01-16
Howtodo unmonitor resourcegroup on SUN cluster
# scstat -g ==> for list resource-group
# scswitch -n -M -j resource-name
unmonitor resource-group of cluster
# scswitch -e -M -j resource-name
to monitor resource-group of cluster
# scswitch -n -M -j
unmonitor resource-group of cluster
# scswitch -e -M -j
to monitor resource-group of cluster
2009-09-29
How to config MPXIO for EMC CX
vi /kernel/drv/scsi_vhci.conf
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "@(#)scsi_vhci.conf 1.9 04/08/26 SMI"
#
name="scsi_vhci" class="root";
#
# Load balancing global configuration: setting load-balance="none" will cause
# all I/O to a given device (which supports multipath I/O) to occur via one
# path. Setting load-balance="round-robin" will cause each path to the device
# to be used in turn.
#
load-balance="round-robin";
#
# Automatic failback configuration
# possible values are auto-failback="enable" or auto-failback="disable"
auto-failback="disable";
#
# For enabling MPxIO support for 3rd party symmetric device need an
# entry similar to following in this file. Just replace the "SUN SENA"
# part with the Vendor ID/Product ID for the device, exactly as reported by
# Inquiry cmd.
#
device-type-scsi-options-list =
"DGC RAID", "symmetric-option";
symmetric-option = 0x1000000;
========
and reboot host
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#pragma ident "@(#)scsi_vhci.conf 1.9 04/08/26 SMI"
#
name="scsi_vhci" class="root";
#
# Load balancing global configuration: setting load-balance="none" will cause
# all I/O to a given device (which supports multipath I/O) to occur via one
# path. Setting load-balance="round-robin" will cause each path to the device
# to be used in turn.
#
load-balance="round-robin";
#
# Automatic failback configuration
# possible values are auto-failback="enable" or auto-failback="disable"
auto-failback="disable";
#
# For enabling MPxIO support for 3rd party symmetric device need an
# entry similar to following in this file. Just replace the "SUN SENA"
# part with the Vendor ID/Product ID for the device, exactly as reported by
# Inquiry cmd.
#
device-type-scsi-options-list =
"DGC RAID", "symmetric-option";
symmetric-option = 0x1000000;
========
and reboot host
2009-07-21
How to do Create a Virtual IP in Solaris
1. create /etc/hostname.: containing the hostname of the virtual IP
/etc/hostname.ce0:1
2. add the hostname and virtual IP to /etc/hosts
reboot or Sol10 restart service by # svcadm restart svc:/network/physical
3. or by Command
ifconfig: plumb
ex : ifconfig ce0:1 plumb
ifconfig: netmask broadcast + up
ex : ifconfig ce0:1 10.67.1.141 netmask 255.255.255.0 broadcast + up
/etc/hostname.ce0:1
2. add the hostname and virtual IP to /etc/hosts
reboot or Sol10 restart service by # svcadm restart svc:/network/physical
3. or by Command
ifconfig
ex : ifconfig ce0:1 plumb
ifconfig
ex : ifconfig ce0:1 10.67.1.141 netmask 255.255.255.0 broadcast + up
2009-06-26
How to change kernel from 32 to 64 bit on AIX
if your IBMserver is 64 bit but it run at 32 bit
it can mount filesystem max 1 TB
if you want to use filesystem larger than 1 TB you can change kernel to 64 bit
1. Ensure currently kernel is running as 32 bit.
# bootinfo -K
32
2. Run these commands. Require system reboot, so let customer stop all applications first.
# ln -sf /usr/lib/boot/unix_64 /unix
# ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice (ipldevice is hdiskx which is the boot disk)
# bootlist -om normal (list bootdevice)
# bosboot -ad /dev/hdisk0 or /dev/hdisk1
# shutdown -Fr
3. After reboot, verify kernel run as 64 bit.
# bootinfo -K
64
If we want to change back kernel from 64 to 32 bit. Use all steps above, but change the commands at step2.
# ln -sf /usr/lib/boot/unix_mp /unix
# ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice (ipldevice is hdiskx which is the boot disk)
# shutdown -Fr
it can mount filesystem max 1 TB
if you want to use filesystem larger than 1 TB you can change kernel to 64 bit
1. Ensure currently kernel is running as 32 bit.
# bootinfo -K
32
2. Run these commands. Require system reboot, so let customer stop all applications first.
# ln -sf /usr/lib/boot/unix_64 /unix
# ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice (ipldevice is hdiskx which is the boot disk)
# bootlist -om normal (list bootdevice)
# bosboot -ad /dev/hdisk0 or /dev/hdisk1
# shutdown -Fr
3. After reboot, verify kernel run as 64 bit.
# bootinfo -K
64
If we want to change back kernel from 64 to 32 bit. Use all steps above, but change the commands at step2.
# ln -sf /usr/lib/boot/unix_mp /unix
# ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice (ipldevice is hdiskx which is the boot disk)
# shutdown -Fr
2009-06-25
How to disable users for SSH
you can disable root and deny some user for SSH by edit /etc/ssh/sshd_config
#vi /etc/ssh/sshd_config
....
PermitRootLogin no
....
DenyUsers oracle
-----------
and restart service
for solaris10
#svcadm restart ssh
or solaris9
#/etc/init.d/sshd restart
#vi /etc/ssh/sshd_config
....
PermitRootLogin no
....
DenyUsers oracle
-----------
and restart service
for solaris10
#svcadm restart ssh
or solaris9
#/etc/init.d/sshd restart
Subscribe to:
Posts (Atom)