1831555 Members
3844 Online
110025 Solutions
New Discussion

SLES9 MSA1000 LVM2

 
ARMAND_7
Occasional Contributor

SLES9 MSA1000 LVM2

Hello,

I have created a LUN on my MSA1000:
bonatti:/ # lssg
sg0 0,0,0,0 COMPAQ MSA1000 4.32 5008-05f3-000e-0de9
sg1 0,0,0,1 COMPAQ MSA1000 VOLUME 4.32 5008-05f3-000e-0de9
sg2 1,0,0,0 COMPAQ MSA1000 4.32 5008-05f3-000e-0de1

bonatti:/ # lssd
sda 0,0,0,1 COMPAQ MSA1000 VOLUME 4.32 5008-05f3-000e-0de9

I want to to do a pvcreate for my vgcreate, what should I do?

Thx,
Jerome
2 REPLIES 2
Fred Christiansen
New Member

Re: SLES9 MSA1000 LVM2

I have not used LVM extensively, but when I did I had to prepared the devices/partitions using pvcreate. E.g.,
pvcreate /dev/sdc
Then I created the volume group:
vgcreate vg00 /dev/sdc
To get stats about the volume group:
vgdisplay -v
To create logical volumes:
lvcreate -l"# PE's" vg00
I got the number of PE's (physical elements) from the vgdisplay output, then created several lvol's by dividing up the number of PE's between them. Basically the same as on HP-UX.

And now a question for you: I've googled and searched the HP web site and SourceForge, and cannot find a reference to lssg or lssd. Can provide a URL/ref? Thanks.
ARMAND_7
Occasional Contributor

Re: SLES9 MSA1000 LVM2

Thx Fred, I made myself not very clear, sorry... Indeed my problem was that I got several kernel I/O error when performing my pvcreate! After investigation, I was not using the good QLogic driver.
So I installed the "hp QLogic drivers" from here http://h20000.www2.hp.com/bizsupport/TechSupport/DriverDownload.jsp?pnameOID=315741&locale=en_US&taskId=135&prodTypeId=12169&prodSeriesId=315739&swEnvOID=1110

and probably that my cabling was wrong (I cannot use both channel on the same FC2214 HBA...

At the end of the install of http://h20000.www2.hp.com/bizsupport/CoreRedirect.jsp?targetPage=ftp%3A%2F%2Fftp.hp.com%2Fpub%2Fsoftlib%2Fsoftware4%2FCOL9160%2Fco-24611-2%2Fhp_qla2x00-2004-10-19.tar.gz

you will see the install of fibreutils in which you will find the lssd and lssg and some other useful utils like hp_rescan -a that should do the echo in /proc/scsi/scsi...

Thx

Jerome