faillog -u oracle -r
-
echo “scsi add-single-device” 0 0 1 0 > /proc/scsi/scsi
-
Increasing Logical volume
lvextend -L5.0G /dev/mapper/vgsystem-lv_root
or
# lvextend -L +40G /dev/VolGroup00/LogVol00and
Increasing Filesystem
resize2fs /dev/mapper/vgsystem-lv_root
orresize2fs /dev/VolGroup00/LogVol00
orext2online /dev/mapper/vgsystem-lv_root
or
ext2online /dev/mapper/vgsystem-lv_root -
1) Open 2 sessions to a server that will be having the new disks added as root
2) Run the command /opt/netapp/santools/ql-dynamic-tgt-lun-disc.sh
i. Answer yes to the I/O question
3) Run the command sanlun lun show –p > /tmp/sanout#, where # is a date or new instance that does not exist yet
4) In one of the open shell sessions, use vi to open the /tmp/sanout# file, and search for the LUN name that is being added. In this example, data16 is the new disk. (red #1)
5) In the second shell session, edit /etc/multipath.conf with the WWN found in the previous step and add the name of the LUN as the alias. This sets up persistent bindings.
( blue #2)
6) set up multipath to understand the new additions
- Run the command “ multipath –F” to clear the current settings
- Run the command “ multipath “ to re-establish the setup
This will give output showing new paths created
- Verify with “ multipath –ll | grep < new LUN name>
7) Verify disk is available
Run the command “ls –l /dev/mapper | grep <new LUN name>”
verify that persistence is workingRun the command “ sanlun lun show –p | grep <new LUN name> “
The disk is now available.
If the disk is needed as a standard mount, then add the /dev/mapper/<diskname> entry to /etc/fstab , mount , and test.
RAW DEVICES for ORACLE
If the disk is needed as an oracle raw device, then several more edits are needed.
1) edit /etc/sysconfig/rawdevices with the following format. The raw device will be the next number in sequence.
2) edit /etc/rc.local
Oracle user and DBA group will need to own these raw devices
Add the chown and chmod lines to /etc/rc.local
chmod 775 /dev/raw/raw#
chown orcle:dba /dev/raw/raw#
3) restart the raw devices service
# service rawdevices restart
4) run /etc/rc.local
cd /etc/ and run the command “ ./rc.local “
-
To grow an existing LUN on a system:
1. Grow the LUN size on NetApp filer
a. Grow volume to desired size. Ex – vol size [volume-name +size]
b. Grow lun to desired size. Ex – lun resize [lun name new lun size]2. On the linux host, use the Qlogic target scan utility to
scan for the newly re-sized LUN
cd /opt/QLogic_Corporation/ql-dynamic-tgt-lun-disc-2.5
./ql-dynamic-tgt-lun-disc.sh # answer yes to scan3. Verify the LUN has a new size:
sanlun lun show
fdisk -l (May not show the new size, it’s ok)4. To make sure the LUN is present and in good condition
vxdctl enable
vxdisk list # verify the presence of the disk5. Expand the LUN dynamically in Veritas
vxdisk -g testdg resize FAS30701_0
where FAS30701_0 is the LUN with a new size6. Verify newly available size (assume previously usable size is known)
vxassist -g testdg -U fsgen maxgrow “volume” layout=concat testdg-1
Compare with the previous known size
7. Grow the volume and FS (FS must be mounted)
vxresize -F vxfs -g testdg testvol1 ####m
ex: vxresize -F vxfs -g itdqa itdqa-vol5 20447m
or
vxresize –F vxfs –g itdqa itdqa-vol5 41875456To shrink a disk
1. vxresize -F vxfs -g rpmprd rpmprd-vol2 130023424
** The total is determined from the previous size before space was added.Add the IP address if you know what it is:
ifconfig bond0:# 10.###.###.### netmask 255.255.252.0 up -
for mac in `ifconfig | grep bond| awk '{print $5}'`; do echo; echo "Checking interfaces bound to MAC: $mac ..."; for interface in `ifconfig | grep $mac | grep -v ^bond | awk '{print $1}'`; do echo -n "$interface: "; ethtool $interface | grep Link; echo; done; donewill display result similar to:
Checking interfaces bound to MAC: 00:0D:60:98:16:38 …
eth0: Link detected: yeseth2: Link detected: yes
Checking interfaces bound to MAC: 00:0D:60:98:16:39 …
eth1: Link detected: yeseth3: Link detected: yes
-
echo “wallyq” | passwd –stdin joeuser
will set the password non-interactively.
-
http://www.cyberciti.biz/tips/linux-bond-or-team-multiple-network-interfaces-nic-into-single-interface.html
-
The actual command to burn the ISO is:
cdrecord -v –dev=4,1,0 driveropts=burnfree -dao
run
cdrecord –scanbus to get the address of the CD/DVD drive.
-
Name: <<< name package will have in rpm db >>>
Version: <<< version number of sources >>>
Release: <<< release number of the rpm build >>>
BuildArch: noarch
Source0: <<< path to source files.
NOTE: source files must be packed in a directory in this format %{name}-%{version} then tarred and gzipped >>>
License: GPL
Group: Development/Tools
Buildroot: %{_tmppath}/%{name}-root%description
<<< description as seen from rpm -qi >>>%prep
%setup -q%build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/<<< directory in the rpm repo >>>
…
install -m 755 <<< script in the source build >>> $RPM_BUILD_ROOT/<<< destination in the rpm repo >>>
…%post
<<< post install script here >>>%postun
<<< post uninstall script here >>>%clean
rm -rf $RPM_BUILD_ROOT%files
%defattr(-,root,root)
<<< list of files/directories in the package here >>>
Category:
- Administration
- APPS
- Articles
- Backup & Recovery
- Certification
- Configuration
- DATABASE STRUCTURE
- DATAGUARD
- Documentation
- EBS
- Enterprise Manager
- FLASHBACK
- HACKING
- HEADS UP
- Installation
- JDeveloper
- Linux
- Monitoring
- MQ
- NFS
- NXclient/server
- Online Resources
- PERL
- python
- RMAN
- Routing & Switching
- SAN – NAS
- Scripts
- Serial-Parallel-Port-Testers
- SNMP
- Software
- Solaris
- Spiritual
- SQL & PL/SQL
- SQLPLUS
- Startup/Shutdown
- Streams
- Tuning
- Version Control
- Vertias
- VMWare
- VNC
- Windows XP
- ZFS





