Replacing a Disk in a ODS/SVM Mirror


 
Thread Tools Search this Thread
Operating Systems Solaris Replacing a Disk in a ODS/SVM Mirror
# 1  
Old 06-17-2016
Replacing a Disk in a ODS/SVM Mirror

Hi All
BAsed on the below I would like to verifu two things
(1) The udnerlying mirroris for '/mnt' na dit onlcy contaisne 1 sub-mirror, with one sliceon is one disk and hence, data loss on the mount point (the mount point, '/mnt' is backed up)
(2) the Procedure for renewal

Code:
# df -kh /mnt
/dev/md/dsk/d6          33G   1.2G    32G     4%    /mnt


# metastat d6
d6: Mirror
    Submirror 1: d26
      State: Needs maintenance
    Pass: 1
    Read option: roundrobin (default)
    Write option: parallel (default)
    Size: 71127180 blocks (33 GB)

d26: Submirror of d6
    State: Needs maintenance
    Invoke: after replacing "Maintenance" components:
                metareplace d6 c1t8d0s0 <new device>
    Size: 71127180 blocks (33 GB)
    Stripe 0:
        Device     Start Block  Dbase        State Reloc Hot Spare
        c1t8d0s0          0     No      Last Erred   Yes


1) Obtain a copy of the vtoc of the disk either from the prtvtoc command or from an old explorer report
2) Take a copy of the SVM configuration " metastat -p"
3)
# metadetach -f d6 d26
# metaclear -f d6
**Power Down to Single Suer Mode
4) Un-mount the file system being used on the disk
umount /dev/rdsk/c1t8d0s0
*** if it is '/tmp' will it handg ??? ***
6) Replace the disk using cfgadm -c disconnect / cfgadm -c connect or luxadm replace - depending on the disk type
7) Put a new vtoc on the replacement disk
fdisk
8) Metainint the SVM SVM volume needed - See the metastat -p output
9) Newfs and mount the filesystem -
10) Add back any removed metadb's ... metadb -a -c X /dev/rdsk/..... X=number of copies needed

11) Boot the system to multi user if the system was shut down to single user



Moderator's Comments:
Mod Comment Please use code tags to improve readability (and as required by forum rules)!

And, please watch your orthography! While you may save a few seconds when typing carelessly, ALL readers will have to fight to understand above scrawl.

Last edited by RudiC; 06-17-2016 at 11:45 AM.. Reason: Tried to add code tags.
# 2  
Old 06-17-2016
Do not forget to firstumount -f /mnt!
And check if it holds a metadb copy:
Code:
metadb

and eventually delete an affected one with metadb -d ...
Normally it should not be necessary to shutdown. But there might be bugs in Solaris LVM that make it advisable.(?)
# 3  
Old 06-18-2016
What is special about /mnt that this operation cannot be done online ?
Are other slices of that same failed/falling disk being used for other purposes ?

You should post complete output of meta* commands, with mount output to see the entire disk layout.
That way help could be much more precise, and perhaps might not involve rebooting at all.

Hope that clears things out
Regards
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Replacing a failed disk using SVM

Hi Please can you help me on replacing or removing a faulty disk drive on a SUN NETRA X4250server with 4 internal drives only. the format comand show me the following: format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c0t0d0 <drive type unknown> ... (9 Replies)
Discussion started by: fretagi
9 Replies

2. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

3. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

4. AIX

replacing mirror disk

Hi Admins, I am new into aix.I was surfing aix pages and reading how to replace failed mirror disks.I read in one of the posts that we have to reboot the server to replace the disk. actually i was a HPUX admin and many times replaced root mirror disk online.Ofcourse it was hot swappable. ... (2 Replies)
Discussion started by: newaix
2 Replies

5. Solaris

Replacing a hard disk (SVM) with a soft partition?

The following is the summarry:- 1) Four disks in server ie (c1t0d0. c1t1d0, c1t2d0, c1t3d0). c1t2d0 is the disk to be replaced. c1t0d0 and c1t2d0 are mirrors. c1t1d0 and c1t3d0 are mirrors. Metadb to be deleted is in c1t2d0s7 a) Mirror d35 has 2 submirrors d38 and d39 d38 is a stripe... (0 Replies)
Discussion started by: aji1729
0 Replies

6. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

7. Solaris

Removing Disk from SVM

Hi All, I have to remove the disk from SVM. Kindly guide me or suggest me some link where in I can steps to remove SVM from Solaris 10 .Also I have one metaset which require deletion. Thanks in anticipation! (10 Replies)
Discussion started by: kumarmani
10 Replies

8. Solaris

Disk Replacement SVM

Hello, Can someone advise the proper procedure for replacing a mirrored disk in SVM. I have checked the docs and various websites but the procedure seems to vary. This is what I would do... 1. Remove the db replicas from the bad disk. 2. Detach it from the mirror 3. Clear it with... (4 Replies)
Discussion started by: Actuator
4 Replies

9. Solaris

Disk replacement with svm

I dont even know what raid level this is, but its raid 5 mirrored from the looks of it. I have a failed disk (t12) within this mirror. What is the best way to replace this disk? 2 things concern me, isn't there a command to prepare the disk for a hot swap? and what should i do with the... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies
Login or Register to Ask a Question