Thursday, June 20, 2013

 

updating ip after cloning rhel 6 image

1. Go to /etc/udev/rules.d/
2. Open 70-persistent-net.rules with your favorite editor (I prefer "nano")
     There should be two devices listed starting with "SUBSYSTEM" (the same machine before cloning had only one)
3. Comment out the first line starting with "SUBSYSTEM" (a "#" will comment it out)
4. Go to the end of the second line (uncommented one) starting with "SUBSYSTEM" and change "eth1" to "eth0"
     Record the new MAC Address of the entry
5. Go to /etc/sysconfig/networking/devices
6. Open ifcfg-eth0 with your favorite editor
7. Change "HWADDR" to the new MAC Address you recorded
8. Change the IP while you're in here
9. Reboot the box, if ifcfg-eth0 is set to come up on boot, the vNIC should be working now.


Saturday, June 15, 2013

 

generate self sign key and cert

openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days XXX
You can add -nodes if you don't want to protect your private key with a passphrase.

Friday, June 14, 2013

 

aix volume management

Device Commands
lsdevThe "lsdev -Cc disk" command can be used to display the what disks are recognized by the system. This will display disks whether they have been initialized as PVs or not.
rmdevRemove a device from the system configuration. This is done to remove the device configuration when a faulty disk is replaced, or if a disk is moved to another system.
cfgmgrRe-scan the system for devices that were not available at system start up. This can be done to recognize hot pluggable drives that were added after the system was up, or can be used to recognize devices such as external tape or disk drives that were not powered on when the system was booted up.
Physical Volume Commands
pvcreateInitialize a disk as a Physical Volume. This must be done prior to adding a disk to a volume group.
lspvDisplay the Physical Volumes on a system. When given a PV name as a parameter, it gives detailed information about that PV.
Volume Group Commands
lsvgList information about logical volumes. When given with parameters, it lists all volume groups on the system. When given parameters, it can give detailed information about a particular VG, including information about what logical volumes are in that volume group.
chvgChange volume group characteristics.
mkvgCreate a volume group.
extendvgAdd PVs to a volume group.
reducevgRemove unused PVs from a volume group. If logical volumes currently reside on the PV in question, the "migratepv" command can be used to move the LV onto another disk in the VG provided there is enough space to do so.
exportvgRemove knowledge of a volume group from the Kernel. This can be used on removable disks such as optical disks or Iomega Jaz drives prior to removing the drive from a system, or can be used when moving a disk or disks from one system to another. The data in the VG is left intact.
importvgRe-initializes kernel knowledge of a volume group that had been previously exported. The data on the VG is left intact, and becomes accessible once it has been imported. The existing logical volume names are used unless they conflict with logical volumes currently in use on the system.
mirrorvgCreates mirror volumes for all volumes in a volume group.
unmirrorvgRemoves a mirror from each volume in a volume group.
Logical Volume Commands
lslvLists information about logical volumes. A logical volume name must be specified. In order to list information about all logical volumes, you would need to use "lsvg" to list all volume groups, and then use "lsvg -l <vgname>" on each volume group. You could then use "lslv <lvname>" to list the detailed information about each logical volume found.
mklvCreate a logical volume.
rmlvDelete a logical volume.
extendlvIncrease the size of a logical volume.
chlvChange the characteristics of a logical volume.
mklvcopyMirror a logical volume. This allows for RAID-1 in software. 
rmlvcopyRemoves a mirror copy of a logical volume.
File System Commands
crfsCreate a file system. This command can be used to create a file system on an existing logical volume, or it can be used as an all in one command to create both a logical volume and file system at once.
chfsChange file system characteristics. This can be used to increase the size of a file system.
rmfsRemove a filesystem, its associated logical volume, and its entry in /etc/filesystems.
Paging Space Commands
lspsLists information about paging space volumes.

This page is powered by Blogger. Isn't yours?