How to fix Needs Maintenance state of a disk slice in SVM
Due Credit:
When a disk slice is in Needs Maintenance state, you need to try re-enabling the disk slice with the metareplace command.
#metastat d6
d6: Mirror
Submirror 0: d16
State: Needs maintenance
Submirror 1: d26
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 143000000 blocks (68 GB)
d16: Submirror of d6
State: Needs maintenance
Invoke: metareplace d6 c1t0d0s6 <new device>
Size: 143200000 blocks (68 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c1t0d0s6 0 No Maintenance Yes
1. First check which filesystem resides on the disk slice.
#df h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d6 67G 5.1G 61G 8% /myfs
2. Verify that no user is using files or data of the filesystem. If so, do not use metareplace command on the slice.
#fuser /myfs
/myfs:
3. Run metareplace. It will automatically re-enable the slice on the mirror volume and syncs it with other sub-mirror(s).
#metareplace -e d6 c1t0d0s6
4. Check the sync progress from time to time.
#metastat d6 |grep %
Resync in progress: 60 % done
#metastat d6
d6: Mirror
Submirror 0: d16
State: Needs maintenance
Submirror 1: d26
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 143000000 blocks (68 GB)
d16: Submirror of d6
State: Needs maintenance
Invoke: metareplace d6 c1t0d0s6 <new device>
Size: 143200000 blocks (68 GB)
Stripe 0:
c1t0d0s6 0 No Maintenance Yes
1. First check which filesystem resides on the disk slice.
#df h
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d6 67G 5.1G 61G 8% /myfs
2. Verify that no user is using files or data of the filesystem. If so, do not use metareplace command on the slice.
#fuser /myfs
/myfs:
3. Run metareplace. It will automatically re-enable the slice on the mirror volume and syncs it with other sub-mirror(s).
#metareplace -e d6 c1t0d0s6
4. Check the sync progress from time to time.
#metastat d6 |grep %
Resync in progress: 60 % done
Add Comments
|
|





Add Comments
Comments (1)
Read More








