Logs are being written to /var/tmp/installer-201603250051TRD while installer is in progress Verifying systems: 100% Estimated time remaining: (mm:ss) 0:00 8 of 8 Checking system communication .......................................................................................................................................................... Done Checking release compatibility ......................................................................................................................................................... Done Checking installed product ............................................................................................................................................................. Done Checking prerequisite patches and rpms ................................................................................................................................................. Done Checking platform version .............................................................................................................................................................. Done Checking file system free space ........................................................................................................................................................ Done Checking product licensing ............................................................................................................................................................. Done Performing product prechecks ........................................................................................................................................................... Done Precheck report completed System verification checks completed successfully The following notes were discovered on the systems: CPI NOTE V-9-30-2407 The system information on linux-1uhf: Operating system: Linux SLES11 SP3 x86_64 CPU number: 1 CPU speed: 2594 MHz Memory size: 990 MB Swap size: 1488 MB No issues found in prechecks linux-1uhf:~ # vxddladm get namingscheme NAMING_SCHEME PERSISTENCE LOWERCASE USE_AVID ============================================================ Enclosure Based Yes Yes Yes linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:none - - online invalid sde auto:none - - online invalid linux-1uhf:~ # vxddladm set namingscheme=osn linux-1uhf:~ # vxddladm get namingscheme NAMING_SCHEME PERSISTENCE LOWERCASE USE_AVID ============================================================ OS Native No Yes Yes linux-1uhf:~ # bash-3.00# vxddladm set namingscheme=ebn---> to set Naming_scheme Enclosure Based checking the disk are used or onused linux-1uhf:~ # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR sda auto:none - - online invalid sda - sdb auto:LVM - - LVM sdb - sdc auto:LVM - - LVM sdc - sdd auto:none - - online invalid sdd - sde auto:none - - online invalid sde - linux-1uhf:~ # After scanning the disk in OS,Scan the disks in veritas level by using the below command. bash-3.00# vxdisk scandisks Trigger DDL(Device Discovery Layer) to again assign names to DMP devices bash-3.00# vxddladm assign names 3.Bringing the disk in to veritas control vxdisksetup command brings the disks in to veritas volume manager control.By default this will format the disk in CDS(Cross Data platform Sharing ) . Other formats are sliced and simple. sliced will be used for boot disks. linux-1uhf:~ # /etc/vx/bin/vxdisksetup -i sdd linux-1uhf:~ # /etc/vx/bin/vxdisksetup -i sde linux-1uhf:~ # vxdisk -e list DEVICE TYPE DISK GROUP STATUS OS_NATIVE_NAME ATTR sda auto:none - - online invalid sda - sdb auto:LVM - - LVM sdb - sdc auto:LVM - - LVM sdc - sdd auto:cdsdisk - - online sdd - sde auto:cdsdisk - - online sde - If you want to setup the disk in specific format,you can use the below syntax. #vxdisksetup -i disk_XX format=cds or simple or sliced ================================================================================ VXVM Tutorial 2– Diskgroup Operations ================================================================================ Task:1-Creating the new disk group: linux-1uhf:~ # vxdg init ORADG Oradisk0=sdd Oradisk=sde linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk Oradisk0 ORADG online sde auto:cdsdisk Oradisk ORADG online Task:2-Addition of disk: If you want to add the new disk in to existing diskgroup, bring the disk in to vxvm control using vxdisksetup and add it using below command. uarena#vxdg -g UXDG adddisk UXDISK3=disk_4 uarena#vxdisk list DEVICE TYPE DISK GROUP STATUS disk_0 auto:cdsdisk UXDISK1 UXDG online disk_1 auto:cdsdisk UXDISK2 UXDG online disk_2 auto:ZFS - - ZFS disk_3 auto:ZFS - - ZFS disk_4 auto:cdsdisk UXDISK3 UXDG online disk_5 auto:cdsdisk - - online disk_6 auto:cdsdisk - - online Task:3-Removing the disk: You can remove the disk any time from DG if it’s not used in any volume. linux-1uhf:~ # vxprint -ht Disk group: ORADG DG NAME NCONFIG NLOG MINORS GROUP-ID ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK CO NAME CACHEVOL KSTATE STATE VT NAME RVG KSTATE STATE NVOLUME V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE SR NAME KSTATE dg ORADG default default 3000 1458882807.12.linux-1uhf dm Oradisk sde auto 65536 10411776 - dm Oradisk0 sdd auto 65536 10411776 - linux-1uhf:~ # vxdg -g ORADG rmdisk Oradisk linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk Oradisk0 ORADG online sde auto:cdsdisk - - online linux-1uhf:~ # vxdg -g ORADG adddisk Oradisk1=sde linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk Oradisk0 ORADG online sde auto:cdsdisk Oradisk1 ORADG online Task:4-Maximum size of volume: If you want to find out how much size volume we can create from the diskgroup, use the below command.In other word to you can determine the free space of the diskgroup. linux-1uhf:~ # vxassist -g ORADG maxsize Maximum volume size: 20822016 (10167Mb) checking for whilie creating mirrored vol how much size we can create. linux-1uhf:~ # vxassist -g ORADG maxsize layout=mirror Maximum volume size: 10409984 (5083Mb) linux-1uhf:~ # Task:5-Deporting diskgroup: After un-mounting the volumes , you can deport the diskgroup.To see the imported diskgroup linux-1uhf:~ # vxdg list NAME STATE ID ORADG enabled,cds 1458882807.12.linux-1uhf linux-1uhf:~ # linux-1uhf:~ # vxdg deport ORADG linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk - - online---------> deported sde auto:cdsdisk - - online---------> deported(Not assigned to any disk group) To find the deported diskgroup disks,(Important while checking the diskgroups on server) linux-1uhf:~ # vxdisk -o alldgs list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk - (ORADG) online sde auto:cdsdisk - (ORADG) online Task:6–Importing the deported diskgroup: linux-1uhf:~ # vxdg import ORADG linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk Oradisk0 ORADG online sde auto:cdsdisk Oradisk1 ORADG online Note:-Sometimes you may need to use -C flag to import the cluster diskgroup to clear the VCS lock. # vxdg -C import DG_NAME Task:7-Re-Naming the Diskgroup: You can’t the rename the diskgroup while its in imported state.In a order to rename the DG, you need to re-import with new name. linux-1uhf:~ # vxdg deport ORADG linux-1uhf:~ # vxdg -n NewDG import ORADG linux-1uhf:~ # vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none - - online invalid sdb auto:LVM - - LVM sdc auto:LVM - - LVM sdd auto:cdsdisk Oradisk0 NewDG online sde auto:cdsdisk Oradisk1 NewDG online linux-1uhf:~ # Task-8 To take current configuration backup, linux-1uhf:~ # /etc/vx/bin/vxconfigbackup VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup NewDG to /etc/vx/cbr/bk/NewDG.1458882807.12.linux-1uhf ... VxVM NOTICE V-5-2-3100 Backup complete for diskgroup: NewDG linux-1uhf:~ # Read the backup file in Human readable format. linux-1uhf:/etc/vx/cbr/bk/NewDG.1458882807.12.linux-1uhf # cat 1458882807.12.linux-1uhf.cfgrec |vxprint -D - -htr Disk group: NewDG DG NAME NCONFIG NLOG MINORS GROUP-ID ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL RL NAME RVG KSTATE STATE REM_HOST REM_DG REM_RLNK CO NAME CACHEVOL KSTATE STATE VT NAME RVG KSTATE STATE NVOLUME V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE SR NAME KSTATE dg NewDG default default 3000 1458882807.12.linux-1uhf dm Oradisk0 sdd auto 65536 10411776 - dm Oradisk1 sde auto 65536 10411776 - linux-1uhf:/etc/vx/cbr/bk/NewDG.1458882807.12.linux-1uhf # To restore the diskgroup configuration, linux-1uhf:~ # /etc/vx/bin/vxconfigrestore -p NewDG VxVM vxconfigrestore ERROR V-5-2-3705 Diskgroup NewDG is currently online imported. To commit the changes after the precommit #/etc/vx/bin/vxconfigrestore -c UXDG To abort the pre-commit: #/etc/vx/bin/vxconfigrestore -d UXDG To confirm that disk group is ok: linux-1uhf:~ # vxprint -g NewDG TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 dg NewDG NewDG - - - - - - dm Oradisk0 sdd - 10411776 - - - - dm Oradisk1 sde - 10411776 - - - - linux-1uhf:~ # ======================================================= VXVM Tutorial 3– Diskgroup Operations ======================================================= linux-1uhf:~ # vxdg list NAME STATE ID NewDG enabled,cds 1458882807.12.linux-1uhf 1.Creating new volume Syntax: #vxassist -g diskgroup make vol_name size layout=format disk-name linux-1uhf:~ # vxassist -g NewDG make ora_vol1 2G linux-1uhf:~ # vxprint -hvt Disk group: NewDG V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE v ora_vol1 - ENABLED ACTIVE 4194304 SELECT - fsgen pl ora_vol1-01 ora_vol1 ENABLED ACTIVE 4194304 CONCAT - RW sd Oradisk0-01 ora_vol1-01 Oradisk0 0 4194304 0 sdd ENA linux-1uhf:~ # If you want to make the volume using the specific disk linux-1uhf:~ # vxassist -g NewDG make ora_vol2 1G Oradisk0 linux-1uhf:~ # vxprint -hvt Disk group: NewDG V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE v ora_vol1 - ENABLED ACTIVE 4194304 SELECT - fsgen pl ora_vol1-01 ora_vol1 ENABLED ACTIVE 4194304 CONCAT - RW sd Oradisk0-01 ora_vol1-01 Oradisk0 0 4194304 0 sdd ENA v ora_vol2 - ENABLED ACTIVE 2097152 SELECT - fsgen pl ora_vol2-01 ora_vol2 ENABLED ACTIVE 2097152 CONCAT - RW sd Oradisk0-02 ora_vol2-01 Oradisk0 4194304 2097152 0 sdd ENA Creating File system on this. linux-1uhf:~ # mkfs.vxfs /dev/vx/rdsk/NewDG/ora_vol1 version 10 layout 4194304 sectors, 2097152 blocks of size 1024, log size 16384 blocks rcq size 1024 blocks largefiles supported maxlink supported linux-1uhf:~ # mkfs.vxfs /dev/vx/rdsk/NewDG/ora_vol2 version 10 layout 2097152 sectors, 1048576 blocks of size 1024, log size 16384 blocks rcq size 1024 blocks largefiles supported maxlink supported linux-1uhf:~ # linux-1uhf:~ # mount /dev/vx/dsk/NewDG/ora_vol2 /ora2 linux-1uhf:~ # mount /dev/vx/dsk/NewDG/ora_vol1 /ora1 /dev/vx/dsk/NewDG/ora_vol2 1.0G 19M 943M 2% /ora2 /dev/vx/dsk/NewDG/ora_vol1 2.0G 19M 1.9G 1% /ora1 linux-1uhf:~ # 2.Removing volume. linux-1uhf:~ # umount /ora1 linux-1uhf:~ # umount /ora2 linux-1uhf:~ # vxassist -g NewDG remove volume ora_vol1 linux-1uhf:~ # vxassist -g NewDG remove volume ora_vol2 linux-1uhf:~ # vxprint -hvt linux-1uhf:~ # 3. Mirror volume linux-1uhf:~ # vxassist -g NewDG make ora_vol1 2G layout=mirror Oradisk0 Oradisk 1 linux-1uhf:~ # vxprint -hvt Disk group: NewDG V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE v ora_vol1 - ENABLED ACTIVE 4194304 SELECT - fsgen pl ora_vol1-01 ora_vol1 ENABLED ACTIVE 4194304 CONCAT - RW sd Oradisk0-01 ora_vol1-01 Oradisk0 0 4194304 0 sdd ENA pl ora_vol1-02 ora_vol1 ENABLED ACTIVE 4194304 CONCAT - RW sd Oradisk1-01 ora_vol1-02 Oradisk1 0 4194304 0 sde ENA linux-1uhf:~ # 4 Mirrored-stripe or RAID-0+1(stripping + mirroring) vxassist -g NewDG make ora_vol1 2G layout=mirror-stripe Oradisk0 Oradisk 5 RAID-5 (striping with parity) It provide traditional RAID-5 functionality. It provides the data redundancy using distributed parity. bash-3.00# vxassist -g NewDG make ora_vol1 2G layout=raid5 =========================================================== VXVM Tutorial 4 – Volume resize =========================================================== linux-1uhf:~ # df -h /ora1 Filesystem Size Used Avail Use% Mounted on /dev/vx/dsk/NewDG/ora_vol1 2.0G 19M 1.9G 1% /ora1 linux-1uhf:~ # Method :1 Increasing the volume size-Using vxassist Step:1 Determining how much space we can increase the volume. linux-1uhf:~ # vxassist -g NewDG maxsize layout=mirror Maximum volume size: 6215680 (3035Mb) Step:2 Re-size the volume using vxassist. linux-1uhf:~ # vxassist -g NewDG growby ora_vol1 500M Step:3 Re-szie the vxfs fielsystem using fsadm. (Final size of the filesystem) linux-1uhf:~ # /usr/lib/fs/vxfs/fsadm -b 1524M /ora1 UX:vxfs fsadm: INFO: V-3-23586: /dev/vx/rdsk/NewDG/ora_vol1 is currently 4194304 sectors - size will be reduced linux-1uhf:~ # df -h /ora1 Filesystem Size Used Avail Use% Mounted on /dev/vx/dsk/NewDG/ora_vol1 1.5G 19M 1.4G 2% /ora1 Method:2 – Increasing the volume and filesystem using vxresize Step:1 Resize the volume & filesystem: You can see the changes linux-1uhf:~ # /etc/vx/bin/vxresize -g NewDG ora_vol1 +512M linux-1uhf:~ # df -h /ora1 Filesystem Size Used Avail Use% Mounted on /dev/vx/dsk/NewDG/ora_vol1 3.0G 19M 2.8G 1% /ora1 linux-1uhf:~ # Method:1 – Decreasing the volume and filesystem using vxresize linux-1uhf:~ # /etc/vx/bin/vxresize -g NewDG ora_vol1 -512M linux-1uhf:~ # df -h /ora1 Filesystem Size Used Avail Use% Mounted on /dev/vx/dsk/NewDG/ora_vol1 2.5G 19M 2.4G 1% /ora1 linux-1uhf:~ # @by Bibhuti Bhusan
Leave a comment