Operating System - Linux
1828020 Members
2026 Online
109973 Solutions
New Discussion

Creating volume groups on SAN

 
Geetha_1
Regular Advisor

Creating volume groups on SAN

I have created logical drives on my MSA1000. How do I use these logical drives to create volume groups and logical volumes on RHEL4? I am used to hp-ux and am new to SAN and RHEL4. Can someone give me the detailed commands? The current logical drive layout is

MSA1000 at 1

array A
logicaldrive 1 (139 GB, RAID 1+0, OK)
logicaldrive 2 (139 GB, RAID 1+0, OK)

array B
logicaldrive 3 (139 GB, RAID 1+0, OK)
logicaldrive 4 (139 GB, RAID 1+0, OK)

array C
logicaldrive 5 (139 GB, RAID 1+0, OK)
logicaldrive 6 (139 GB, RAID 1+0, OK)


5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Creating volume groups on SAN

If your connection to the SAN is correct, you should see at least 3 SCSI devices in Linux:

fdisk -l

The devices normally have /dev/sd naming.

Then, the procedure is almost the same.

pvcreate /dev/sd
vgcreate datavg /dev/sd
lvcreate -y firstlv -L 1G datavg
mkfs -t ext3 /dev/datavg/firstlv
tune2fs -i0 -c0 -m0 /dev/datavg/firstlv
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Geetha_1
Regular Advisor

Re: Creating volume groups on SAN

Ivan,
I can't see it thro' fdisk. fdisk shows only the internal disks. Here is the output of the fdisk command..

Do I have do something to make the enable the linux host to see the SAN - MSA1000?

#fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 36473 292968749+ ee EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 36473 292968749+ ee EFI GPT

Thanks.
Geetha.
Geetha_1
Regular Advisor

Re: Creating volume groups on SAN

Ivan,
It worked - it had to do with SSP. Thanks for your help! PS reply and I'll assign you a 10.
Geetha.
Ivan Ferreira
Honored Contributor

Re: Creating volume groups on SAN

Glad it worked, but this reply at most worth 3 to complete 10!

Thank you very much.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Geetha_1
Regular Advisor

Re: Creating volume groups on SAN

I get an error running pvcreate on a SAN logical drive.

Output of fdisk -l:
Disk /dev/sda: 149.9 GB, 149945548800 bytes
255 heads, 63 sectors/track, 18229 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 18230 146431199+ ee EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 149.9 GB, 149945548800 bytes
255 heads, 63 sectors/track, 18229 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 18230 146431199+ ee EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdc: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 36473 292968749+ ee EFI GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 36473 292968749+ ee EFI GPT

I want to pvcreate on /dev/sda (SAN 149 G logical partition). How do I do it? I get the error...

#pvcreate /dev/sda
Device /dev/sda not found (or ignored by filtering).