ERROR OCURRED

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Wednesday, December 30, 2009

Lvm on xen with full steps

Posted on 1:46 AM by Unknown
In this example,expanding the nagios machine (lvm size)
Use the following steps to expand VM size ( lvm expand)

1) #xm list (showning running VM)
[root@inf1basevm01 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 7269 4 r----- 4505.4
ind1basevm01 1 255 1 -b---- 17.3
ind1infra01 2 255 1 -b---- 17.4
nagios 4 256 1 -b---- 0.3

Showing 3 running virtual machines.

2)shut down the running VM (through login or use following command)

#xm shutdown nagios

3) use fdisk to check...

[root@inf1basevm01 ~]# fdisk -l /dev/VmImage/nagios

Disk /dev/VmImage/nagios: 16.1 GB, 16106127360 bytes
255 heads, 63 sectors/track, 1958 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/VmImage/nagios1 * 1 13 104391 83 Linux
/dev/VmImage/nagios2 14 1958 15623212+ 8e Linux LVM

***now Disk size is 16.1GB***

4) Now expand the LVM size.

[root@inf1basevm01 ~]# lvextend /dev/VmImage/nagios -L +2GB
Extending logical volume nagios to 17.00 GB
Logical volume nagios successfully resized

5) Now check again with fdisk.

[root@inf1basevm01 ~]# fdisk -l /dev/VmImage/nagios

Disk /dev/VmImage/nagios: 18.2 GB, 18253611008 bytes
255 heads, 63 sectors/track, 2219 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

*** you able to see 18.2GB (mean 2GB expand)***

6) Now start the VM

#xm create nagios
Using config file "/etc/xen/nagios".
Started domain nagios

7) # xm list
[root@inf1basevm01 ~]# xm list
Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 7269 4 r----- 4505.4
ind1basevm01 1 255 1 -b---- 17.3
ind1infra01 2 255 1 -b---- 17.4
nagios 4 256 1 -b---- 0.3

Its show all 3 VM are up now.

---------------------------------------------------------------------------------
Now very important part....
Login as root on nagios machine (VM machine)

Run #fdisk -l and #df -h ( you got the difference)

Now run
#fdisk /dev/xvda (create partition)
according to yours.

use partprobe command or reboot the machine to make online disk.

#partprobe

After that run pvdisplay ( to check current physical volume)

#pvdisplay

Now create physical volume on /path/of/drive like following

# [root@nagios ~]# pvcreate /dev/xvda3
Physical volume "/dev/xvda3" successfully created
[root@nagios ~]# vgdisplay

Now run vg display for check volume group

#vgdisplay

Now extend you VG

#[root@nagios ~]# vgextend VolGroup00 /dev/xvda3
Volume group "VolGroup00" successfully extended

**VolGroup00 is VG name**

#vgdisplay

Now extend you LVM

#lvdisplay

#[root@nagios ~]# lvextend /dev/VolGroup00/root -L +3.90GB
Rounding up size to full physical extent 3.91 GB
Extending logical volume root to 17.78 GB
Logical volume root successfully resized


Now run following command very carefully

#[root@nagios ~]# resize2fs /dev/VolGroup00/root 17G
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/VolGroup00/root is mounted on /; on-line resizing required
Performing an on-line resize of /dev/VolGroup00/root to 4456448 (4k) blocks.
The filesystem on /dev/VolGroup00/root is now 4456448 blocks long.



***The resize2fs program will resize ext2 or ext3 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing. (As of this writing, the Linux 2.6 kernel supports on-line resize for filesystems mounted using ext3 only.)*****

Now Run following command to check space.

[root@nagios ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-root
18G 1.1G 16G 7% /
/dev/xvda1 99M 21M 74M 22% /boot
tmpfs 129M 0 129M 0% /dev/shm


That's End of the story.........Hope this work for you.... Enjoy and have a nice day.
Read More
Posted in | No comments

Tuesday, December 29, 2009

Ngaios HTTP WARNING: HTTP/1.1 403 Forbidden

Posted on 2:53 AM by Unknown
To solve this..

simply create index.html file under http root directory.

#cd /var/www/html
#touch index.html

Restart web services.

#service httpd restart

Now restart you nagios services.

#/etc/init.d/nagios restart

After this you will see this meaasge on you nagios. (status information)

HTTP OK HTTP/1.1 200 OK - 265 bytes in 0.004 seconds.


Enjoy it.....
Read More
Posted in | No comments

Thursday, December 24, 2009

Fedora LVM partitions,mount through ubuntu Live CD.

Posted on 12:00 AM by Unknown
Use the following steps.

login as root like this--
$sudo su -

#apt-get install lvm2

#modprobe dm-mod

#vgchange -a y

#lvdisplay ( it will show you the lvm partition)

Now mount the LVM ...

#mkdir /tmp

#mount /dev/VolGroup00/Logvol00 /tmp

Now check /tmp dir for access data.

Enjoy......:)
Read More
Posted in | No comments

Tuesday, December 8, 2009

Wireless Issue -Dell Vostro 1520 - Fedora 11 (Intel WiFi Link 5100)

