Posts tagged ·

Remove

·...

Remove IP alias error on AIX

Comments Off

Problem:

Tried to remove an IP alias on en0, but failed.

 

chdev -l en0 -a delalias4=126.3.45.90,255.255.255.0
Method error (/usr/lib/methods/chgif):
 0514-009 Cannot delete an object from the device
 configuration database.
0821-232 chgif: Cannot delete alias6 (126.3.45.90) from CuAt.

Root cause:

 

The netmask was wrong in the chdev command.

 

lsattr -El en0 -a  alias4|grep 26.3.45.90
alias4 26.3.45.90,26.3.45.255  IPv4 Alias including Subnet Mask True

 

Solution:

Enter the correct netmask, now it works:

chdev -l en0 -a delalias4=26.3.45.90,26.3.45.255
en0 changed

 

 

Comments Off

GPFS Node Renamed or Removed

Comments Off

 Technote (FAQ)
 
Question
How can one rename or remove a node from a GPFS cluster?
 
Answer

Occasionally administrators need to rename or remove a node from a GPFS cluster. Typically the operation can be done without causing an outage across the cluster. The "Changing IP addresses and host names" procedures linked in the related URL sections details the appropriate method to use for changing IPs or host names. The "Deleting nodes from a GPFS cluster" procedure also linked in the related URL section details the method to remove a node.

Sometimes the node is renamed or removed before performing the proper procedures and attempts afterwards to follow the procedure fail. Circumvention will be required to get proper cluster configuration again.

While there is no supported method for performing an operation incorrectly, there are some general guidelines you might try for circumventing a configuration error such as moving a node and renaming one outside of GPFS.

- Removing a node that no longer is in the cluster

1. Remove the secondary configuration if node is a secondary NSD server
mmchcluster -s ""

2. unmount filesystems from the primary node

3. Change the NSDs to be directly attached using the mmchnsd command.

4. Use the mmdelnode command to remove the old secondary configuration
node.

- Adding a renamed node back into the cluster

5. Verify that the remote shell (ssh or rsh) is still working using the new node name

6. Add the node back to cluster using mmaddnode command.

7. Re-specify a secondary configuration node for cluster

8. Re-specify NSD servers.

9. Start gpfs on new node

10. mount both file system on each node if they are not mounted.

The best practice is to plan for changing names or removing nodes prior to making the changes and follow the procedures listed in the GPFS Administration and Programming Reference when making the changes to avoid having to perform the general actions listed above. You can find more information about proper procedures within the IBM Cluster Information Center.

http://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp
 
Related information
Changing IP addresses and host names
Deleting nodes from a GPFS cluster
 
 
 
Comments Off

How to remove IP address from a NIC

Comments Off
How to remove IP address from a NIC

root [AIXServer] /: chdev -l en1 -a state=down
en1 changed

root [AIXServer] /: chdev -l en1 -a netaddr=''
en1 changed
root [AIXServer] /: chdev -l en1 -a netmask=''
en1 changed

root [AIXServer] /:  lsattr -El en1
alias4             IPv4 Alias including Subnet Mask           True
alias6             IPv6 Alias including Prefix Length         True
arp           on   Address Resolution Protocol (ARP)          True
authority          Authorized Users                           True
broadcast          Broadcast Address                          True
mtu           1500 Maximum IP Packet Size for This Device     True
netaddr            Internet Address                           True
netaddr6           IPv6 Internet Address                      True
netmask            Subnet Mask                                True
prefixlen          Prefix Length for IPv6 Internet Address    True
remmtu        576  Maximum IP Packet Size for REMOTE Networks True
rfc1323            Enable/Disable TCP RFC 1323 Window Scaling True
security      none Security Level                             True
state         down Current Interface Status                   True
tcp_mssdflt        Set TCP Maximum Segment Size               True
tcp_nodelay        Enable/Disable TCP_NODELAY Option          True
tcp_recvspace      Set Socket Buffer Space for Receiving      True
tcp_sendspace      Set Socket Buffer Space for Sending        True
root [AIXServer] /:
Comments Off