Operating System - HP-UX
1828205 Members
2174 Online
109975 Solutions
New Discussion

Re: syncronizing mirror disks

 
SOLVED
Go to solution
Carlos_172
Frequent Advisor

syncronizing mirror disks

¿Is it possible to work (i/o writes and reads) on volume group than is syncronizing (vgsync) because one mirror disk failed?

Thanks a lot, folks.
13 REPLIES 13
RAC_1
Honored Contributor

Re: syncronizing mirror disks

Explain in details. I could not understant what you are trying to do.
There is no substitute to HARDWORK
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: syncronizing mirror disks

is it possible to work on a system when vg00 is being synced ?

answer yesm it will be slower but you an work while a system is syncing its mirrors.

Regards,
Robert-Jan
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

I replace a disk in a volume group that failed. This volume group have 4 disk in mirror (2 to 2). I'm synchronizing the volume group. While this process is running, users can work (i/o reads and writes) on this volume group?
RAC_1
Honored Contributor

Re: syncronizing mirror disks

Yes. Without problems. Before you resync, you will have to do following.

vgcfgrestore -n /dev/vgxx /dev/dsk/cxtxdx
vgchange -a y vgxx
vgsync vgxx
There is no substitute to HARDWORK
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

OK. Thanks a lot. Another question is I run this process in foreground. Is any way to convert in background as I ran with "nohup" to I can close the telnet session?
RAC_1
Honored Contributor

Re: syncronizing mirror disks

As I understand, wether, you run it with nohup or not, LVM spawns another processes, which does syncing work.
There is no substitute to HARDWORK
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

Then , if I close the session (sh) sync process will not finish and his father will be process number 1, isn´t it ?
But isn´t there a way to send process back whit "bg pid" command?
RAC_1
Honored Contributor

Re: syncronizing mirror disks

Start it in background.

nohup vgsync vgxx &
There is no substitute to HARDWORK
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

I mean, if your process already running ...
RAC_1
Honored Contributor

Re: syncronizing mirror disks

If your processes is already running, you should be able to put in suspended mode first. (Assuming that you did not change stty settings. ^Z is default suspend. cntrl+Z)
Once you suspend it, (Chances are that it has already started LVM process in the background) check it with jobs command and then you would be able to do
bg "job_id"
There is no substitute to HARDWORK
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

I can´t whith this keys. Is there another way using his pid?
RAC_1
Honored Contributor

Re: syncronizing mirror disks

Do you want to force a process to go into background? May be that is possible, but not without some strong C coding. What exactly makes you worry about it?
There is no substitute to HARDWORK
Carlos_172
Frequent Advisor

Re: syncronizing mirror disks

Thans a lot