Professional Documents
Culture Documents
AIX Basics
Revision records
Version Date Author Reviewed by Revisions
References
1. IBM training materials
2.
Internal use only ▲
Target
Know basic knowledge about IBM
minicomputers
Know basic management and
maintenance methods for AIX servers
Know how to manage AIX storage,
network and service
Know common operations and
commands of AIX, and know
important system files
Internal use only ▲
Contents
Power 570
New trademarks and Power 560
name Power 550
• Power VM
Internal use only ▲
6
Internal use only ▲
Power520
Connect
System port
by serial port
of the
simulating
terminal
Review
Contents
Unit 5 LV Management
Internal use only ▲
VG and PV Status
Internal use only ▲
PV Information
Internal use only ▲
Delete PV from VG
Internal use only ▲
Delete PV from VG
Internal use only ▲
Create VG
View VG Information
Each VG has an exclusive 16-digit hexadecimal identifier, which is called VGID and
placed under the folder /etc/vg.
Internal use only ▲
Add PV to VG
Internal use only ▲
Delete PV from VG
Internal use only ▲
Check PV Information
Internal use only ▲
Delete PV Equipment
Internal use only ▲
VG Quorum
PVs in each VG include volume group descriptor area (VGDA)
and volume group status area (VGSA) .
VGDA includes logic volumes, physical volumes and identifiers
of partitions.
VGSA is a bit mapping relationship, used to show which files
are old and need updating by synchronization.
When a VG is started by varyonvg or smit , LVM will check
whether it can access at least 51% of VGDA and VGSA copies,
and then the majority of 51% is called quorum, which is
compulsory for LVM to maintain the files
Internal use only ▲
Export VG
Delete the definition of VG from the current system with the
command exportvg, but do not change any user data of the
VG. After execution of the command exportvg, the VG will be
unavailable for the VG. Hence, it is suggested to use the
command together with the command importvg.
When there is a LV being used for paging space on VG, and
the paging space is active, the VG cannot be exported.
If the length of the mount point is longer than 128 characters,
the information in LVCB will be lost. In this case, please record
the mount point information before exporting the VG. When you
import the VG with the importvg command, you need edit the
/etc/filesystems file manually.
Please execute varyoff before exporting VG.
Internal use only ▲
Output VG
Internal use only ▲
Import VG
Specify a PV and import VG by the command importvg. All PV
information included in the VG can be restored.
If there are file system in the VG, etc/filesystems will be
updated after the VG is imported. To connect the file system in
the VG, please perform such operation as varyon and then
fsck. It is necessary to edit the file /etc/filesystems
manually. etc/filesystems
varyon
Then fsck
Internal use only ▲
Import VG
Internal use only ▲
Common Troubleshooting in Case of
Transferring VG
VG is transferred by importing and exporting operations
(exportvg) and (importvg) .
ODM updating related operations may fail, which makes the
whole VG locked. It can be unlocked by getlvodm and
putlvodm.
Internal use only ▲
Create LV
Internal use only ▲
Stripping of LV
LV can be created in one or more disks. It is called stripping of
LV when LV is created on different disks. Actually, it is a
software mirroring by the AIX.
Internal use only ▲
Check LV Information
Internal use only ▲
Check LV Information
Internal use only ▲
Copy LV
Internal use only ▲
Review
Contents
Main No.
Secondary No.
Internal use only ▲
lsdev -C
Internal use only ▲
CD-ROM (/dev/cd0)
It is configured by the system automatically.
Install cdrom
Use the following command:
mount -rv cdrfs /dev/cd0 /mnt
Or create a CD-ROM file system and then
mount /cdrom
Uninstall cdrom
unmount /cdrom
Or umount
Internal use only ▲
Floppy disk
dosformat
Internal use only ▲
Delete Equipment
Internal use only ▲
Review
Contents
/usr/libThe default settings used to create users are saved in the file
/security/mkuser.default
Internal use only ▲
/etc/security/environ File
Review
Contents
SRC Components
SRC is provided by the srcmstr daemon, and the daemon will be
started as the system boots, which is defined in the
/etc/inittab file. Srcmstr identify sub-system components
according to the definition in the /etc/objrepos{SRCsubsys,
SRCnotify} of the ODM.
Sub-system group, sub-system and sub-service program are
organized to the ODM. They can use the following commands:
startsrc : start a sub-system
stopsrc: stop a sub-system
refresh: restart or re-update
Trace {on, off} : trace sub-system
lssrc : display sub-system status
The sub-system can be started when it is being loaded into the
system. It is a part of the rc command file (startsrc srcmstr).
It can also be started by /etc/inittab.
Internal use only ▲
Review
Contents
netstat Command
netstat -n display the IP address in the numeric form
netstat -in display the status of the configured network interface,
and display the IP address in the numeric form instead of the
host name.
netstat -r display the route table on the host
netstat -a display all of the socket states
netstat -s display the statistic information of each protocol
netstat -c display the statistic information of network buffer
netstat -m display the statistic data recorded by the memory
management function
netstat -Zi/Zs/Zc/Zm: clear the related statistic information
Internal use only ▲
ifconfig Command
ifconfig en0 192.168.1.1 netmask 255.255.255.0 up: configure an IP address
for a network interface and activate it
ifconfig lo0 inet 127.0.0.1 up: activate lo0
ifconfig en0 down: deactivate the network interface en0
ifconfig en0 up: activate the network interface en0
ifconfig en0 192.168.1.2 netmask 255.255.255.0 alias: bind an IP address at
the network interface en0
ifconfig en0 192.168.1.2 netmask 255.255.255.0 delete: delete the IP
address-bind.
ifconfig en0 delete/ifconfig en0 192.168.1.2 delete: delete IP address of a
network interface
ifconfig en0 detach: delete all of the properties of the network interface from
the network interface list. This command is used to remove a network
adapater, and it can be added again with the ifconfig en0 command.
ifconfig en0 mtu 1492: change the MTU value of the network interface en0.
Internal use only ▲
The route command takes effect immediately , but the modification will not be
written into the ODM and it will no longer take effect after the system restarts.
Internal use only ▲
Review
Contents
System Boot
Three boot methods:
1. Hard Disk boot: boot image is from the local hard disk.
2. Standalone boot: the system boots from the floppy disk, disk
cartridge or the CD driver. Generally, it will be used in case of
installing or upgrading the operating system.
3. Diskless boot: boot from network
System Backup
You can use the mksysb command. The command is only used to
back up the mounted file system on rootvg.
The backup tape made by the mksysb command can be used to boot
system.
You can also use the savevg command to back up all of the mounted
file systems in the rootv.
Back up and restore with the backup command and the restore
command.
For directories and files, you can use the tar command or the pax
command. The pax command has no limit to the file size, and the tar
command limits the size of files (5.2 and 5.3) within 8GB.
Internal use only ▲
Review
Contents
LUN (Logic)
Hot spare
Internal use only ▲
If there are two controllers, please input both IP addresses of the controllers. If only
the IP address of one controller is input, the other controller will be unavailable
for the DS storage management client.
Internal use only ▲
Double click the disk array to pop up the disk array configuration
interface. It is OK if you don not set the password for the storage
sub-system this time.
Internal use only ▲
Host interface
Run the cfgmgr –v command on the host, which will find the
connected LUN automatically.
Internal use only ▲
Host
To map an LUN to only one host (only that host can access the
LUN), please select the second option.
Internal use only ▲
Select No to exit
Internal use only ▲
To make two or most hosts share the LUN on the same disk array,
it is necessary to perform the following steps:
1. Re-create a host group.
2. Add all of the hosts needing to access the shared storage to the
Host Group;
3. Select the Host Group created in step 1 for the mapping object
of the LUN.
Internal use only ▲
Create HostGroup
Internal use only ▲
Name the Host Group and select the hosts included in the group
Map LUN (Logical Drive) to multiple hosts: Internal use only ▲
STEP3
Select Host group to map the LUN to a host group so that the
LUN can be accessed by any host in that group.
Initialize the hard disk. After the hard disk is configured as PV, the
PVID will be displayed.
Internal use only ▲
Review