1753797 Members
7273 Online
108805 Solutions
New Discussion юеВ

Re: MSA30 Mirror

 
Macho_2
Frequent Advisor

MSA30 Mirror

I have 4 physical disk attached to my HP MSA30. I want mirror the disk such as 2+2. Each of my disk size is 72GB x 4. So basically I am going to used only 144GB disk of space and the balance should be mirrored.


Please provide me step by step to configure the disk mirror.
11 REPLIES 11
Torsten.
Acclaimed Contributor

Re: MSA30 Mirror

What is your OS?

Any RAID controller in play?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Rob Leadbeater
Honored Contributor

Re: MSA30 Mirror

Hi,

As Torsten says it depends on what the MSA30 is connected to...

The MSA30 is just a SCSI disk shelf. It doesn't have any RAID functionality built in to it. If it's connected to a ProLiant, then you would normally setup the RAID on a SmartArray controller...

Hope this helps,

Regards,

Rob
Macho_2
Frequent Advisor

Re: MSA30 Mirror

Hi;

The MSA30 attach to the HPUX server version HPUX 11.23.
Torsten.
Acclaimed Contributor

Re: MSA30 Mirror

Run ioscan -fnCdisk to get the device files.

What I/O module is installed (SB/DB/MI)?

In case of dual busses, I would install 2 disks in each half of the MSA30 and connect to different HBAs.

Now you may use SAM to create VG's and LV's - mirror them to the other half of the chassis.

If you provide the output of

strings /etc/lvmtab
and
ioscan -fn

we can help you further.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Macho_2
Frequent Advisor

Re: MSA30 Mirror

Hi;

Attached is the info as your request. Please guide me.
mmax
Valued Contributor

Re: MSA30 Mirror

hi Macho

you have to crate PV for LVM
#pvcreate /dev/dsk/c4t0d0
#pvcreate /dev/dsk/c4t1d0
#pvcreate /dev/dsk/c5t0d0
#pvcreate /dev/dsk/c5t1d0

after you have to create VG and LV
#vgcreate vgdata /dev/dsk/c4t0d0 /dev/dsk/c4t1d0 /dev/dsk/c5t0d0 /dev/dsk/c5t1d0

after that you have to create LV on which you can create FS
#lvcreate -l 0 -n lvname1 vgdata
#lvcreate -l 0 -n lvname2 vgdata

extend LV to the right size

#lvextend -L SIZEinMB /dev/vgdata/lvname1 /dev/dsk/c4t0d0
#lvextend -L SIZEinMB /dev/vgdata/lvname2 /dev/dsk/c4t1d0

and create mirro to 2nd disk
#lvextend -m 1 /dev/vgdata/lvname1 /dev/dsk/c5t0d0
#lvextend -m 1 /dev/vgdata/lvname2 /dev/dsk/c5t1d0

at the end you have to create FS
#mkfs -F vxfs /dev/vgdata/lvname1
#mkfs -F vxfs /dev/vgdata/lvname2
and after that all you have 2 FS ready for use
regards
Michal
Torsten.
Acclaimed Contributor

Re: MSA30 Mirror

I was not able to send it earlier due to network problems.


You don't answered the question about the I/O module, but I assume it is a dual bus.

Here are your device files:

/dev/dsk/c4t0d0
/dev/dsk/c4t1d0

/dev/dsk/c5t0d0
/dev/dsk/c5t1d0

Now we create a new VG (vg01).

# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# pvcreate /dev/dsk/c4t0d0
# pvcreate /dev/dsk/c4t1d0

# pvcreate /dev/dsk/c5t0d0
# pvcreate /dev/dsk/c5t1d0
(next line is single line)
# vgcreate vg01 /dev/dsk/c4t0d0 /dev/dsk/c4t1d0 /dev/dsk/c5t0d0 /dev/dsk/c5t1d0

Now we have all 4 disks in vg01.

next step: create an zero sized lvol (lvol1):

# lvcreate vg01

Now we extend the LVOL to a size of 5gig to the first disk:

# lvextend -L 5000 /dev/vg01/lvol1 /dev/dsk/c4t0d0

finally mirror it:

# lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c5t0d0

Create a filesystem:
# newfs -F vxfs /dev/vg01/rlvol1

mount it:
# mkdir /my_new_mount_point
# mount /dev/vg01/lvol1 /my_new_mount_point

This is how it works, adjust the values as needed.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Macho_2
Frequent Advisor

Re: MSA30 Mirror

The steps the you all provide to me is not very clear. Basically I want to create vg01 with the c4t0d0 & c4t1d0. After that I want mirror the vg01 with the c5t0d0 and c5t1d0.
Under vg01 , I want to create logical volume from lvol1 to lvol8.

Note : Each of the disk size is 72GB.End of the day, I just want to see total disk size is 144GB and another 144GB is just mirror.

Please guide me how to do this .
Torsten.
Acclaimed Contributor

Re: MSA30 Mirror

Follow the steps!

Mirroring works on LVOL level - not on disk level!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!