AIX FINAL

download AIX FINAL

of 44

description

final

Transcript of AIX FINAL

VGmkvg -y vgname -s 32 pvnameused to create a Vg with PP size 32MBmkvg -y vgname -n -s 32 pvnameused to create a VG& keep the VG in varied off statemkvg -y vgname -V majornumber -s 32 pvnamehere we can define explicitely major number by using this commandlsvg list available VG'slsvg -olists only active VG'slsvg vgnameused to display VG attributesextendvg vgname pvnameused to extend the PV to a volume groupreducevg vgname pvnameused remove the Pv from a volume groupreducevg -d -f vgname pvnameused to remove the PV's from volume group with forcevaryonvg vgnameused to make VG activevaryoffvg vgnameused to make VG inactiveexportvg vgnameremoves definition of a volume group,the PV and its contents will remain as it is,in VGimportvg -y vgname pvnamecommand used to import the VG,importvg -y vgname -n pvname-n option will keep the vg in varied off statemirrorvg vgname pvnameused to mirror the VG in to particular PV,mirrorvg will disable the quorumunmirrorvg vgname pvnameun mirror vg will remove the mirrored vg.and enable the quorummirrorvg -c 2 vgname pvname1 pvname2used to mirror the Vg into 2 PV'sunmirrorvg -c 2 vgname pvname1 pvname2un mirror vg will remove the mirrored vg copies.and enable the quorumsplitvg -y newvgname -c 1 vgnameused to create a snapshot of the mirrored vgjoinvg vgnameused to join the VG fom snapshot chvg -Qn vgnameused to make quorum disablechvg -Qy vgnameused to make quorum enablechvg -hy vgnameused to make VG hot spare flag : yeschvg -hn vgnameused to make VG hot spare flag : NOchvg -sy vgnameAUTO SYNC : YESchvg -sn vgnameAUTO SYNC : NOchvg -ay vgnameAUTO ON : YESchvg -an vgnameAUTO ON : NOreadvgda pvnameused to get VGDA details from PVreorgvg vgnamecommand used to re organize the allocation policiesreorgvg vgname lvnameused to re organize allocation policies of a LVchvg -t 2 vgnameused to change the T-fator ,by default VG t factor is 1 ie max PPs per VG : 1016 PP *32 PVchvg -g vgnameto use the effective space which is allocated to LUN

