1827838 Members
1455 Online
109969 Solutions
New Discussion

Re: EMC / LVM Issue

 
Ragni Singh
Super Advisor

EMC / LVM Issue

Hi all, its been a while since I have been here but then again, I haven't had any issues until now. Here goes my delimma again...

I have a linux server running as4.0 attached to a cx300. We have 2 luns created as such when I view it..


[root@s3prtp1 lvm]# fdisk -l |grep emc
Disk /dev/emcpowerb: 287.0 GB, 287005343744 bytes
/dev/emcpowerb1 1 34893 280277991 8e Linux LVM
Disk /dev/emcpowera: 273.6 GB, 273663262720 bytes
/dev/emcpowera1 1 33270 267241243+ 8e Linux LVM


We need to install Oracle.

Now here is what the user is requesting..

They want to divide the 2 luns into 4 devies and mount each device seperately.

It needs to look something lik this..

/dev/disk7/u01 /u01
/dev/disk7/u02 /u02
/dev/disk7/u03 /u03
/dev/disk7/u04 /u04

The other device should be the same except for..

/dev/disk8/u01 /u01
/dev/disk8/u02 /u02
/dev/disk8/u03 /u03
/dev/disk8/u04 /u04

CAn anyone underdstand what I'm trying to accomplish here and help me through this..Will give you all points for your input and assistance.
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: EMC / LVM Issue

Shalom,

This looks good.

Disk /dev/emcpowerb: 287.0 GB, 287005343744 bytes
/dev/emcpowerb1 1 34893 280277991 8e Linux LVM
Disk /dev/emcpowera: 273.6 GB, 273663262720 bytes
/dev/emcpowera1 1 33270 267241243+ 8e Linux LVM


After saving this configuration, perhaps use the Linux LVM GUI tool to prepare the disk space. It will run mkfs.ext3 for you.

This seems like a Linux call to me.

:-)

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ragni Singh
Super Advisor

Re: EMC / LVM Issue

I dont have the gui tool, so how do I carve the 2nd part of this post. How do I create these 4 devices? Do I use fdisk or lvm? Do I do a vgcreate, then lgvcreate?

Any pointers will help
Bob_Vance
Esteemed Contributor

Re: EMC / LVM Issue

You can use 'fdisk' to carve each LUN device into 4 partitions.

# fdisk /dev/emcpowera

You could create 4 primary partitions, which is the max for primaries on a disk. Or you could use an extended partition and then subdivide that into logical partitions, the max being 12. Since you only need exactly 4, primaries would be OK.

I'm not familiar with EMC device naming, but it appears that your partition devices would be:

... /dev/emcpowera1
... /dev/emcpowera2
... /dev/emcpowera3
... /dev/emcpowera4

... /dev/emcpowerb1
... /dev/emcpowerb2
... /dev/emcpowerb3
... /dev/emcpowerb4

Then, you do the 'pvcreate' on each partition device name, then the 'vgcreate', yadayada.

# pvcreate /dev/emcpowera1
# pvcreate /dev/emcpowera2
......


hth
bv
"The lyf so short, the craft so long to lerne." - Chaucer
Marvin Strong
Honored Contributor

Re: EMC / LVM Issue

to use fdisk or lvm is your call really. Personally I prefer lvm thus create 2 vg's 1 for each disk with the lvs.

pvcreate /dev/{disk}
vgcreate vgname /dev/{disk}
lvcreate -L size -n lvname vgname

repeat the lvcreate command for each logical volume. then repeat for the other disk.


here is an lvm howto link:
http://www.tldp.org/HOWTO/LVM-HOWTO/index.html
it contains alot of information
melvyn burnard
Honored Contributor

Re: EMC / LVM Issue

posted in wrong forum, moved to more appropriate forum
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!