• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
VG COMMANDS
lsvgDisplay all VGslsvg -o Display all active VGslsvg rootvgDisplay info about rootvglsvg -l rootvgDisplay info about all LVs in rootvglsvg -o |lsvg -ilDisplay info about all LVs in all VGslsvg -p rootvgDisplay info about all PVs in rootvgmkvg -s 8 hdisk1Create VG with name vgxx on hdisk1 with partition size8MBmkvg -s 8 -y sivg hdisk1Create VG with name sivg on hdisk1 with partition size 8MBmkvg -s 4 -t 2 -y sivg hdisk1Create sivg on hdisk1 with PP size 4 and no of partions 2 * 1016chvg -a y newvgTo cuase VG newvg automatically activated at startupchvg -a n newvgTo deactivate the automatic activation at startupchvg -t 2 newvgTo change maximum no. of PP to 2032 on vg newvgchvg -Q n newvgTo disable quorum on VG newvgreorgvg newvgReorganises PP allocation of VG newvgextendvg newvg hdisk3 hdisk4Add PV hdisk3 and hdisk4 to VG newvgexportvg newvgExports the VG newvgimportvg -V 44 -y newvghdisk2Import the hdisk2 with name newvg, and assign major number 44redcucevg newvg hdisk3Remove PV hdisk3 from VG newvgvaryoffvg newvgTo deactviate VG newvgvaryonvg newvgTo activate VG newvgsyncvg -v sivgTo sync the mirrored LV in the VG sivgmirrorvg -S -m sivg hdisk2To mirror LVs of sivg with hdisk2 (-m for exact mirror, -Sforbackground mirror)unmirrorvg sivg hdisk2To remove the mirrored PV from the set.
FS COMMANDS
lsfsLists all filesystems in the /etc/filesystems entrylsfs -qList all filesystems with detailed infolsfs -aTo list all filesystems (default)lsfs -lSpecify the output in list formatlsfs -c Specify the output in column formatlsfs -v jfsLists all jfs filesystemschfs -a size=24576 /siChange size of FS /si to 24576 x 512 bytes blocks (12 MB)chfs -a size=+24576 /siAdd 24576 x 512 byte blocks to FS /sichfs -asize=-500M /file/systemyou can also decrease sizechfs -m /si /biChange the mount point from /si to /bichfs -A /siTo auto mount the filesystem sichfs -d account /siRemove account attribute of /si. ( from /etc/filesystems file)chfs -a splitcopy=/backup -a copy=2 /oracle This will mount the 2nd copy of mirrored filesystem oracleto/backup in read-only modecrfs -v jfs -g testvg -a size=64465 -m /siju Creates FS /siju of type jfs in VG testvg of blocksize 64465crfs -v jfs -d /dev/lv00 -m /sijuCreate FS /siju of type jfs on device /dev/lv00rmfs /sijuDeletes FS /siju and associated LVrmfs -r /sijuDeletes FS /siju its mount point and associated LVdefragfs /sifsTo defragment the file system /sifsdefragfs -q /sifsDisplay the current defrag status of the file systemfsck -y n /dev/lv00To fsck the filesystem associated to /dev/lv00 assuming response "yes"fsck -p /dev/lv00To restore superblock from backup superbloc
PV COMMANDS
 
