Operating System - Linux
1752748 Members
4814 Online
108789 Solutions
New Discussion юеВ

how to create a File system using LVM for disks assigned from SAN

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to create a File system using LVM for disks assigned from SAN

Hi

in my environment, we are using Emulex and qlogic HBA cards. so i need information for both the cards.

I want information for followings.

1) what command is used / how to view the device files for both Emulex and qlogic HBA cards?

2) what command is used / how to view the wwnn and wwpn for both Emulex and qlogic HBA cards?

3) what command is used / how to view the newly created SAN device.

4) How to create a logical volume using this newly created SAN device.

pls explain me step by step.
3 REPLIES 3
smatador
Honored Contributor
Solution

Re: how to create a File system using LVM for disks assigned from SAN

Hi,
For the second question look at the answer of Matti
http://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1318321
Hemmetter
Esteemed Contributor

Re: how to create a File system using LVM for disks assigned from SAN

Hi,



2) this depends on the kernel you use.
you may find them
either under /proc
or under /sys/class/scsi_host/host?
or under /sys/class/fc_host/....

identify the correct one with a glance.


3) to rescan the bus in question you can change into the found /sys/class/*host/host*/ directory and then
# echo "- - - " > scan

#dmesg should show up new devices.


4) i would first create a single partition covering the whole disk with type 8e / Linux LVM".

second "pvcreate" all the new /dev/sd*

third you either "vgextend" an existing vg or "vgcreate" a new one.

then "lvcreate" a new volume.


SEE pvcreate(1), vgcreate(1), vgextend(1), lvcreate(1)



rgds
HGH
Ivan Ferreira
Honored Contributor

Re: how to create a File system using LVM for disks assigned from SAN

1 and 2) Use SanSurfer utility for Qlogic and HBA Anywhere for Emulex.

3) Please see: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1060267

4) Please see: http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=960077

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?