Wednesday, February 26, 2014

Rabb kolo koi dukh nai mangda


Main ta sukhan nu mitr manda si,
Jeen da maksad samjda si,
Par kise ne dasya nai, k sukh kade kise da nai honda,
Rab nu chette karan layi,
Rabb kolo koi dukh nai mangda,

Jag jithe chalya, Main v udarr nu ho geya,
Rulda reha main mitti de delle vangu,
Par jeen da maksad hun tak palle nai peya,
duniya lad di ae roti layi,
par rabb kolo koi pukh nai mangda,

jaatan, mazbaan, uch neech ameer te garib,
bus ae hi duniya hai,
tan da pyaar sab mangde ne,
par rabb kolo koi oda pyaar sachi ibaadat nai mangda,

Main hun thak gaya sukh da rona ro k,
hun main kade rona nai,
Dukh te Mushkila mangna ha hu Rabba,
Tere kolo tera deedaaar karan mangda,

Rabb kolo koi dukh nai mangda.....



Love Sharing
Amit Chopra



Interview question on HP UX 11.31 Part 4

Hi Friends,

Got some basic questions with the span of time.


1. What is userdget command?
2. What is userdbset command?
3. How we can use find command to find the files with the specific files size?
ans. find /tmp -xdev -size +100000 -exec ll {} \;
it will find the size of files with size more than 100 MB. 
4. Mention few points on usage and measurement of resource on the server?
5. What is the difference between Socket, CPU, Processor, Logical Processor, Threads ?
6. What is the difference between Physical Memory, Cache, Virtual Memory and Swap Memory?
7. Define the columns of TOP, GLANCE, VMSTAT, IOSTAT ?
8. Do we have an option of measuring Memory with utility SAR in HP UX?
9. How can we make good use of VISUDO file?
10. What is the use of /etc/inetd.conf?
11. What is the use of /etc/nsswitch.conf?
12. If the login prompt takes time, then what is the cause?
13. How can we improve system performance?
14. What are the parameter that we can consider as a performance booster for the server?
15. What are the messaging tools available in HPUX?


Love Sharing
Amit Chopra

Thursday, February 20, 2014

Kernel boot

Hi Friends,

I have a query, can we make second kernel of hp ux and Redhat Linux to boot automatically if system cannot boot first kernel by its own twice or thrice. I want to avoid the manual intervention. Can there be any option? 

Love sharing 
Amit chopra 

Saturday, February 15, 2014

Lyrics of Song Kande Utte Meharma, Rahat Fateh Ali Khan Sahab

Hi Friends,

I was looking for lyrics of Kande Utte on google, it gave me only video and audio song. So decided to write the lyrics of the same. Please forgive me for my writing mistakes if I do while writing and it is just for reference. Writing the lyrics as i did not find them over net.

Mujhe Maaf kijiyega agar main galat likh ra hu ya sun ne mein galti kari ho to.


utte utte kande utte,
kande utte utte kande utte khadi,
oh mainu teriyan udeekan kande utte
mainu teriyan udeekan kande utte............. thrice

kande utte meharma ve, main te kado di khadi ....... 4
dil vich shonk milan da, nehri ishq di chadi.
chadi ve, dil vich shonk milan da nehri ishq di chadi...
kande utte meharma ve, haye...
kande utte meharma ve, main te kado di khadi
kande utte utte
kande utte..

mainu teriya udeekan kande utte... 3

teri deed ta chah..
teri deed da chaaah chaah..
teri deed da aj chah, aj vakte nigah nikle mera saah takde takde ....... 2
mere beparwah hun aa vih ja, .....2
thak gai hai nigah takde takde.....
Mainu teriya udeeka kande utte...3

Kande utte meharma ve,

 ishq aaap vih awallah, aede kam vih awahle, ..... 2
Jide pesh pe janda, kakh chad da ni palle... palle ...
Bus bohot buri nehri ishq di,
bohot buri nehri ishq di,
Bohot buri nehri ishq di.......

Agg Da daaru Meet Paani, Ishq da jaaru Keda, .... 2
Agg te saaaade takhte taane, Ishq saade dil mera....

Bohot buri Nehri Ishq di
Bohot buri Nehri Ishq di chadi...
Bohot Buri Bus Bohot buri Nehri....

Dil vich shonk milan da nehri ishq di chadi....
 
Mainu Maut to dara k kadhya muh na to mod,
Main ta nitti hai Namaz, meri neet na tu tod, 
Mainu Maut to dara k kadhya muh na to mod,
Main ta nitti hai Namaz, meri neet na tu tod,

Jind Yaar de hawale, ankh jide nal ladi,
ladi ve,  Jind Yaar de hawale, ankh jide nal ladi,
kande Utte Meharma ve, main te kado di khadi...

utte Utte Kande utte...





Thanks and Love Sharing
Amit Chopra

 


Saturday, February 8, 2014

Creating LVM SNAPSHOT REDHAT LINUX

 Hi Friends,

Today tried to create and learn about LVM Snap shot, yes the same process is going on, Had some questions in my mind, looking for their answers as well.

1. Decided the size of Snap shot LV comparing the size of my root file system.
2. Yes, The root Logical volume or root file system can be backed up or taken as a snap shot. below is the process.
3. The size of my root File system was 8.8 G, so decided to take some more space compared to it for root snapshot.

