tag:blogger.com,1999:blog-54850646139422211622024-03-08T06:13:06.934-08:00www.unixlead.comRam Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.comBlogger94125tag:blogger.com,1999:blog-5485064613942221162.post-79580277629112654442015-09-01T08:09:00.000-07:002015-09-01T08:09:49.942-07:00Creating 2 node GlusterFS for OpenStack Nova/KVMAdd repo and install on both nodes<br />
<br /><br />
# wget -P /etc/yum.repos.d <a href="http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo">http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-epel.repo</a><br />
<br /><br />
# yum -y install glusterfs glusterfs-fuse glusterfs-server<br />
<br /><br />
<br /><br />
From first node<br />
Start the service and enable it<br />
# systemctl start glusterd.service<br />
# systemctl enable glusterd.service<br />
# gluster peer probe Node2<br />
<br /><br />
From Second node<br />
<br /><br />
Start the service and enable it<br />
# systemctl start glusterd.service<br />
# systemctl enable glusterd.service<br />
# gluster peer probe Node1<br />
<br /><br />
<br /><br />
Create Bricks on both nodes<br />
<br /><br />
# gluster volume create glustervmstore replica 2 Node1:/vmstore Node2:/vmstore <br />
# gluster volume start glustervmstore<br />
<br /><br />
<br /><br />
Since Nova instance will be created under /var/lib/nova/instances, execute the following commands on both nodes<br />
<br /><br />
# mount -t glusterfs Node1:/glustervmstore /var/lib/nova/instances<br />
<br /><br />
(Replace Node2 with Node1 when executing on second node)<br />
<br /><br />
Test it<br />
<br /><br />
# cd /var/lib/nova/instances<br />
touch a file and this file will be replicated on the second node too.<br />
<br /><br />
Now create a instance in openstack and you will see image on both nodes (If you are getting error, check permission for /var/lib/nova/instance directory)<br />
<br /><br />
<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-36629794437624208032015-06-02T17:18:00.000-07:002015-06-02T17:18:06.764-07:00Zpool root mirror<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; widows: 1;">
If you created a mirrored ZFS root pool during an initial installation, you can boot from an alternate disk automatically. Identify an alternate disk in your mirrored ZFS root pool. For example, disk c1t1d0s0 in the output below.</div>
<pre style="background-color: white; color: #222222; white-space: pre-wrap; widows: 1;"># zpool status
pool: rpool
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0
</pre>
<pre style="background-color: white; color: #222222; white-space: pre-wrap; widows: 1;">ok boot /pci@7c0/pci@0/pci@1/pci@0,2/<wbr></wbr>LSILogic,sas@2/disk@1
</pre>
<div style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 12.8000001907349px; widows: 1;">
If you used the zpool attach command to create a mirrored ZFS root pool after the installation, then you must run the installboot or installgrub command on the alternate disks before they are bootable. For example:</div>
<pre style="background-color: white; color: #222222; white-space: pre-wrap; widows: 1;">sparc# installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c0t1d0s0
</pre>
<pre style="background-color: white; color: #222222; white-space: pre-wrap; widows: 1;">x86# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s</pre>
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-20132744273539121082015-06-02T17:13:00.000-07:002015-06-02T17:16:11.846-07:00Add Memory to Red Hat VM under VMWare<span style="color: #222222; font-family: sans-serif; font-size: large;"><b>Dynamically Add Memory to Red Hat VM under VMWare ESX </b></span><span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><br />
<span style="background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;"></span><br />
<div style="color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="font-family: sans-serif; font-size: x-small;">1) Enable hot add memory for the VM (can only be done while VM is powered down). This is under Edit Settings -> Options -> Enable CPU/Memory Hotplug -> Enable Memory Hotplug</span></div>
<div style="color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="font-family: sans-serif; font-size: x-small;">2) Add the desired memory in VMWare under Edit Settings on the shell VM</span></div>
<div style="color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="font-family: sans-serif; font-size: x-small;">3) Run this script on the RHEL 5.x guest</span></div>
<div style="color: #222222; font-family: arial, sans-serif; font-size: 13px;">
<span style="font-family: sans-serif; font-size: x-small;">#!/bin/bash</span><span style="font-family: sans-serif; font-size: x-small;"><br /><br />if [ "$UID" -ne "0" ]<br /> then<br /> echo -e "You must be root to run this script.\nYou can 'sudo' to get root access"<br /> exit 1<br />fi<br /><br /><br />for MEMORY in $(ls /sys/devices/system/memory/ | grep memory)<br />do<br /> SPARSEMEM_DIR="/sys/devices/<wbr></wbr>system/memory/${MEMORY}"<br /> echo "Found sparsemem: \"${SPARSEMEM_DIR}\" ..."<br /> SPARSEMEM_STATE_FILE="${<wbr></wbr>SPARSEMEM_DIR}/state"<br /> STATE=$(cat "${SPARSEMEM_STATE_FILE}" | grep -i online)<br /> if [ "${STATE}" == "online" ]; then<br /> echo -e "\t${MEMORY} already online"<br /> else<br /> echo -e "\t${MEMORY} is new memory, onlining memory ..."<br /> echo online > "${SPARSEMEM_STATE_FILE}"<br /> fi<br />done<br /><br /><br />Double check by typing free -m</span> </div>
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-23315674799935040552014-10-16T11:26:00.000-07:002014-10-16T11:27:11.209-07:00Checking password expiration on Solaris using Script<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
# Copy /etc/shadown to temp directory (I am copying to /home/ramkumar and delete #after) </div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
#!/usr/bin/bash<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
if [ $# -eq 0 ]<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
then<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
echo "You need to pass user as argument"<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
exit 1<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
fi<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
COUNT=`grep $1 /home/ramkumar/shadow|wc -l`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
if [ $COUNT != 1 ]<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
then<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
echo "User is not valid"<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
exit 1;<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
fi<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
CURRENT_CH=`grep $1 /home/ramkumar/shadow | cut -d: -f3`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
HOST=`uname -n`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
LAST_CHA=`/bin/perl -e 'print int(time/(60*60*24))'`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
# Compute the age of the user's password<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
AGE=`echo $LAST_CHA - $CURRENT_CH | /usr/bin/bc`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
echo "last Changed" $AGE " days ago"<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
# Password expiration<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
EXPIRE=`echo 90 - $AGE | /usr/bin/bc`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
if [ $EXPIRE -lt 0 ]<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
then<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
EXP=`echo $EXPIRE|sed 's/-//g'`<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
echo "$1 password on $HOST expired $EXP days ago"<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
else<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
echo "$1 password on $HOST expires in $EXPIRE days"<u></u><u></u></div>
<div class="MsoNormal" style="background-color: white; color: #222222; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;">
fi</div>
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-60931911810415350952014-10-16T11:22:00.000-07:002014-10-16T11:22:01.581-07:00ASM on Solaris and ASMLib on Linux<div style="font-family: Helvetica; font-size: 12px; min-height: 14px;">
<br /></div>
<ul>
<li style="font-size: 12px; margin: 0px;">ASM Setup on Solaris (Make sure multipathing is enabled)</li>
</ul>
<div style="font-size: 12px; margin-left: 18px;">
(Verify all partition is s6)</div>
<div style="font-size: 12px;">
Format < c*t*d0></div>
<div style="font-size: 12px;">
Format > volname</div>
<div style="font-size: 12px;">
Volname> “ORC ASM”</div>
<div style="font-size: 12px;">
Label it > yes</div>
<div style="font-size: 12px;">
Format > quit</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
# chown oragrid:asmadmin /dev/rdsk/c*t*d*s6</div>
<div style="font-size: 12px;">
# chmod 660 /dev/rdsk/c*t*d*s6</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
ASM on Linux using using ASMLib</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
As per Metalink Document 1089399.1 ( Oracle is not supporting ASMLib on RHEL 6) </div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-family: Tahoma; font-size: 12px;">
For Red Hat Enterprise Linux 6 (beginning with 6.4) the kernel driver package 'kmod-oracleasm' is available directly from Red Hat, and can be installed from the "RHEL Server Supplementary (v. 6 64-bit x86_64)" channel on Red Hat Network (RHN). Updates and support for this module will be provided by Red Hat. Please check with your Red Hat advisor for questions concerning use of the kernel driver package. The 'oracleasmlib' and 'oracleasm-support' packages are maintained by Oracle; they are required in order to use kmod-oracleasm. These are available for download from the Oracle Technology Network.</div>
<div style="font-family: Tahoma; font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
<br /></div>
<div style="font-size: 10.5px;">
<b># yum install kmod-oracleasm</b></div>
<ul>
<li style="font-family: Arial; font-size: 9px; margin: 5px 0px;">oracleasm-support-2.1.8-1.el6.x86_64.rpm </li>
<li style="font-family: Arial; font-size: 9px; margin: 5px 0px;">oracleasmlib-2.0.4-1.el6.x86_64.rpm </li>
</ul>
<div style="font-size: 10.5px; margin-bottom: 5px; margin-top: 5px;">
<span style="font-family: Arial; font-size: 9px;"> # </span><b>yum install oracleasmlib-2.0.4-1.el6.x86_64.rpm</b></div>
<div style="font-size: 10.5px; margin-bottom: 5px; margin-top: 5px;">
<b> # yum install oracleasm-support-2.1.8-1.el6.x86_64.rpm</b></div>
<div style="font-size: 12px;">
After installing </div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
# /usr/sbin/oracleasm configure –i</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
Default user to own the driver interface []: oragrid </div>
<div style="font-size: 12px;">
Default group to own the driver interface []: asmadmin </div>
<div style="font-size: 12px;">
Start Oracle ASM library driver on boot (y/n) [ n ]: y</div>
<div style="font-size: 12px;">
Fix permissions of Oracle ASM disks on boot (y/n) [ y ]: y</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
Set the <b>ORACLEASM_SCANORDER</b> parameter in <b>/etc/sysconfig/oracleasm</b></div>
<div style="font-size: 12px;">
NOTE: When setting the ORACELASM_SCANORDER to a value, specify a common string associated with your device mapper pseudo device name. For example, if all the device mapper device had a Deploying Oracle RAC 11g R2 Database on RHEL 6.x / Oracle Linux 6.x</div>
<div style="font-size: 12px;">
19</div>
<div style="font-size: 12px;">
prefix string of the word "asm", (/dev/mapper/asm-ocr1,/dev/mapper/asm-ocr2), populate the ORACLEASM_SCANORDER parameter as:ORACLEASM_SCANORDER="dm". This would ensure that oracleasm will scan these disks first.</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
Set the <b>ORACLEASM_SCANEXCLUDE</b> parameter in <b>/etc/sysconfig/oracleasm</b> to exclude non-multipath devices.</div>
<div style="font-size: 12px;">
For example: ORACLEASM_SCANEXCLUDE=<disks exclude="" to=""></disks></div>
<div style="font-size: 12px;">
NOTE: If we wanted to ensure to exclude our single path disks within /dev/ such as sda and sdb, our ORACLEASM_SCANEXCLUDE string would look like: ORACLEASM_SCANEXCLUDE="sda sdb"</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
<b># /usr/sbin/oracleasm createdisk DISKNAME /dev/mapper/diskpartition</b></div>
<div style="font-size: 12px;">
NOTE: The fields DISKNAME and /dev/mapper/diskpartition should be substituted with the appropriate names for your environment respectively.</div>
<div style="font-size: 12px;">
NOTE: It is highly recommended to have all of your Oracle related disks to be within Oracle ASM. This includes your OCR disks, voting disks, database disks, and flashback recovery disks.</div>
<div style="font-size: 12px; min-height: 14px;">
<br /></div>
<div style="font-size: 12px;">
<b># /usr/sbin/oracleasm listdisks </b></div>
<div style="font-size: 12px; min-height: 14px;">
<b></b><br /></div>
<div style="font-size: 12px;">
<b>(T0 verify disks)</b></div>
<div style="font-size: 12px; min-height: 14px;">
<b></b><br /></div>
<div style="font-size: 12px;">
<b>On the other node:</b></div>
<div style="font-size: 12px; min-height: 14px;">
<b></b><br /></div>
<br />
<div style="font-size: 12px;">
<b># /usr/sbin/oracleasm scandisks.</b></div>
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-71441354877501270662013-12-09T16:47:00.000-08:002013-12-09T16:47:35.165-08:00Link Aggregation on Solaris 10<div class="MsoNormal">
<span style="font-size: 28.0pt; line-height: 115%;"> Link Aggregation on Solaris 10<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h1>
What is Link Aggregation?<o:p></o:p></h1>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">An
aggregation is similar to an IPMP link created for failover, but has other
advantages:-<o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%;">An aggregation is treated as one
device for configuration and management, and uses only one IP address. <o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%;">In-bound as well as outbound
load spreading is provided, so extra bandwidth is available. <o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%;">Automatic failover is provided,
to the remaining working links in the aggregation. <o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%;">Policies can be applied to the
traffic flows. <o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-size: 12.0pt; line-height: 115%;">Parallel aggregations between
servers can be created, without going through a switch. <o:p></o:p></span></li>
</ul>
<div class="MsoNormal">
<br /></div>
<h2>
How to Set up Link Aggregation on Solaris 10?<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<h2 style="margin-left: .5in; mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-weight: normal; mso-bidi-font-family: Wingdings; mso-bidi-font-weight: bold; mso-fareast-font-family: Wingdings;">è<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]-->Configuration
in the switch<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">First of all
we need to make sure link all cables are connected to switch ( same vlan) <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h2>
1. Connect to switch console <o:p></o:p></h2>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">telnet XX.XX.XX.XX</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<h2>
2. Enter to privileged mode and open configuration terminal <o:p></o:p></h2>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router></span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">en</span></b><span style="color: #0070c0; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">
</span><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">Password: <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">config
terminal</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <span style="color: #0070c0;"><o:p></o:p></span></span></div>
<h2>
3. For each port of the bond enable link-aggregate <o:p></o:p></h2>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">interface ethernet 2/20</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config-if-e1000-2/20)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">link-aggregate active <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config-if-e1000-2/20)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">exit</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">interface ethernet 2/21</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config-if-e1000-2/21)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">link-aggregate active <o:p></o:p></span></b></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config-if-e1000-2/21)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">exit</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<h2>
4. Quit configuration terminal and privileged mode, check for those ports
in the link- aggregated ports table and exit <br />
<!--[if !supportLineBreakNewLine]--><br />
<!--[endif]--><o:p></o:p></h2>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">exit</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router(config)#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">write memory</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">show
link-aggregate</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">System ID: 0012.f2b4.ae00 <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">Long timeout: 120, default: 120 <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">Short timeout: 3, default: 3 <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">Port [Sys P] [Port P] [ Key ]
[Act][Tio][Agg][Syn][Col][Dis][Def][Exp][Ope] <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">------------------------------------------------------------------------------------------
<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">2/20 1 1 483 Yes L Agg Syn Col Dis No No Ope <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">2/21 1 1 483 Yes L Agg Syn Col Dis No No Ope <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">------------------------------------------------------------------------------------------
<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">exit</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">BR-telnet@FastIron SuperX Router></span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">exit</span></b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"> <o:p></o:p></span></div>
<h2 style="margin-left: .5in; mso-list: l0 level1 lfo2; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Wingdings; font-weight: normal; mso-bidi-font-family: Wingdings; mso-bidi-font-weight: bold; mso-fareast-font-family: Wingdings;">è<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><!--[endif]-->Configuration
on the Server<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">Login as
root and execute to verify what are the interfaces are up and available<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">dladm
show-dev</span></b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;"> </span><span style="color: #0070c0; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;">( Following command will tell you that
nxge0 to nxg3 are up and available for link aggregate)<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">e1000g0 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">e1000g1 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">e1000g2 link: unknown speed: 0
Mbps duplex: half<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">e1000g3 link: unknown speed: 0
Mbps duplex: half<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">nxge0 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">nxge1 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">nxge2 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">nxge3 link: up speed: 1000 Mbps
duplex: full<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-size: 12.0pt; line-height: 115%;">Another
command to verify is </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">dladm
show-link</span></b><span style="color: #0070c0; font-family: "Courier New"; font-size: 12.0pt; line-height: 115%;"><o:p></o:p></span></div>
<h2>
<o:p> </o:p></h2>
<h2>
Create Link aggregation now:<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "Courier New"; font-size: 12.0pt; line-height: 115%; mso-bidi-font-style: italic;"># </span></b><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%; mso-bidi-font-style: italic;">dladm create -aggr -d nxge0 -d nxge1 –d
nxge2 –d nxge3 1<o:p></o:p></span></b></div>
<div class="MsoNormal">
<br /></div>
<h2>
Create aggr1 interface and plumb it<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%; mso-bidi-font-style: italic;">ifconfig
aggr1 plumb 10.25.156.39 –broadcast 10.25.156.63 –netmask
255.255.255.192 up</span></b><b><span style="font-family: "Courier New"; mso-bidi-font-style: italic;"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<br /></div>
<h2>
Check the interface <o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b># </b><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">ifconfig –a</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
aggr1: flags=1000842<up broadcast="" v4=""> mtu 1500 index 2<o:p></o:p></up></div>
<div class="MsoNormal">
inet
10.25.156.39 netmask ffffffe0 broadcast 10.25.156.63<o:p></o:p></div>
<div class="MsoNormal">
ether
0:21:28:30:50:c6<o:p></o:p></div>
<h2>
Activate it <o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New"; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%; mso-bidi-font-style: italic;">dladm
modify-aggr -l active -t short 1</span></b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%; mso-bidi-font-style: italic; mso-bidi-font-weight: bold;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<h2>
You can check policy and other information by using<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New";"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">dladm
show-aggr</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></div>
<div class="MsoNormal">
key: 1 (0x0001) policy: L2 address: 0:21:28:30:50:c6 (auto)<o:p></o:p></div>
<div class="MsoNormal">
device address speed duplex link
state<o:p></o:p></div>
<div class="MsoNormal">
nxge0 0:21:28:30:50:c6 1000
Mbps full up
attached<o:p></o:p></div>
<div class="MsoNormal">
nxge1 0:21:28:30:50:c7 1000
Mbps full up
attached<o:p></o:p></div>
<div class="MsoNormal">
nxge2
0:21:28:30:50:c8
1000 Mbps full
up attached<o:p></o:p></div>
<div class="MsoNormal">
nxge3 0:21:28:30:50:c9 1000
Mbps full up
attached<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-size: 14.0pt; line-height: 115%;">Reboot the server<o:p></o:p></span></b></div>
<h2>
You can Check packets transferred and validation<o:p></o:p></h2>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New";">#</span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">dladm
show-aggr -s</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
key:1
ipackets rbytes opackets obytes
%ipkts %opkts<o:p></o:p></div>
<div class="MsoNormal">
Total 18817722
2325029336 7546157 1056461980<o:p></o:p></div>
<div class="MsoNormal">
nxge0 4696030
580745736 1886522 264113080 25.0
25.0<o:p></o:p></div>
<div class="MsoNormal">
nxge1 4696574
580788680 1886522 264113080 25.0
25.0<o:p></o:p></div>
<div class="MsoNormal">
nxge2 4738703
583317764 1886570 264119800 25.2
25.0<o:p></o:p></div>
<div class="MsoNormal">
nxge3 4686415
580177156 1886543 264116020 24.9
25.0<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "Courier New";">Other important
commands:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<br />
<div class="MsoNormal">
<span style="font-family: "Courier New";"># </span><b><span style="font-family: "Courier New"; font-size: 14.0pt; line-height: 115%;">dladm show-linkprop</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></div>
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-10312544415800577082013-01-28T08:32:00.001-08:002013-01-28T08:32:26.536-08:00steps to enable web browser M5000/M3000 <strong><span style="background-color: blue; color: #eeeeee;">Steps to enable web browser</span></strong><br />
<br />
<br />
M5000 (Enable https for XSCF)<br />
<br />
<br />
<strong><span style="color: red;">XSCF> sethttps -c genserverkey</span></strong><br />
<br />
Server key already exists. Do you still wish to update? [y<br />
n] :y<br />
<br />
Enter passphrase:<br />
<br />
<br />
<span style="background-color: white; color: red;"><strong>XSCF> sethttps -c selfsign US Georgia Atlanta GROUP </strong></span><a href="mailto:myemal@unixlead.com"><span style="background-color: white; color: red;"><strong>myemal@unixlead.com</strong></span></a><br />
CA key and CA cert already exist. Do you still wish to update? [y<br />
n] :y<br />
<br /><br />
<span style="color: red;"><strong>XSCF> sethttps -c enable</strong></span><br />
<br />
Continue? [y<br />
n] :y<br />
<br />
Please reset the XSCF by rebootxscf to apply the https settings.<br />
<br />
<span style="color: red;"><strong>XSCF> rebootxscf</strong></span><br />
<br />
The XSCF will be reset. Continue? [y<br />
n] :y<br />
<br /><br />
After reboot, we can access XSCF using web brower.Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-56491474995927454322013-01-07T07:34:00.001-08:002013-01-07T07:34:25.097-08:00Steps to upgrade from Solaris 11 to Solaris 11.1 (update 1)1) Make sure we have publisher setup already if not we have to use pkg command to set publisher (Using SSL certs if we have valid support)<br />
<br />
<br />
<br />
<br />
<strong># pkg publisher</strong><br />
<br />
PUBLISHER TYPE STATUS P LOCATION<br />
<br />
solaris origin online F http://pkg.oracle.com/solaris/release/<br />
<br />
<br />
<br />
2) Update the system with latest patches/release<br />
<br />
<br />
<br />
<strong># pkg update</strong><br />
<br />
<br />
<br />
3) Reboot the system to boot from alternate boot enviromnent<br />
<br />
<br />
<br />
<strong># reboot</strong><br />
<br />
<br />
<br />
3) Update the package itself<br />
<br />
<br />
<br />
<strong># pkg update pkg:/package/pkg</strong><br />
<br />
<br />
<br />
4) Update to Solaris 11.1 with accept option<br />
<br />
<br />
<br />
<strong>#pkg update --accept</strong><br />
<br />
<br />
<br />
A clone of solaris-1 exists and has been updated and activated.<br />
<br />
On the next boot the Boot Environment solaris-2 will be<br />
<br />
mounted on '/'. Reboot when ready to switch to this updated BE.<br />
<br />
<br />
<br />
<br />
<br />
---------------------------------------------------------------------------<br />
<br />
NOTE: Please review release notes posted at:<br />
<br />
<br />
<br />
https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1<br />
<br />
<br />
<br />
5) Reboot the system<br />
<br />
<br />
<br />
<strong># reboot</strong><br />
<br />
<br />
<br />
6) Check bootenvironment <br />
<br />
<br />
<br />
<strong># beadm list</strong><br />
<br />
<br />
<br />
<br />
<br />
BE Active Mountpoint Space Policy Created<br />
<br />
-- ------ ---------- ----- ------ -------<br />
<br />
solaris - - 14.56M static 2011-12-15 00:32<br />
<br />
solaris-1 N / 20.56M static 2012-12-03 11:11<br />
<br />
solaris-2 R - 14.22G static 2012-12-03 11:47<br />
<br />
solaris-backup-1 - - 145.0K static 2011-12-15 00:50<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
7) <strong>Check /etc/release</strong><br />
<br />
<br />
<br />
Oracle Solaris 11.1 X86<br />
<br />
Copyright (c) 1983, 2012, Oracle and/or its affiliates. All rights reserved.<br />
<br />
Assembled 19 September 2012<br />
<br />
<br />
<br />
8) <strong>Check pkg list entire</strong><br />
<br />
<br />
<br />
<strong># pkg list entire</strong><br />
<br />
NAME (PUBLISHER) VERSION IFO<br />
<br />
entire 0.5.11-0.175.1.0.0.24.2 i--<br />
<br />
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-50746654421099464322012-12-21T09:57:00.003-08:002012-12-21T09:57:55.965-08:00Increasing filesystem space on AIX<br />
Increasing filesystem space on AIX<br />
<br />
To check all filesystems:<br />
<br />
<span style="color: blue;"><em># df -g</em></span><br />
<br />
<span style="color: blue;"><em># lslv test</em> (</span>Name of the logical volume)<br />
This will give volume group name<br />
<br />
<span style="color: blue;"><em># lsvg rootvg</em></span> (Volume group name)<br />
<br />
Verify free PP and if we have enough space than<br />
<br />
<span style="color: blue;"><em># chfs -a size=+1G /filesystem</em></span><br />
<br />
It will add 1 GB to the filesystem<br />
<br />
<span style="color: blue;"><em># df -g</em></span> (Verify filesystem)<br />
<br />
<br />
<br />
<br />
<br />
<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-14596430238466298772012-10-31T07:41:00.000-07:002012-10-31T07:41:49.147-07:00Make sendmail on Solaris listen to more than localhostCheck the current configuration:<br />
<br />
<span style="color: blue;"># svcprop sendmail grep -i local_only</span><br />
config/local_only boolean true<br />
<span style="color: blue;"># svccfg -v -s sendmail setprop config/local_only=false</span><br />
<span style="color: blue;"># svcadm refresh sendmail</span>
<span style="color: blue;"># svcadm restart sendmail</span>
<br />
<br />
<br />
<br />
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-14859937645262040512012-08-20T12:02:00.000-07:002012-08-20T12:02:01.757-07:00Excluding directories and files in tar command<span style="color: red;">Create a file with all the dictories and files that you want to exclude in the tar </span><br />
<br />
<span style="color: blue;"># less exclude</span><br />
test1<br />
<br />
hello<br />
<br />
<span style="color: red;">Execute following command </span><br />
<br />
<span style="color: blue;"># tar -cvfX test.tar ./exclude *</span><br />
a hello excluded<br />
<br />
a test/ 0K<br />
a test1 excluded<br />
a test2/ 0K<br />
a test3/ 0K<br />
<br />
<br />
<span style="background-color: white; color: red;">Extract with tar as usual</span><br />
<br />
<span style="background-color: white; color: blue;"># tar -xvf test.tar </span><br />
<br />
Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-6215970633209259942012-07-05T11:47:00.000-07:002012-07-05T11:47:56.569-07:00Setting UP private interface between two zones:<br />
<div class="MsoNormal">
<span style="font-size: 14pt; line-height: 115%;"> Setting UP private interface between
two zones:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
1)<span style="font: normal normal normal 7pt/normal 'Times New Roman';">
</span>Connect two physical server using cross over
cable<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
2)<span style="font: normal normal normal 7pt/normal 'Times New Roman';">
</span>ifconfig nxge3 inet 192.168.0.10 netmask
255.255.255.0 broadcast 192.168.0.255<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
3)<span style="font: normal normal normal 7pt/normal 'Times New Roman';">
</span>ifconfig nxge3 up<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
4)<span style="font: normal normal normal 7pt/normal 'Times New Roman';">
</span>Make changes to the zone so that it will persistent<o:p></o:p></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">bash-3.00#
zonecfg -z zone<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone>
add net<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone:net>
set address=192.168.0.15<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone:net>
set physical=nxge3<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone:net>
end<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone>
verify<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone>
commit<o:p></o:p></span></div>
<div class="MsoNoSpacing">
<span style="font-family: 'Courier New';">zonecfg:testzone>
exit<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst">
<br /></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
5)<span style="font: normal normal normal 7pt/normal 'Times New Roman';">
</span>Create interface and attach to the zone from the
global<o:p></o:p></div>
<div class="MsoNormal">
# <span style="font-family: 'Courier New'; font-size: 8pt; line-height: 115%;">ifconfig nxge3 addif 192.168.0.15 netmask 255.255.255.0
broadcast 192.168.0.255 zone testzone up</span><o:p></o:p></div>
<div class="MsoNormal">
Created new logical interface nxge3:1<o:p></o:p></div>Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-70175649640099064932012-07-05T11:46:00.004-07:002012-07-05T11:46:46.397-07:00Oracle settings in /etc/project<br />
<h1>
<a href="" name="_Toc299542573">/etc/project</a><o:p></o:p></h1>
<h2>
<o:p> </o:p></h2>
<h2>
<a href="" name="_Toc299542574">Command to check value for project.max-shm-memory</a><o:p></o:p></h2>
<div class="MsoNoSpacing">
prctl -n project.max-shm-memory -i project user.oracle<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<h2>
<a href="" name="_Toc299542575">Command to increase memory to 96 GB memory for
running Process</a><o:p></o:p></h2>
<div class="MsoNoSpacing">
prctl -n project.max-shm-memory -r -v 96GB -i project user.oracle<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<h2>
<a href="" name="_Toc299542576">Command to Make it permanent by updating
/etc/project file</a><o:p></o:p></h2>
<div class="MsoNoSpacing">
projmod -sK
"project.max-shm-memory=(privileged,103079215104,deny)" user.oracle<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<h2>
<a href="" name="_Toc299542577">Command to check all parameters for current user</a><o:p></o:p></h2>
<div class="MsoNoSpacing">
prctl $$<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<h2>
<a href="" name="_Toc299542578">Command to check all parameters used for Oracle
user</a><o:p></o:p></h2>
<div class="MsoNoSpacing">
prctl -i project user.oracle<o:p></o:p></div>
<div class="MsoNoSpacing">
<br /></div>
<div class="MsoNoSpacing">
<br /></div>Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-78037158799510184252012-07-03T08:12:00.004-07:002012-07-03T08:12:45.022-07:00Adding Static IP on Solaris 11<br />
Adding Static IP<br />
<br />
root@solaris11:~# ipadm create-ip net2<br />
root@solaris11:~# ipadm create-addr -T static -a 192.168.0.235/22 net2/ipv4<br />
root@solaris11:~# route -p add default 192.168.0.254<br />
add net default: gateway 192.168.0.254<br />
add persistent net default: gateway 192.168.0.254<br />
<div>
<br /></div>Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-60010492884946152332012-07-03T08:09:00.003-07:002012-07-03T08:09:52.552-07:00updating /etc/resolv.conf on Solaris 11<br />
### updating /etc/resolv.conf on Solaris 11 ################<br />
root@solaris11:~# svccfg<br />
svc:> select dns/client<br />
svc:/network/dns/client> setprop config/search = astring: ("search.com" "searchme.com" "searchyou.com")<br />
svc:/network/dns/client> setprop config/nameserver = net_address: (192.10.10.10 192.10.10.11 192.10.10.12)<br />
svc:/network/dns/client> select dns/client:default<br />
svc:/network/dns/client:default> refresh<br />
svc:/network/dns/client:default> validate<br />
svc:/network/dns/client:default> select name-service/switch<br />
svc:/system/name-service/switch> setprop config/host = astring: "files dns"<br />
svc:/system/name-service/switch> select system/name-service/switch:default<br />
svc:/system/name-service/switch:default> refresh<br />
svc:/system/name-service/switch:default> validate<br />
svc:/system/name-service/switch:default><br />
svc:/system/name-service/switch:default><br />
svc:/system/name-service/switch:default><br />
svc:/system/name-service/switch:default><br />
svc:/system/name-service/switch:default> exit<br />
root@solaris11:~# svcadm enable dns/client<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com1tag:blogger.com,1999:blog-5485064613942221162.post-50963995874562216662012-06-21T09:20:00.001-07:002012-06-21T09:20:05.220-07:00Stopping and Starting Ops Center 12c<span style="color: red;">Stopping Ops Center 12c</span><br />
<br />
# /opt/SUNWxvmoc/bin/proxyadm stop -wv<br />
# /opt/SUNWxvmoc/bin/satadm stop -wv<br />
<br />
<span style="color: red;">Starting Ops Center 12c</span><br />
<br />
# /opt/SUNWxvmoc/bin/satadm start -wv<br />
# /opt/SUNWxvmoc/bin/proxyadm start -wv<br />
<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-74090016814955570682012-06-21T09:16:00.005-07:002012-06-21T09:16:52.406-07:00Installing IDR on solaris 11Installing IDR on solaris 11 is different from Solaris 10 (patches). They called it idr (interim diagnostic relief) indentifier on Solaris 11 <br />
<br />
Following example, I am installing idr111 on Solaris 11 server<br />
<br />
# <em><span style="color: blue;">pkgrepo create /var/tmp/idrrepo</span></em><br />
<br />
<br />
# <em><span style="color: blue;">cd /var/tmp</span></em><br />
<br />
# <em><span style="color: blue;">pkgrecv -s ./idr111p5p -d /var/tmp/idrrepo '*'</span></em><br />
<br />
# <em><span style="color: blue;">pkg set-publisher -g file:///var/tmp/idrrepo solaris</span></em><br />
<br />
# <em><span style="color: blue;">pkg publisher</span></em> ( To verify that publisher is available)<br />
<br />
solaris (non-sticky) origin online file:///var/tmp/idrrepo/<br />
<br /><br />
Install the idr using following command:<br />
<br />
#<em><span style="color: blue;"> pkg install idr111</span></em><br />
<br /><br />
Verify the package is installed by<br />
<br />
<br />
# <em><span style="color: blue;">pkg verify -v idr111</span></em><br />
<br />
PACKAGE STATUS<br />
<br />
pkg://solaris/idr111 OK<br />
<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com1tag:blogger.com,1999:blog-5485064613942221162.post-14561349617055459052012-06-20T10:57:00.000-07:002012-06-20T10:57:35.746-07:00Error while luactivate/usr/sbin/luactivate: /etc/lu/DelayUpdate/: cannot create <br />
<br />
Workaround: <br />
execute folloing: <br />
<br />
# export BOOT_MENU_FILE="menu.lst"Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-21830489887105429502012-06-20T10:48:00.006-07:002012-06-20T10:53:42.512-07:00Debugging issues on Solaris using truss<span style="color: blue;">In original ksh terminal, find out the PID of the ksh shell:</span><br />
<br />
<br />
# ps<br />
<br />
<span style="color: blue;">On 2nd terminal:</span><br />
<br />
# truss -faeldo locale.truss -vall -r0 -w 1,2 -p (PID of ksh shell)<pid ksh="" of="" shell=""><br />
<br />
<span style="color: blue;">In original ksh terminal:</span><br />
<br />
Execute the command which is having issues<br />
<br />
<span style="color: blue;">On 2nd terminal:</span><br />
<br />
<br />
Tail the locale.truss or read the contents for more details<br />
<br />
<br />
<br />
<br />Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-8818553710920270532012-04-10T11:13:00.008-07:002012-04-10T12:18:52.427-07:00Modules of CloudThere are basically three service modules in the cloud computing:<br /><br />1) SaaS -> Software as a Service, Providers will provide the client with a complete software application environment, including management and the user interface. Clients usually have access to the environment through a thin user interface such as browser, which enables data entry and manages user interactions. Provider must manage everything else, from the infrastructure to the architecture.<br /><br />2) PaaS -> Platform as a Service, provides clients with the complete development environment incuding virtual machines . operating systems, applications, services. Clients can deploy their own applications programmed using PaaS-compatible languages and tools. With this model, the service provider is responsible for managing cloud infrastructure and the operating systems, and client develop, install and manage the applications they want to deploy.<br /><br />3) IaaS-> Infrastructure as a Service provides hardware assets to clients, who can then provision themm. Example of these hardware assets are virtual computing systems, storage resources.Clients are responsible for deploying and managing all the other aspects of the infrastructure including Opeations sytstem, application and user interactions with the systems.Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-76758439113508901382012-02-28T08:23:00.002-08:002012-02-28T10:09:22.551-08:00Working on extents on Redhat LVMIf you want to create Logical volume using extents:<br /><br />By default PE size for volume group is 4 MB.<br /><br /><br /><span style="color:#3333ff;">PE Size 4.00 MiB</span><br /><br />If you want to change it, you can use -s option when you are creating volume group<br /><br />For example<br /><br /># <span style="color:#ff0000;">vgcreate -s 8 helloguruvg /dev/sdh</span><br /><span style="color:#ff0000;"></span><br /><span style="color:#000000;">For now, i am using default value which is 4 MB.</span><br /><br />I am creating Logical volume with 30 extents (which will be 30 x 4 MB size)<br /><br />[root@kumar ~]#<span style="color:#ff0000;"> lvcreate -l 30 -n hellogurulg helloguruvg</span><br /><br />Making ext4 filesystem:<br /><br />[root@kumar ~]#<span style="color:#ff0000;"> mkfs.ext4 /dev/mapper/helloguruvg-hellogurulg</span><br /><br />[root@kumar ~]# <span style="color:#ff0000;">mkdir /hellogurufs</span><br /><br />[root@kumar ~]# <span style="color:#ff0000;">mount /dev/mapper/helloguruvg-hellogurulg /hellogurufs</span><br /><br />[root@kumar ~]# <span style="color:#ff0000;">df -h</span><br /><br /><span style="color:#3333ff;">/dev/mapper/helloguruvg-hellogurulg 117M 5.6M 105M 6% /hellogurufs</span><br /><br />Edit the fstab to make it persistentRam Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-3712524147808935902012-02-28T08:08:00.002-08:002012-02-28T08:17:59.218-08:00Adding SWAP on Redhat using LVMFollowing steps to add swap using LVM with out creating new partition<br /><br />1) Check if you have enough space in the volume group<br /><br />[root@kumar ~]#<span style="color:#ff0000;"> vgs</span> <br /><span style="color:#3333ff;">VG #PV #LV #SN Attr VSize VFree </span><br /><span style="color:#3333ff;">test1VG 1 4 0 wz--n- 1020.00m 36.00m </span><br /><span style="color:#3333ff;">testingextentvg 1 1 0 wz--n- 104.00m 24.00m </span><br /><span style="color:#3333ff;">vgexttest 1 1 0 wz--n- 96.00m 32.00m</span><br /><br /><br />Following command will create Logical volume swaphello with the size 10 MB<br /><br />[root@kumar ~]# <span style="color:#ff0000;">lvcreate -L 10M -n swaphello test1VG</span><br /><br />[root@kumar ~]# <span style="color:#ff0000;">mkswap /dev/mapper/test1VG-swaphello</span><br /><br />[root@kumar ~]# <span style="color:#ff0000;">swapon /dev/mapper/test1VG-swaphello</span><br /><br />Add swap entry in the fstab so that it will be persistent<br /><br />[root@kumar ~]# <span style="color:#ff0000;">vi /etc/fstab</span><br /><span style="color:#3333ff;"> /dev/mapper/test1VG-swaphello swap swap defaults 0 0</span><br /><br />Check your work<br /><br />[root@kumar ~]# <span style="color:#ff0000;">free -m</span> <br />[root@kumar ~]#<span style="color:#ff0000;"> swapon -s</span>Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-80442053236150222942012-02-15T11:43:00.000-08:002012-02-15T12:10:32.946-08:00chown on solaris 10 (Not owner error)By default only root can change ownership on Solaris 10 (Even owner of the file can't change it)<br /><br />If you want owner of the file/directory to update the owner:<br /><br />Update the<span style="color:#000099;"> /etc/system</span> with the following and reboot<br /><span style="color:#000099;">rstchown=0</span><br /><br />or<br /><br />Following if you want to change (Enter commands in the <span style="color:#cc0000;">RED) </span>with out reboot (It is not persistent)<br /><br /><br /><br />#<span style="color: rgb(204, 0, 0);"> adb -w -k /dev/ksyms /dev/mem</span><br />physmem 3ee50a8<br /><span style="color: rgb(204, 0, 0);">rstchown/D</span><br />rstchown:rstchown: 1<br /><span style="color: rgb(204, 0, 0);">rstchown?W0x0</span><br />rstchown: 0x1 = 0x0<br /><span style="color: rgb(204, 0, 0);">rstchown/D</span><br />rstchown:rstchown: 0Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com1tag:blogger.com,1999:blog-5485064613942221162.post-71960123414659396812011-12-28T09:57:00.000-08:002011-12-28T10:08:43.371-08:00IP Forwarding on RHELWe can modify IP_forwarding temporally or permanently<br /><br /><span style="color: rgb(0, 0, 153);">For temporally</span><br /><br /><span style="color: rgb(0, 0, 153);"> There are two methods for temporally change,</span><br /><br /><span style="color: rgb(0, 0, 153);">Method 1</span><br /><br />Check if IP Forwarding was already enabled or not<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# cat /proc/sys/net/ipv4/ip_forward </span><br />0<br /><br />if it is 0 it is disabled, if 1 then it is enabled<br /><br />Modify the value<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# echo 1 > /proc/sys/net/ipv4/ip_forward</span><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# cat /proc/sys/net/ipv4/ip_forward </span><br />1<br /><br /><span style="color: rgb(0, 0, 153);">Method 2</span><br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# sysctl -a|grep ip_forward</span><br />net.ipv4.ip_forward = 0<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# sysctl -w net.ipv4.ip_forward=1</span><br />net.ipv4.ip_forward = 1<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# sysctl -a|grep ip_forward</span><br />net.ipv4.ip_forward = 1<br /><br /><br /><br /><br /><span style="color: rgb(0, 0, 153);">For permanent change,</span><br /><br />Modify following line in<span style="color: rgb(255, 0, 0);"> /etc/sysctl.conf</span> to 1 from 0<br /><br /># Controls IP packet forwarding<br />net.ipv4.ip_forward = 1<br /><br /><br />Execute following command to load the configuration<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# sysctl -p</span>Ram Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0tag:blogger.com,1999:blog-5485064613942221162.post-69556480354062171172011-12-28T07:16:00.000-08:002011-12-28T07:21:57.057-08:00LVM creationg, Extend and reduce in RHELfdisk -l<br /><br />Disk /dev/sda: 8589 MB, 8589934592 bytes<br /><br /><span style="color: rgb(0, 0, 153);">Added new hard disk(2 GB) using Vmware settings</span><br /><br /><br />From the host, used following command to scan new disk<br /><br /><span style="color: rgb(255, 0, 0);">echo "- - -" > /sys/class/scsi_host/host2/scan</span><br /><br />Disk /dev/sda: 8589 MB, 8589934592 bytes<br />Disk /dev/sdb: 2147 MB, 2147483648 bytes<br /><br /><br /><span style="color: rgb(0, 0, 153);">Noticed new disk /dev/sdb after scan </span><br /><br /><br />Now Creating new LVM using new disk<br /><br />1) Creating Physical volume<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# pvcreate /dev/sdb</span><br /> Physical volume "/dev/sdb" successfully created<br /><br />2) Assign physical volume to volume group<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# vgcreate vg1 /dev/sdb</span><br /> Volume group "vg1" successfully created<br /><br />3) Check your work<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# vgs</span><br /> VG #PV #LV #SN Attr VSize VFree<br /> vg1 1 0 0 wz--n- 2.00g 2.00g<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# pvs</span><br /> PV VG Fmt Attr PSize PFree<br /> /dev/sdb vg1 lvm2 a- 2.00g 2.00g<br /><br />Now Create Logical Volumes of 1 GB initially. I will explain how to extend and reduce after this<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# lvcreate -L 1GB -n lg1 vg1</span><br /> Logical volume "lg1" created<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# mke2fs -j /dev/vg1/lg1 </span><br />mke2fs 1.41.12 (17-May-2010)<br />Filesystem label=<br />OS type: Linux<br />Block size=4096 (log=2)<br />Fragment size=4096 (log=2)<br />Stride=0 blocks, Stripe width=0 blocks<br />65536 inodes, 262144 blocks<br />13107 blocks (5.00%) reserved for the super user<br />First data block=0<br />Maximum filesystem blocks=268435456<br />8 block groups<br />32768 blocks per group, 32768 fragments per group<br />8192 inodes per group<br />Superblock backups stored on blocks:<br /> 32768, 98304, 163840, 229376<br /><br />Writing inode tables: done <br />Creating journal (8192 blocks): done<br />Writing superblocks and filesystem accounting information: done<br /><br />This filesystem will be automatically checked every 26 mounts or<br />180 days, whichever comes first. Use tune2fs -c or -i to override.<br /><br /><br /><span style="color: rgb(0, 0, 153);">Now Create new filesystem</span><br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# mkdir /test</span><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# mount /dev/vg1/lg1 /test</span><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# df -h</span><br /><span style="color: rgb(0, 0, 153);">/dev/mapper/vg1-lg1 1008M 34M 924M 4% /test</span><br /><br />Now filesystem is mounted but when you restart the system, it will not mount it again. For that, we need to update /etc/fstab file<br /><br /><span style="color: rgb(51, 0, 51);">/dev/mapper/vg1-lg1 /test ext4 defaults 0 0</span><br /><br />After updating, we can make sure it is correct by unmounting and mounting it again<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# umount /test</span><br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# mount /test</span><br /><br /><span style="color: rgb(0, 0, 153);">Cool. Now we will extend the filesystem from 1 GB to 1.5 GB.</span><br /><br />First we will check if we have enough space for this<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# vgs</span><br /> VG #PV #LV #SN Attr VSize VFree <br /> vg1 1 1 0 wz--n- 2.00g 1020.00m<br /><br /><br />Yep, we have space.<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# lvextend -L +512MB /dev/vg1/lg1 </span><br /> Extending logical volume lg1 to 1.50 GiB<br /> Logical volume lg1 successfully resized<br /><br />It will still show 1 GB<br /><br />/dev/mapper/vg1-lg1 1008M 34M 924M 4% /test<br /><br />Now we have to execute following command to extend<br /><br /><span style="color: rgb(255, 0, 0);">root@Ram ~]# resize2fs /dev/vg1/lg1 </span><br />resize2fs 1.41.12 (17-May-2010)<br />Filesystem at /dev/vg1/lg1 is mounted on /test; on-line resizing required<br />old desc_blocks = 1, new_desc_blocks = 1<br />Performing an on-line resize of /dev/vg1/lg1 to 393216 (4k) blocks.<br />The filesystem on /dev/vg1/lg1 is now 393216 blocks long.<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# df -h</span><br /><br />/dev/mapper/vg1-lg1 1.5G 34M 1.4G 3% /test<br /><br /><br />We got email from developer to reduce the filesystem to 1 GB since he accidently sent wrong filesystem<br /><br />Ok, the problem for reducing filesystem, we have to unmount the filesystem<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# umount /test</span><br /><br />Check the filesytem<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# e2fsck -f /dev/vg1/lg1 </span><br />e2fsck 1.41.12 (17-May-2010)<br />Pass 1: Checking inodes, blocks, and sizes<br />Pass 2: Checking directory structure<br />Pass 3: Checking directory connectivity<br />Pass 4: Checking reference counts<br />Pass 5: Checking group summary information<br />/dev/vg1/lg1: 11/98304 files (0.0% non-contiguous), 14765/393216 blocks<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# resize2fs /dev/vg1/lg1 1024M</span><br />resize2fs 1.41.12 (17-May-2010)<br />Resizing the filesystem on /dev/vg1/lg1 to 262144 (4k) blocks.<br />The filesystem on /dev/vg1/lg1 is now 262144 blocks long.<br /><br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# lvreduce -L 1024M /dev/vg1/lg1 </span><br /> WARNING: Reducing active logical volume to 1.00 GiB<br /> THIS MAY DESTROY YOUR DATA (filesystem etc.)<br />Do you really want to reduce lg1? [y/n]: y<br /> Reducing logical volume lg1 to 1.00 GiB<br /> Logical volume lg1 successfully resized<br /><br />Mount the filesystem<br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# mount /test</span><br /><br /><span style="color: rgb(255, 0, 0);">[root@Ram ~]# df -h</span><br />/dev/mapper/vg1-lg1 1008M 34M 924M 4% /testRam Kumarhttp://www.blogger.com/profile/12672029173246962559noreply@blogger.com0