Read + Write + Report
Home | Start a blog | About Orble | FAQ | Blogs | Writers | Paid | My Orble | Login

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
16
Vote


   
subscribe to this blog 


   

   


Add A Comment

To create a fully formatted comment please click here.


CLICK HERE TO LOGIN | CLICK HERE TO REGISTER

Name or Orble Tag
Home Page (optional)
Comments
Bold Italic Underline Strikethrough Separator Left Center Right Separator Quote Insert Link Insert Email
Notify me of replies
Your Email Address
(optional)
(required for reply notification)
Submit
More Posts
1 Posts
2 Posts
4 Posts
266 Posts dating from October 2006
Email Subscription
Receive e-mail notifications of new posts on this blog:
0

geek's Blogs

6602 Vote(s)
70 Comment(s)
105 Post(s)
Moderated by geek
Copyright © 2012 On Topic Media PTY LTD. All Rights Reserved. Design by Vimu.com.
On Topic Media ZPages: Sydney |  Melbourne |  Brisbane |  London |  Birmingham |  Leeds     [ Advertise ] [ Contact Us ] [ Privacy Policy ]