lspv hdisk0Display status and characteristics of the PVlspv -p hdisk0Display PP usage of hdisk0lspv -l hdisk0To list all logical volumes on PV hdisk0chpv -v r hdisk1Close the PV (Used while removing PV without varyon)chpv -v a hdisk1Open the PVchpv -c hdisk0Clear the master boot record on PV hdisk0migratepv hdisk1 hdisk2To move PPs from PV hdisk1 to hdisk2migratepv -l silv hdisk1 hdisk2To migrate LV silv from PV hdisk1 to hdisk2
LV COMMANDS
lslv -l lv00Display info about LV by PVlslv -p hdisk1Display LV allocation map for hdisk1chlv -t copy lv00To change the lv00 to copy typechlv n silv lv00To rename lv00 to silvchlv -x 950 ora1data_lvTo change the ora1data_lv to <XXX to 950 PP>chlv -p r lv00To change the lv00 to readonly modermlv silvTo remove silvrmlv -f silvTo remove silv without user interventionmklv -s n -c 3 silv hdisk1To make LV silv with three copies on hdisk1extendlv silv 5To extend the LV silv with 5 LPsmklvcopy -s n lvsi 2 hdisk1To mirror LV lvsi on same PV with 2 copiesmklvcopy lvsi 3 hdisk1 hdisk2To mirror LV lvsi on PV hdisk1 and hdisk2 with 3 copiesrmlvcopy lvsi 2 hdisk1Will remove one copy of LV lsvi from hdisk1mklv -t jfslog -y log00 newvg 2To create a jfslog with name log00 on VG newvg with 2LPslogform /dev/log00To format jfslog volume log00mklv/extendlv -a = PP alocation policy-am = middle -ac = center -ae = edge-aie = inner edge -aim = inner middlemigratepv -l (lv) (old pv) (new pv)Move a logical volume between physical volumes. Both physical volumesmust be in the same volume group !mklv -y (lv) -t jfslog (vg) (No of PP's) (pv Name optional)Creates a JFSlog logical volume.logform (/dev/lv) Initialises an LV for use as an JFSloggetlvcb -AT (lv) Displays Logical Volume Control Block information
BLV COMMANDS
 bootlist -m normal -oTo see the boot sequence in normal mode bootlist -m service -oTo see the boot sequence in service mode bootlist -m normal cd0 hdisk0To change boot sequence to cd0,hdisk0 in normal mode bootlist -m service cd0 rmt0 hdisk0 To change boot sequence to cd0,rmt0,hdisk0 in service mode bosboot -ad /dev/hdisk1To create boot image on PV hdisk1mkboot -cd /dev/hdisk1To clear the boot image bootinfo -bSpecifies the bootable dis bootinfo - tSpecifies the type of boot bootinfo -eCheck the machine can boot from tape bootinfo -TTo see the machine hardware type bootinfo -s hdisk0To see the size of hdisk0 bootinfo -rTo see the size of memory bootinfo kTo see the key position bootinfo mTo see the machine model code
 
 bootinfo o hdisk0To list the location code of hdisk0 bootinfo zTo see the machine is multiprocessor capable bootinfo pTo see the machine bosboot -a -d (/dev/pv) Creates a complete boot image on a physical volume.mkboot -c -d (/dev/pv) Zero's out the boot records on the physical volume.savebase -d (/dev/pv) Saves customised ODM info onto the boot device.
PAGE SPACE COMMANDS
lsps -a To list out all paging spaceslsps hd6To display the details of the paging space hd6chps -a y paging00To turn on the paging space paging00chps -a n paging00To turn off the paging space paging00chps -s4 paging00To increase the size of the paging space in 4 LP blocksmkps -a -n -s4 sivgTo create a paging space on VG sivg of 4 LP size (-s4) and activate itimmediately (-n) and activate it at every restartsrmps paging00To remove the paging space paging00swapon -aTo invoke all entries in /etc/swapspaces fileswapon /dev/paging00To make available swap space paging00
SYSTEM DUMP COMMANDS
sysdumpdev -lTo list the current dump destinationsysdumpdev -LList the details of the previous dumpsysdumpstart -pStarts dump in the primary dump devicesysdumpstart -sStarts dump in the secondary dump devicesysdumpdev -p /dev/lv00To make lv00 as primary dump devicesysdumpdev -P -p /dev/lv00To make lv00 as primary dump device permanentlysysdumpdev -s /dev/rmt0To make rmt0 as secondary dump devicesysdumpdev -zTo determine a new system dump occurred
SYSTEM DUMP--------------------------------------------------------------------------------
sysdumpdev -e Estimates dumpsize of the current system in bytes.(MCA machine can also dump if key is in service position and the reset button is pressed)sysdumpdev -p (dump device) -P Sets the default dump device, permanentlyAnalyse dump file :-echo "stat\n status\n t -m" | crash /var/adm/ras/vmcore.0
Device related commands
cfgmgrTo configure devices and installs device software in systemcfgmgr -l vscsi0To configure the components connected to the vscsi0 interfacelscfgTo display config, diagnostics and vital product definition infolscfg -l mem0Display info about device mem0lscfg -l ent*Display info about all Ethernet cardslscfg -vDisplay vpdlscfg -v -l hdisk0Display vpd of hdisk0mkdev-l rmt0To change device rmt0 from defined state to available statelsdev -PTo lists all supported devices
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...