[root@localhost tmp]#
[root@localhost tmp]# lvcreate -L 100M -s -n tmpfilesystem /tmp
  "/tmp": Invalid path for Logical Volume
  The origin name should include the volume group.
  Run `lvcreate --help' for more information.
[root@localhost tmp]# lvcreate -L 15G -s -n rootlv /dev/mapper/VolGroup-lv_root
  Logical volume "rootlv" created
[root@localhost tmp]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  8.8G   38G  19% /
tmpfs                 935M  228K  935M   1% /dev/shm
/dev/sda1             485M   38M  422M   9% /boot
/dev/mapper/VolGroup-lv_home
                       50G  180M   47G   1% /home
/dev/mmcblk0p1        953M  148M  806M  16% /media/7C82-B9E9
[root@localhost tmp]# mkdir /backupofroot
[root@localhost tmp]# lvs
  LV      VG       Attr      LSize  Pool Origin  Data%  Move Log Cpy%Sync Convert
  lv_home VolGroup -wi-ao--- 50.10g                                             
  lv_root VolGroup owi-aos-- 50.00g                                             
  lv_swap VolGroup -wi-ao---  3.91g                                             
  rootlv  VolGroup swi-a-s-- 15.00g      lv_root   0.00                         
[root@localhost tmp]#
[root@localhost tmp]# mount /dev/mapper/VolGroup-rootlv /backupofroot
[root@localhost tmp]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  8.8G   38G  19% /
tmpfs                 935M  228K  935M   1% /dev/shm
/dev/sda1             485M   38M  422M   9% /boot
/dev/mapper/VolGroup-lv_home
                       50G  180M   47G   1% /home
/dev/mmcblk0p1        953M  148M  806M  16% /media/7C82-B9E9
/dev/mapper/VolGroup-rootlv
                       50G  8.8G   38G  19% /backupofroot
[root@localhost tmp]#


It took only one second to create the snap shot, now question arises :-

1. Can it replace the real root LV?, like if i want to boot the system with this LV then can i ?
2. How we can use this snap shot, What can or could be the scenerio?
3. Is it occupying its own space that is the space Have been allocated to it? or it is showing only a virtual space!
4. because as it is observed above the space is same as the original File System...
Ans :- It showed the same size as real root lv but at back end the 15 GB space, which was mentioned while create the snap shot lv was only used from the VG.

5. it will be better if we create a snapshot of any LV on other VG instead of using the same VG?

[root@localhost tmp]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
                       50G  8.8G   38G  19% /
tmpfs                 935M  228K  935M   1% /dev/shm
/dev/sda1             485M   38M  422M   9% /boot
/dev/mapper/VolGroup-lv_home
                       50G  180M   47G   1% /home
/dev/mmcblk0p1        953M  148M  806M  16% /media/7C82-B9E9
/dev/mapper/VolGroup-rootlv
                       50G  8.8G   38G  19% /backupofroot
[root@localhost tmp]#
[root@localhost tmp]#
[root@localhost tmp]# umount /backupofroot/
[root@localhost tmp]# lvremove /dev/mapper/VolGroup-rootlv
Do you really want to remove active logical volume rootlv? [y/n]: y
  Logical volume "rootlv" successfully removed
[root@localhost tmp]#
[root@localhost tmp]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup
  System ID            
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  9
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               297.60 GiB
  PE Size               4.00 MiB
  Total PE              76185
  Alloc PE / Size       26625 / 104.00 GiB
  Free  PE / Size       49560 / 193.59 GiB
  VG UUID               RHPHE2-Iq5r-wGPk-pUeV-oVS5-LTtW-Jbw0bQ
  
[root@localhost tmp]#
[root@localhost tmp]# vgdisplay
  --- Volume group ---
  VG Name               VolGroup
  System ID            
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  9
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               3
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               297.60 GiB
  PE Size               4.00 MiB
  Total PE              76185
  Alloc PE / Size       26625 / 104.00 GiB
  Free  PE / Size       49560 / 193.59 GiB
  VG UUID               RHPHE2-Iq5r-wGPk-pUeV-oVS5-LTtW-Jbw0bQ
  
[root@localhost tmp]# lvcreate -L 15G -s -n rootlv /dev/mapper/VolGroup-lv_root
  Logical volume "rootlv" created
[root@localhost tmp]# mount /dev/mapper/VolGroup-rootlv /backupofroot
[root@localhost tmp]# vgs
  VG       #PV #LV #SN Attr   VSize   VFree 
  VolGroup   1   4   1 wz--n- 297.60g 178.59g
[root@localhost tmp]# df -hT
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
              ext4     50G  8.8G   38G  19% /
tmpfs        tmpfs    935M  228K  935M   1% /dev/shm
/dev/sda1     ext4    485M   38M  422M   9% /boot
/dev/mapper/VolGroup-lv_home
              ext4     50G  180M   47G   1% /home
/dev/mmcblk0p1
              vfat    953M  148M  806M  16% /media/7C82-B9E9
/dev/mapper/VolGroup-rootlv
              ext4     50G  8.8G   38G  19% /backupofroot
[root@localhost tmp]#

4.

Please share your thoughts and views and help.

Love Sharing
Amit Chopra