1839089 Members
3199 Online
110136 Solutions
New Discussion

how to resync a harddisk

 
gary guo
Contributor

how to resync a harddisk

the server has 2 harddisk , mirror disk.
the /dev/dsk/c2t2d0 show unavailable today morning ,so i restart the server ,now the harddisk is available ,but lv status is available/stale ,i wanna resync the harddisk with another harddisk ,how can i do it
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: how to resync a harddisk

Hi,

I would investigate the reason why the disk disappeared. Look at your /var/adm/syslog/OLDsyslog.log and look for any disk errors.

If you find it ok, then doing a vgsync will synchronize the disks. First look for a "vgsync" process

ps -ef|grep vgsync

If you find anything running, then leave it running and it will take care of it. Otherwise run

vgsync vg00

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: how to resync a harddisk

Hi,

If the output is similar to this then you need to run the 'vgsync' command.

# lvdisplay -v /dev/vg01/lvol4

--- Logical volumes ---
LV Name /dev/vg01/lvol4
VG Name /dev/vg01
LV Permission read/write
LV Status available/stale

# vgsync /dev/vg01

Have a look at the man page for 'vgsync'

Regards
Michael
Anyone for a Mutiny ?
MANOJ SRIVASTAVA
Honored Contributor

Re: how to resync a harddisk

vgsync is the command to resync the hard disk in the volume group, but you need to insure that the hard disk is back to normal and not giving any errors , gernally a hard disk cahnge is defianately required in case you have a problem.



Manoj Srivastava
RAJESH GANGADHARAN
Regular Advisor

Re: how to resync a harddisk

Hi
If you want to mirror the data back to the disk which was not available previously do the following
You can use vgsync command to resync mirror disks. Make sure that the vgsyc is not running.
and the disk is available and OK, use diskinfo -v command to check the disk.
Let the choices you make today be the choices you can live with tomorrow.