LVmklv -y lvname -t jfs/jfs2 vgname 5 pvnamelv creation with 5 LP'smklv -y lvname -t jfs2 -a ie vgname 5 pvnameLV creation with 5 LP's & intra policy inner edgemklv -y lvname -t jfs2 -C 2 -S 1M vgname 4 pv1 pv2creation of stripped LVmklv -y lvname -t jfs2 -C 2 -S 1M -c 2 vgname 4 pv1 pv2 pv3 pv4example of RAID 0 + 1 concept (stmklvcopy lvname 2 pvnamecreation of mirror LVextendlv lvname 5 pvnameused to increase the 5 LP's in LVrmlvcopy lvname 1 pvnameremove the LV copy ,after execution of this command,1 copy will remain in the systemrmlv lvnameused to remove LVrmlv -f lvnameused to remove LV with forcechlv -sy lvnameEACH LP COPY ON A SEPARATE PV: YES (by default this is NO,can keep same mirror copy on same PV: Y/N)chlv -sn lvnameused to change the attribute " EACH LP COPY ON A SEPARATE PV:YES /NO )chlv -x 1024 lvnameused to increase the LP's in a LV,by defauly only 512 LP's are there in LV splitlv -y newlvname oldlvname copies(2 to 3) pv1 pv2used to split the mirrored LVchlv -n newlv oldlvused to change the LV namecplv -y newlvname -v vgname lvnamemount point and log device will not be copied ,have to make explicitely in /etc/filesystems,can copy LV across VG'schlv -L "newLVname" oldlvnameused to change the LV LABEL namemigratelp lvname/LP no/mirrorcopy no /pvname/ppnoused to migrate the lp no from LV and place tht into another PV in particular PP no.getlvcb -AT lvnameused to get information ie time created,and modified details of a LVlogform -V jfs2 /dev/lvnamelogform command used to format the log devicechpv -c hdisk0clears the boot record of the physical volume ( BLV will be cleared from hdisk0)

PVlspv lists the pv's and corresponding VG'slspv pvnamelists the PV attributesmigratepv sourcepv destinationpvmigrate the contents of sourcepv to destination pvmigratepv -l lvname sourcepv destinationpvmigrapte the lv of sourcepv to destinationpvchpv -vr pvnamePV STATE : remove (if PV state is remove,cant interact with tht PV)chpv -va pvnamePV STATE: active (should be active to interact with the PV)chpv -ay pvnameALLOCATABLE: YES (by default this is yes,if its NO,cant create any new LV 's on this PV)chpv -an pvnameALLOCATABLE :NOchpv -hn pvnameHOT SPARE:NO (by default this is NO,if this is set to YES,cant use tht PV,ie only for extra PV)chpv -hy pvnameHOT SPARE :NO lsvg -l `lsvg -o`used to list the total LV's in the active vg'slsvg -p `lsvg -o`used to list the total pvs in all the active vg's

FScrfs -v jfs2 -d /dev/lvname -m /mntpntcmd for creation o file systemcrfs -v jfs2 -d /dev/lvname -A yes /mntpntcmd for creation of file system with auto mount flag : yescrfs -v jfs2 -d /dev/lvname -a log=INLINE or dedicated -A yes -m /mntpntused to create file system with dedicated log device with auto mount : YESchfs -m /newmntpnt /oldmntpntused to change the mount pointchfs -a size=+128M /mntpntused to increase the file system sizechfs -a size=-128M /mntpntused tp decrease the file system sizechfs -a log=dedicated /mntpntused to assign the dedicated log device to mount pointchfs-A yes /mntpntused to assign Auto mount : yesrmfs /mntpntrmfs command will remove mount point as well as corresponding LVmount -V jfs2 -0 log=/dev/hd8 /dev/lvname /mntpntthis command will mount the file system with different mount point

PSmkps -an -s no of lps vgname pvnameused to make the pagingspace namechps -ay pagingnameused to change the attribute AUTO flag,if AUTO flag set to Yes means,after reboot,PS will be activechps -an pagingnameif AUTO flag set to NO means,after reboot,PS will be in activeswapon /dev/pagingnameused to change the paging space to active swapoff /dev/pagingnameused to change the pagings space in activechps -s 3 pagingnameused to increase the pagingspace by 3 PP'schps -d 3 pagingnameused to decrease the paging space by 3 PP'slsps -a ,lsps -s -a flag list's all paging spaces,-s flag gives the summary size of active paging spacesrmps pagingnamermps command will remove the paging space name/etc/swapspacesThis file lists all the paging spaces that are automatically put into service on each system restart(the 'swapon -a' command executed from /etc/rc swaps on every deivce listed here).This file is modified by the chps, mkps and rmps commands and referenced by the lsps and swapon commands.

deviceslsdev -Cc diskcommand to list the disk related devices from customized data basermdev -l hdisk1command used to keep the hdisk1 in defined statemkdev -l hdisk1command used to bring the device from defined state to usable statermdev -dl hdisk1command used to delete the hdisk1lvlstmajorused to list the free major number'slvgenmajor rootvgused to list the major number of rootvgcfgmgr used to scan for new hardware changescfgmgr -vused to scan for new hardware changes in verbose modelsdev -Cc ifused to list the interfaceslsdev -Pc predifined Database classto lists the predefined device driversifconfig -aused to list all the interfacesifconfig en0used to list the interface present detailsifconfig en0 upused to bring the interface upifconfig en0 downused to bring the interface downifconfig -a -d command used to list the interfaces which are in down stateifconfig en0 detachused to detach the interface ifconfig en0 192.168.1.227 aliasused to create alias to the original IPifconfig eno deleteit will delete all IP's of interface,once reboot the machine,it will assign the default IP from ODM ifconfig eno 192.168.1.227 deleteit will delete the specified IP.chdev -l en0 -a netaddr=192.168.1.228 -a state=upused to assign the IP for the interfacechdev -l en0 -a "netaddr=192.168.1.228 state=up"another way to use the above commandchdev -l hdisk2 -a pv=yesused to assign the PVID to the objectchdev -l hdisk2 -a pv=clearused to clear the pvid of the objectchdev -l ent0 -a media_speed=10_Full_Duplex -Pused to change the media speed attribute in the ODM, flag P used to change in ODMlsattr -El en0used to list the attributes of interfacelsattr -El ent0used to list the attributes of adapterlsdev -Cc ifused to list the interface devices from the Customized databasearp -acommand to list the IP to MAC address lsdev -P/C -Hused to list the all the classes from Predefined or customized with Headerentstat -d ent0|morewill list the complete statistics of an adapter/etc/resolv.confthis file contains the IP Address to Name resolution/etc/netsvc.comcontains LOCAL,BIND(Berkely international network domain)

chdev -l inet0 -a gateway=192.168.1.1used to assign the Gatewat IP addresstraceroute yahoo.comcommand to trace the root path to serverping -c 5 ndtv.comhere it will ping only 5 timesmknode devicename (b-block type/c- char type) 17(majornumber) 70(minor number)

NOTES:1. A single interface can have more than one IP address2. Configure more than one IP address on a single interface is calles alias

PCI (pheripheral computer interface)there are 3 types of PCI'sPCI (cost is less)PCIX (PCI Extended) (cost is higher than PCI)PCIE (PCI Express) (cost is high)SCSI can be of above 3 PCI typesSCSI (small computer system interface)Physical locator code starts with "U"Each part is having FRU(Field replacement unit) numberFRU P/N 89ps300# lsconf (# prtconf)both commands are same,these are used to list the entire machine configurationlocation code format for PCI devicesAB-CD-EF-GHSCSI Adapter can connect maximum 15 devices(SCSI is having the capability to address max 15 devices)SCSI ID's will range from 0-16SCSI ID '7' will not be used,its reserved for the SCSI deviceEach SCSI device will represent 1 devicethe entire HARD DISK we will call it as one LUN (logical unit number)if we devide the Harddisk into multiple partitions,each partition is called as LUNlocation code format for scsi devicesAB-CD-EF-G,H(SCSI ID,LUN No)

OTHfsck /mntpnt (fsck -y /mntpnt)this command will check and repair the file systemfsck -n /mntpntthis will only check the file system & it will not repair,this is called,fsck in reporting mode

fuser -u /mntpntit will display the user who is using the given file systemfuser -k /mntpntit will kill the user's who is using this file systemfuser -uk /mntpntit will kill the user's and display the killed usersfuser -uckx /mntpntused to kill the kernel extension jobs

/var/spool/cron/crontabscrontab path/var/adm/cron/logcrontab log filecrontab -e,crontab -l ,crontab -rmin hour (day of the month) (month) (day of the week) commandat -f filename or path -t CCYYMMDDhhmm.ssused to run the job at particular time by using 'at' commandatqused to list the at jobsat noon,at midnight

NFSNFS (Network File system) NFS Portno:2049NFS Servernfsdrpc.mountdrpc.lockdrpc.statdNFS clientbiod (Binary input output daemon (Imp to access data from NFS server)rpc.statdrpc.lockdrpcinfoReports the status of Remote Procedure Callstartsrc -g portmapused to activate portmap on the NFS server or clientstartsrc -g nfsused to activate the nfs services on the NFS server or clientstopsrc -g portmapstopsrc -g nfsused to in activate ie(in operative) NFS on the NFS server or clientstopsrc -g portmapused to in activate ie(in operative) Portmap services on the NFS server or clientlssrc -g nfsused to list the NFS serviceslssrc -s biodused to list the subsystem resourceslssrc -aused to list all the resource controllers/etc/exportsthis is a file where we can keep mount points,in order to make the machine as NFS serverTo configure a share in NFS server put mount point in /etc/exportsshowmount -ethis will show the contents of /etc/exports filesharethis will show the contents of /etc/exprots fileshowmount -e aix27used to show the contents of specified machineexportfs Exportfs and unexports directories to NFS clients.To refresh /etc/exports and add newly configured mounts to /etc/exports fileexportfs -aused to export the file systemsexport -I /mntpnttemporary Export ,after reboot this exported mount point will not existexport -u /mntpntused to unexport mount points from NFS clients (temporary)mount servername or IP:/exportname /local mount pointmount aix27:/myfs1 /myfs2command used to mount file system from the NFS clientthis command will not create any stanza in /etc/filesystems in the NFS clientcrfs -v nfs -d /remote-fs -A yes -a nodename=aix27 -a options=hard,rw -m /localthis command is used to create a stanza in the /etc/filesystemsoptions=hard,rwhard and no interrupt are the default options for the NFS client to NFS Serveroptions=soft,rwwe can explicitely defince soft option to link betweek NFS client and NFS serverhard (Cntrl + c will not work),have to define explicitely options=hard,rw,intrWhen the NFS server is not available,and we are trying to access from the NFS client,it will hang in the middle till NFS server come up to available state this is called hard mountsoft When the NFS server is not available,and we are trying to access from the NFS client,it will not hang in the middle till NFS server come up to available state this is called soft mountcheck=Yesif check is Yes means,at the time of reboot ,fsck -y will applies to mount point check=Noif check is no means,at the time of reboot,fsck -n will not applies to mount point

/usr (check=false)fsck -y command usually we will run when the file system is in the unmount stateBut at the time of reboot this /usr directory will be automatically mounted,so its not recommended to apply fsck when f.s is mountedmountby using only mount command we can see the nodename and options of NFS along with other f.s details2 types of NFS mappingdirect mappingcreate a file system in server A and keep the file system in /etc/exportsin server B ,create 2 file's ie /etc/map( /prasad server A:/mntpnt ) and /etc/auto_master (/- /etc/map)then run the # automount -vtht means with out creating prasad directory,we can specify as per above and mount the Server A mount point

indirect mappingwhen login into user ,have to mount automatically (home/username)

ODMODM (Object data manager)is a database of system and device configuration information integrated into IBM's AIX operating system.ODM consists of followingnetwork configurationLVM configurationphysical devices & logical devices informationinstalled s/w infopredefined data base consists of device driver s/wcustomized data base consists of device'smenus, screens and commands that SMIT usesODM classODM Objectcreateodmcreateodmadddeleteodmdropodmdeletemodify -odmchangedisplayodmshowodmget

ODM directories/usr/lib/objrepos/usr/share/lib/objrepos/etc/objreposthis file consists of customized objects

to create a classvi prasad.creaix27:root:/:# cat prasad.creclass student {class student {char name[10];char name[10];char class[20];char class[20];short rno[5];short rno;}}aix27:root:/:# odmcreate /prasad.crestudentto create objectvi prasad1aix27:root:/:# cat prasad1student:student:name="prasad"name="prasad"calss="mca"class="mca"rno=24rno=24

aix27:root:/:# odmadd /prasad1

odmshow student

aix27:root:/:# odmshow studentclass student { char name[10]; /* offset: 0xc ( 12) */ char class[20]; /* offset: 0x16 ( 22) */ short rno; /* offset: 0x2a ( 42) */ };/* descriptors: 3 structure size: 0x2c (44) bytes data offset: 0x20003014 population: 1 objects (1 active, 0 deleted)*/

aix27:root:/:# odmget -q rno=24 student

student: name = "prasad" class = "mca" rno = 24

aix27:root:/:# odmchange -o student -q rno=24 /prasad2aix27:root:/:# odmget student

student: name = "prasad" class = "mca" rno = 30aix27:root:/:#

aix27:root:/:# odmget student

student: name = "prasad" class = "mca" rno = 30

add second object to the class from /prasad2aix27:root:/:# odmadd /prasad2aix27:root:/:# odmget student

student: name = "prasad" class = "mca" rno = 30

student: name = "prasad" class = "mca" rno = 30

how to delete objectaix27:root:/:# odmget student

student: name = "prasad" class = "mca" rno = 24

student: name = "prasad" class = "mba" rno = 30

aix27:root:/:# odmdelete -o student -q class=mba0518-307 odmdelete: 1 objects deleted.aix27:root:/:# odmget student

student: name = "prasad" class = "mca" rno = 24

pwdless authenticationpasswordless authentication is used to define the user to login to remote machine with out issuing any password

assume tht server A is having root user and this root user of server A wnt to login into the SERVER B with out issuing any passwordto carry out this scenario,in SERVER B (/etc/hosts.equiv) file we need to define (root user of SERVER A)as trusted user as followsSERVER B/etc/hosts.equiv (file contais a list of trusted hosts)it is used by the rsh,rlogin and rcp commandsSERVER A rootorSERVER A or username

we need to define the user as above to carry out the password less authenticationwe can also define as trusted user by login into the normal user vi rhosts

host1name of a host considered trusted by the local system individual user on the trusted host tht can login in with out a password,if no users are specified then all users on the trusted host can login with out a password

inetd/etc/inetd.conf (inetd - internet daemon)inetd listens on designated ports used by internet services such as FTP, POP3, and telnet. When a TCP packet or UDP packet arrives with a particular destination port number, inetd launches the appropriate server program to handle the connection. For services that are not expected to run with high loads, this method uses memory more efficiently, since the specific servers run only when needed. Furthermore, no network code is required in the application-specific daemons, as inetd hooks the sockets directly to stdin, stdout and stderr of the spawned process. For protocols that have frequent traffic, such as HTTP and POP3, a dedicated server that intercepts the traffic directly may be preferable.

The file /etc/services is used to map port numbers and protocols to service names, and the file /etc/inetd.conf is used to map service names to server names. For example, if a TCP request comes in on port 23, /etc/services shows telnet 23/tcpThe corresponding line in the /etc/inetd.conf file istelnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -aservicename sockettype protocol wait/nowait user server prg argumentsThis tells inetd to launch the program /usr/sbin/telnetd with the command line arguments telnetd -a. inetd automatically hooks the socket to stdin, stdout, and stderr of the server program.

/etc/servicesftp portnumber 21telnet portnumber 23rloginsshrsh

by using following command we can start or stop inetd.conf # startsrc inetd#stopsrc inetd#refresh -s inetd

#netstat -an (comd used to see port listening or not)

run levelsRUN LEVELSrun levels are ranging from 0 to 9 and a,b,c and hthese run levels are stored in the file called /etc/inittab(intialization table) fileevery 60 seconds this /etc/inittab file will be refreshed automatically and if any new entry are to be processed ,it will processthe stanzas line contains 1024 characters in the /etc/inittab file the stanza format is as follows:runlevel : id : action(wait/once,respawn) : commandoncerun the program once(dont wait for the 1st program till its completion) and goto next programwaitwait till the program get executed and execute the next programrespawnassume in one run level 2 pgrms called prgm1 and prgm2 are running,the prgm1 is infinite loop,when we run this run level,the prgm1 will be run continuously and prgm2 is normal pgm used to display 5 numbers,due to any reasons the prgm1 is killed means,it will be stated automaticallybootonly at the time of boot this run level will be executedthe command to find out the system run level is who -rcat /etc/.init.statethe default run level for the system is 2

to change the run level's the command aretelinit 0 to 9 telinit a,b,c,d and h ( when we run this run level's by using telinit a or init a,the system will not change the run levels,but it will run the programs at this run levels)if we wont give any run level id ,at evry run level execution by default this no id run level will be executedfor 0 and 1 run level init 0aix27:root:/:# init 0INIT: New run level: 0 (ENTER)aix27:root:/:# init 1aix27:root:/:# init 1INIT: New run level: 1 (ENTER)aix27:root:/:# init 2aix27:root:/:# init 2INIT: New run level: 2 (ENTER)aix27:root:/:#

telinit qused to tell the /etc/inittab file to check for the new entries and run those new entries(traverse once and run those new entries)telinit mused to bring the system into maintanance mode ie single user mode

errordemonCORE fileWhen ever any program failed ,tht failed information will be kept in this fileerrptis a command used to get the error related information from /var/adm/ras/errlog/usr/lib/errdemonthis errdemon is used to track the errors,when ever any error occurs this will put all those errors in the /var/adm/ras/errlog/usr/lib/errdemonused to start the error demon /usr/lib/errstopused to stop the error demonerrclear 0used to clear all recorded errors in the /var/adm/ras/errlogerrprt -aused to see the detailed report of errlogerrpt - i /tmp/errpt_backupif errlog type file is stored in some other location,by using this command we can explore those contentserrpt -d Hused to diplay only H/W errorserrpt -d Sused to display only S/W errorserrclear -d H 0this will clear only H/W related errorserrpt -c > /dev/consoleerrlog wil be redirected to consoleerrpt -a -c > /dev/consoledetailed errorlog report will be redirected to consoleerrpt -j identifierused to display the errors by identifier wiseerrlogger "test msg to be record"by using errlogger command we can record our own error messages to the errlogerrpt -d S -T TEMPused to display the (d for class) software type and (T for type) and TEMP type error messageserrpt -s MMDDhhmmYY -e MMDDhhmmYYused to display the errors from and to date

aix27:root:/:# /usr/lib/errdemon -lcommand used to display the errdemon attributesError Log Attributes--------------------------------------------Log File /var/adm/ras/errlogLog Size 73728 bytesMemory Buffer Size 32768 bytesDuplicate Removal falseDuplicate Interval 10000 millisecondsDuplicate Error Maximum 1000

by using the following command we can change the above errdemon attributes/usr/lib/errdemon - I /tmp/messagescommand used to change the log file location/usr/lib/errdemon -s 2097152used to change the log size/usr/lib/errdemon -B 2097152used to change the memory buffer size/usr/lib/errdemon -dused to change the duplicate removal attribute to false/usr/lib/errdemon -Dused to change the duplicate removal attribute to true/usr/lib/errdemon -t 20000used to change the Duplicate interval/usr/lib/errdemon -m 2000used to change the Duplicate error maximum

NOTE:When /var/adm/ras/errlog gets corrupted ,the work around is to remove the file and start and stop te error demon,doing this will recreate the errorlog file,do not nullify errorlog file.cat > /var/adm/ras/errlogthis is not recommended to nullify the errlog file.its better to remove the full file,and start/stop the errdemon to recreate the errlog file.

system dumpdumpcapturing the memory contents is called as dumpthe contents of real memory will be copied into logical volume ie paging spaceat the time of reboot the /dev/hd6 contents will be moved to /var/adm/ras/vmcore.0 filethe default system dump device is /dev/hd6if there is no enough space in /dev/hd6 means,the dump will not occurto find out how much size is required for both /dev/hd6 and /var/adm/ras directory the following command is usedsysdumpdev -eto estimate the dump sizethe default sysdumpdev attributes can be get by using the following commandaix27:root:/:# sysdumpdev -lprimary /dev/hd6secondary /dev/sysdumpnullcopy directory /var/adm/rasforced copy flag FALSEalways allow dump FALSEdump compression ON

the above attributes can be changed by using following commandssysdumpdev -Pp /dev/aix27dumpdevto change the primary device permanentlysysdumpdev -Pps/dev/aix27dumpdevto change the secondary device permanently

sysdumpdev -p /dev/aix27dumpdevto change the primary device temporarilysysdumpdev -s /dev/aix27dumpdevto change the secondary device temporarily

sysdumpdev -d /tmp/dumpdirto change the default copy directory

dump compression (ON /OFF)sysdumpdev -c Offsysdumpdev -CON

sysdumpdev -Kto take the system dump manuallyctrl + alt + 1primary dump devicectrl + alt + 2secondary dump device

alog -t console -oto know the messages tht are happned at the time of boot/dev/hd6 ---> /var/adm/rascopycore command is used to carry out the moving operation at the time of boot

backupsBackup'srootvg# mksysb -ie /dev/rmt0command used to perform the rootvg backup into tape# mksysb -i /backup/rootvg.bkupcommand used to perform the rootvg backup into filesystemI - backup will be created as image filee - exclude files (vi /etc/exclude.rootvg)^./etc/ (have to keep like this format in the exclude file)/image.datacontains info about data related to root VG # mkszfilecommand used to create image.data file for rootvg# lsmksysb -lf /dev/rmt0lists vg informationl - list vg information only ,f - device or file)# lsmksysb -f /mksysb/sep_042011lists entire files and directories from the rootvg backup# lsmksysb -lf /mksysb/sep_042011lists the vg information only# lsmksysb -Lf /mksysb/sep_042011lists the file sets info

user defined VG's# savevg -f /dev/rmt0 aixvgcommand used to perform the aixvg backup into tape# restvg -f /dev/rmt0 pvnamecommand used to perform the backup restore into new pv from tape# savevg -f /backup/aixvg.bkup aixvg (aixvg is lying in the hdisk3)command used to perform the aixvg backup into filesystem/backup is the filesystem created in bixvg ie hdisk4# restvg -f /backup/aixvg.bkup pvnamecommand used to perform the backup restore into new pv from file systemreducevg -d -f aixvg hdisk3reduce the backed up vgrestvg -f /backup/aixvg.bkup hdisk3restore the above reduced vg from the bixvg (/backup)

restvg -f /backup/aixvg.bkup -P 64 hdisk3this will restore the vg with different PP sizerestvg -f /dev/rmt0 -P 64 hdisk3restore the vg with different PP sizeThe procedure to change PP size for rootvg is different as shown belowedit the /image.data file and change PP_size = 32 to 64 ..)

backup CommandBacks up files and file systems.backup command overwrites previous content on tape if existsbackup -I -v -q -f /dev/rmt0I - take input from standard inv-verboseq-quitef-devicecat /tmp/file | backup -ivqf /dev/rmt0input will be taken from cat and piped to the backup commandfind /etc -print | backup -ivqf /dev/rmt0input will be taken from find command and piped to backup commandrestrore commandExtracts files from archives created with the backup command.restore -xvqf /dev/rmt0restore files from tape restore -Tvqf /dev/rmt0to show only the content of tape which was taken by using backup command

find / -name passwd -printto find a file or directory with its absolute pathfind / -xdev -name hosts .equiv -printfind the file only in the particular device ie hd4find / -xdev -name hosts -printfind the file only in the particular device ie hd4 else it will display all the paths where tht name consistsfind . -perm 0600 -printfind the files for permission 0600 and list with its absolute path

touch -t 201109030600.10 [[[CC]YY]MMDDhhmm[.SS]] /myfs1used to change the time stamp of the file

tar command(tape archive)tar command cant span multiple volumesto archive the data to tapetar -cvf /dev/rmt0 /myfs1c -create ,v - verbose, f -devicetar -cvf /backup/myfs1.tar /myfs1tar -tvf /dev/rmt0show the contents of tar ball filetar -tvf /backup/myfs1.tarshow the contents of tar ball filetar -xvf /backup/myfs1.tar /tmp/backuptar -xvf (filename or device) ("files or directories to restore")