Posted on 11:53 PM by Unknown
Since I have had large amount of hassles getting the wireless working with Intel WiFi Link 5100 wifi card on the Dell Vostro 1520 (wouldn't be the only affected model).

Problem:

Problem is that NetworkManager cannot find out if the killswitch is turned on or off so it assumes its off y default and disables the wireless.

Some other methods that half worked (could scan for available networks but could not join them) are:
wlassistant
wpa_supplicant (directly with config files)
traditional networking for wireless

To get working via all programs (NetworkManager included):

Step 1: Install the firmware of the wireless (iwl5000-firmware):
yum install iwl5000-firmware -y

Step 2: Disable dell_laptop kernel module:
modprobe -rv dell_laptop

Step 3: Stop dell_laptop kernel module from being automatically loaded on boot:
echo "blacklist dell_laptop" >> /etc/modprobe.d/blacklist.conf

Step 4: Start/Restart NetworkManager
/etc/init.d/NetworkManager restart
or
service NetworkManager restart

Step 5: Connect to a wireless network to verify all is working.

Hope this helps if you hit the same problem.

Special thanks to Kelly Reed.
Read More
Posted in | No comments

Wireless Issue -Dell Vostro 1510 - Fedora 11

Posted on 11:50 PM by Unknown
Face wifi issue with dell vostro 1510 + fc11

#lspci (command output)

Network controller : Broadcom corporation BCM 4312 802.11b/g (rev 01)

This solution work for me:--

#rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm

#yum update

#yum install kmod-wl ( around 22MB )


Reboot the machine & Wireless connection work me.
Read More
Posted in | No comments

Tuesday, December 1, 2009

upgrade centOS 5.3 to 5.4

Posted on 12:12 AM by Unknown
use the following steps for upgrade,

yum clean all
yum update glibc\*
yum update yum\* rpm\* python\*
yum clean all
yum update
shutdown -r now

After reboot check

#cat /etc/redhat-release
CentOS release 5.4 (Final)


Done!!!!
Read More
Posted in | No comments
Newer Posts Older Posts Home
Subscribe to: Comments (Atom)

Popular Posts

  • No package 'lua5.1' found
    hecking for LUA51... no checking for LUA51... configure: error: Package requirements (lua5.1 >= 5.1) were not met: No package 'lua5.1...
  • response to SOA query was unsuccessful: solved
    check your zone file [root@inf1sysadm1 data]# pwd /var/named/data # cat ind.raman.com.zone $ORIGIN . $TTL 3600 ; 1 hour ind.raman.com IN SO...
  • can't locate your x11 installation Fedora
    While install Conky, system through this error. Solution:- You need to install X11 Software Dev Package. Login on system with root user ...
  • Qmail Installation & Configuration step by step
    Tested under CentOS 5.8  64bit machine. 1)Packges which i installed for Qmail. httpd-2.2.3-76 php-5.1.6-39 perl-5.8.8 -38 gcc-4.1.2 mysql-5....
  • Dell MD3200 SAS Cabling With Diagram
    I have 2 MD3200 with SAS Ports + 2 Power Edge720. Task to connect Both DAS with Both server and make sure Both server showing  all DAS Parti...
  • It is safe to clean windows prefetch folder and registry folder ?
     It is safe to clean windows prefetch folder and registry folder ? Will this boost Windows operating system capabilities ? Many of you hav...
  • Windows 7 & Windows 8 fail to start
    Windows 7 fail to boot, what should I do? Is Windows 7 failing to boot after you installed the loader or after you just installed a fresh ne...
  • Steps how to change VolStatus in Bacula through bonsole.
    In my example MediaId=4 or Volumename=000018L4 shows volstatus is Purged. *list volumes Pool: Default +---------+------------+-----------+--...
  • Adobe Photoshop CS5 Error 16 , Adobe Photoshop CS5 Error 7
    When you install Adobe Photoshop CS5 you might get some errors. In case you get one you will see a code and a little description. Is very im...
  • X connection to localhost:10.0 broken (explicit kill or server shutdown).
    Solution:- With Xhost, you can solve this issue.

Categories

  • Adobe
  • Players
  • Reviews
  • Windows

Blog Archive

  • ►  2013 (27)
    • ►  October (3)
    • ►  August (1)
    • ►  June (1)
    • ►  April (3)
    • ►  February (10)
    • ►  January (9)
  • ►  2012 (29)
    • ►  December (2)
    • ►  November (7)
    • ►  October (10)
    • ►  September (4)
    • ►  August (1)
    • ►  June (2)
    • ►  April (1)
    • ►  March (1)
    • ►  January (1)
  • ►  2011 (36)
    • ►  December (3)
    • ►  November (3)
    • ►  October (1)
    • ►  September (5)
    • ►  August (4)
    • ►  May (2)
    • ►  April (4)
    • ►  March (5)
    • ►  February (2)
    • ►  January (7)
  • ►  2010 (24)
    • ►  December (1)
    • ►  November (1)
    • ►  October (4)
    • ►  August (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (2)
    • ►  February (5)
    • ►  January (8)
  • ▼  2009 (18)
    • ▼  December (6)
      • Lvm on xen with full steps
      • Ngaios HTTP WARNING: HTTP/1.1 403 Forbidden
      • Fedora LVM partitions,mount through ubuntu Live CD.
      • Wireless Issue -Dell Vostro 1520 - Fedora 11 (Inte...
      • Wireless Issue -Dell Vostro 1510 - Fedora 11
      • upgrade centOS 5.3 to 5.4
    • ►  November (3)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2008 (16)
    • ►  December (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (5)
    • ►  April (2)
    • ►  February (1)
    • ►  January (5)
  • ►  2007 (4)
    • ►  July (3)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile