Saturday, January 12, 2013

How to change ext2 to ext3 file system in Linux

Hi All,

Thanks for visiting my blog. It feels good and nice on your every visit.

Today, I learnt changing of ext2 filesystem to ext3 file system. first of all would like to share that, i was not aware of how to make an ext3 file system in RHEL linux. so i learnt that, next i learn how to change from ext2 file system to ext3 file system i.e. migrating to ext3 file sysetm.

method of creating ext2 file system is :-

#pvcreate /dev/sdb

message will appear that pv is created successfully.

#vgcreate vgdb /dev/sdb

by this we are creating vg named as vgdb on /dev/sdb disk of any size.

#lvcreate -L " desired size" -n "name of the desire lv" /dev/vgdb

now the command for creation of ext2 file system comes i.e.

#mkfs /dev/vgdb/"name of the lv"

this will create the file system as ext2, after mounting the file system, you can see the same with

#df -hT

command , this will show the type of file system also.

for mounting the file system, you should have a directory with you. which can be created with.

#mkdir -p /name with location of the directory you want to mount the file system on

# mount /dev/vgdb/lvname /mountpoint or directory created.

Now the point comes to change the filesystem type i.e. from ext2 to ext3.  I know this much haven't learn changing from ext3 to ext2 till now. when i will learn will post.

the command is :-

#tune2fs -j /dev/

this block device you can get from /etc/fstab also, please remember to change the type of file system after running the tune2fs command in /etc/fstab too. so that as system reboot it doesn't find any conflict. and reboots properly.

Thanks for the visit, bye for now. will keep post and always appreciate your visit.

Love all.
Amit Chopra


 

insf, rmsf and ioscan HP UX

Today, we faced a problem in HPVM. we have earlier assigned some LUNs from EMC storage to our rx8640 host. which is installed in our host server.
we were upto on refresh of our staging servers/ guest. for this we have to assign the Luns to our guest. the command to assign luns to guest as a disk is below :-

#hpvmmodify -p "number of the guest" -a scsi:disk::disk:/dev/rdisk/disk**

example

#hpvmmodify -p 6 -a disk:scsi:disk:/dev/rdisk/disk88


this command will assign the disk to the guest which is specified or written.

the issue we faced that we were not able to see the meta number given to us by storage team. Storage team checked at their end, but couldn't find the issue. we also checked initially, there were some meta number, later we removed some offline devices which were coming in IOSCAN -fnc DISK. we removed the offline devices or NO_HW devices.

the command for removing devices from the server is :-

# rmsf -H "device" :- example :-

two paths we have to remove  (first we will get from ioscan -fnC disk)

path type 1

#rmsf -H 0/0/0/0.5.0

path type 2 ( this path we will/can get from ioscan -m lun)

#rmsf -H 64000/0xfa00/0x68

then we have to remove the stale devices also. the stale devices.

the command to remove the stale devices is as :-

#
#rmsf -x
#

this will list all the stale devices also once if you have removed the devices using rmsf -H command.
if already run the command, then next it may not show any output like shown above.

Remove each and all devices which were earlier if given to Guest and not being used by the guest. please check and verify each and every point using

#vgdisplay -v "name of the vg"

it will represent the PV attached to the VG. so never panic before running rmsf -H/rmsf -x. check each and every device.

after that run ioscan -fnC disk and insf -e which is used to install special files. the rmsf is to remove special files adding -x is to remove stale devices with rmsf. insf -e will list the devices installed with installing special files.

combination of these commands are good and need to be run with proper care also.

#ioscan -m lun
#ioscan -fnC disk
#rmsf -H
#vgdisplay -v
#rmsf -x
#

ohh forgot to add about, hpvmstatus and hpvmmodify command.

#hpvmstatus :- this command will only show or list the guest which are there in hosts.

#hpvmstatus -P "name of the guest"

the name of the guest, we can get from hpvmstatus. the ablve command will display the disk assigned, CPU given to hosts, RAM given, network devices and other devices assigned to the guest.

it was some troubleshooting we did.

Thanks for visiting my blog, keep enjoying keep learning and sharing.

Love all. god bless all of us.

Amit Chopra





 

Monday, January 7, 2013

What is the Booting sequence of HP Integrity Server

Hi All,


Below is the short note which i read in HP pdf. this is applicable for RX machines i.e rx 2660, rx 8640 machine.
and i have found this in Interview questions for HP UX also.

Q. 1 What is the booting sequence of HP Integrity server?

Answer :- There are six steps :-

First Step :-     Initialization of Hardware (it is at BIOS level).
Second Step :- EFI & Boot Loader are loaded and run.
Third Step :-    Now Operating System is chosen.
Fourth Step:-   OS loader is loaded and run.
Fifth Step :-     Finally OS iself is loaded and run.
Sixth Step:-     You are at login prompt.



This some what matches with  PA RISC   (HP 9000) as well. but two or more steps are added into it.


Keep Visiting my blog. Thanks for your visit.

Njoy Learning. 

How to make a Softlink in BasicUNIX/RHEL/HP UX

Hi All,

The command to make softlink in Unix is with a very small command :-

ln ;-- link command

ln -s "source file" "destination file"

explaination

#ln -s "name of the directory or file which needs to be made a soft link" "name of the file"

example

# cd  /
#
#ln -s /var/oracle /tmp/oracle

this will create a softlink in /tmp directory named as oracle of the directory /var/oracle.

will represent as below in tmp

#pwd
/tmp
#
#lrwrwxrwx owner owner oracle --> /var/oracle/

where this soft link can be accessed to access the content of /var/oracle

---------------------------

please correct me if i am wrong , thanks for the visit. please visit again.


Regards
Amit Chopra


 

Wednesday, January 2, 2013

Command to locally install the rpm RHEL

Hi All,

we can install any package locally also, by just copying the single package in /tmp directory or any where as per your choice.

#yum localinstall --nogpgcheck "nameofthepackage with or in current working directory"

example :-

#yum localinstall --nogpgcheck "/tmp/Client-linux-sles11-x86-6.0.101-66.rpm"

with this it will get installed with dependencies also.


Thanks for the visits, Appreciate your responses.

Love Sharing
Amit Chopra