1825766 Members
2196 Online
109687 Solutions
New Discussion

mirror disk

 
SOLVED
Go to solution
TSYO
Occasional Advisor

mirror disk

Hi,

I would like know what is the command to make a mirror disk. I don't need a synchronous vol, but a vol formed by a mirrorized disk.

Have I explained myself with clarity?

Thanks
11 REPLIES 11
Jakes Louw
Trusted Contributor

Re: mirror disk

Hi

"lvextend -m 1 lv_path [pv_path....|pvg_name....]"

Do man on lvextend.
Trying is the first step to failure - Homer Simpson
David_246
Trusted Contributor

Re: mirror disk

what Volume Mnagaement Software are you using?

Regs David
@yourservice
G. Vrijhoeven
Honored Contributor

Re: mirror disk

Hi,


If the disk is mirrored using lvm. ( MirrorUX) It is mirrored on logical volume level.

So lvdisplay /dev/vg??/lvol?? will give you info on the mirror status.

Mirror copies 1

HTH,

Gideon
Stefan Farrelly
Honored Contributor

Re: mirror disk

Im not sure what you mean but to create a mirror disk is easy;

1) locate a spare unused disk at least the same size as existing disk to be mirrored.
2) pvcreate -B it
3) mkboot it
4) add it to your VG
5) lvextend -m 1 each lvol to create the mirror.

You need the MIRROR/UX software installed to do this.
Im from Palmerston North, New Zealand, but somehow ended up in London...
G. Vrijhoeven
Honored Contributor

Re: mirror disk

Hi,

Sorry,

lvcreate -m 1 /dev/vg0?/lvol is the command to add a mirror copy. lvdisplay is the command to view.

Gideon
Fabio Ettore
Honored Contributor

Re: mirror disk

Hi,

by using MirroDisk/UX it is logical volume-based. I mean that you should extend mirror on another disk for each logical volume:

# lvextend -m 1 /dev/vgXX/lvolX /dev/dsk/cYtYdY

Best regards,
Ettore
WISH? IMPROVEMENT!
TSYO
Occasional Advisor

Re: mirror disk


I have two new disks. I want make a mirror of them. I don´t want "lvcreate -m1....".

Can i do this or I can only make a mirrorized lvol?

Thanks again
Jakes Louw
Trusted Contributor
Solution

Re: mirror disk

You can only make mirrored LVOLs with LVM.
Trying is the first step to failure - Homer Simpson
Jakes Louw
Trusted Contributor

Re: mirror disk

However: you can do a dd to create a copy, but I need to understand your motives for this:

dd if=/dev/dsk/sourcedisk of=/dev/dsk/destinationdisk bs=1024k

Trying is the first step to failure - Homer Simpson
TSYO
Occasional Advisor

Re: mirror disk

Ops...

I wanted it to be able to create volumenes without worrying to select the option to me of the mirror.

On this host several people works. It is necessary to control that they did not create volumenes without mirrror.

Thank you very much by your aid.
Mark Grant
Honored Contributor

Re: mirror disk

No, you can only mirror on a logical volume basis. This is not a limitation, it makes for things being much more flexible.
Never preceed any demonstration with anything more predictive than "watch this"