UFS Trying to rebuild gmirror

Hello All,

I have a FreeBSD 9.3-STABLE amd64 system with a broken gmirror which I don't seem to be able to rebuild:

Code:
# gpart show
=>  34  1953525101  ada0  GPT  (931G)
  34  1024  1  freebsd-boot  (512k)
  1058  4194304  2  freebsd-ufs  (2.0G)
  4195362  8388608  3  freebsd-swap  (4.0G)
  12583970  16777216  4  freebsd-ufs  (8.0G)
  29361186  16777216  5  freebsd-ufs  (8.0G)
  46138402  1906311168  6  freebsd-ufs  (909G)
  1952449570  1075565  - free -  (525M)

=>  34  1953525101  ada1  GPT  (931G)
  34  1024  1  freebsd-boot  (512k)
  1058  4194304  2  freebsd-ufs  (2.0G)
  4195362  8388608  3  freebsd-swap  (4.0G)
  12583970  16777216  4  freebsd-ufs  (8.0G)
  29361186  16777216  5  freebsd-ufs  (8.0G)
  46138402  1906311168  6  freebsd-ufs  (909G)
  1952449570  1075565  - free -  (525M)

Code:
# gmirror status
  Name  Status  Components
mirror/gm0_boot  COMPLETE  ada0p1 (ACTIVE)
  ada1p1 (ACTIVE)
mirror/gm1_root  COMPLETE  ada0p2 (ACTIVE)
  ada1p2 (ACTIVE)
mirror/gm2_swap  COMPLETE  ada0p3 (ACTIVE)
  ada1p3 (ACTIVE)
 mirror/gm3_var  COMPLETE  ada0p4 (ACTIVE)
  ada1p4 (ACTIVE)
 mirror/gm4_tmp  COMPLETE  ada0p5 (ACTIVE)
  ada1p5 (ACTIVE)
 mirror/gm5_usr  DEGRADED  ada0p6 (ACTIVE)

Looks like I'm missing ada1p6.

Code:
# gmirror insert gm5_usr ada1p6
gmirror: Not all disks connected.

Code:
# gmirror forget ada1p6
gmirror: No such device: ada1p6.

How can I rebuild gm5_usr?
 
A rebuild of six mirrors of GPT partitions is going to be interesting when a whole disk actually fails. The head contention will be intense.

Apart from that, that is not how gmirror forget is used. The parameter is the name of a mirror, and it forgets all the disks that are not currently attached.
 
Thank you for your reply.

- Will gmirror forget gm5_usr cause data be lost? I do have backups, but it would be nice not have to restore...

- Do I have to forget and rebuild all the mirrors or only gm5_usr?
 
- Will gmirror forget gm5_usr cause data be lost? I do have backups, but it would be nice not have to restore...

Please see gmirror(8). It does not remove the mirror, just unconnected devices. Even though it should not cause any data loss, make backups first.

Do I have to forget and rebuild all the mirrors or only gm5_usr?

It makes no sense to run it on any mirror unless there is a problem.
 
Please see gmirror(8). It does not remove the mirror, just unconnected devices. Even though it should not cause any data loss, make backups first.



It makes no sense to run it on any mirror unless there is a problem.

Thank you again for your help. After doing gmirror destroy I was able to rebuild the mirror.
 
Back
Top