Solaris 10 Volume Manager - adding slice to metadb


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 Volume Manager - adding slice to metadb
# 1  
Old 08-30-2016
Solaris 10 Volume Manager - adding slice to metadb

Hi all,

I added a new disk slice to the current metadb.
Below is what I see

Code:
bash-3.2# metadb -i
        flags           first blk       block count
     a m  p  luo        16              8192            /dev/dsk/c0t0d0s7
     a    p  luo        8208            8192            /dev/dsk/c0t0d0s7
     a    p  luo        16400           8192            /dev/dsk/c0t0d0s7
     a    p  luo        16              8192            /dev/dsk/c0t1d0s7
     a    p  luo        8208            8192            /dev/dsk/c0t1d0s7
     a    p  luo        16400           8192            /dev/dsk/c0t1d0s7
     a        u         16              8192            /dev/dsk/c0t2d0s7
     a        u         8208            8192            /dev/dsk/c0t2d0s7
     a        u         16400           8192            /dev/dsk/c0t2d0s7

I am missing the following flags.

p - replica's location was patched in kernel
l - locator for this replica was read successfully
o - replica active prior to last mddb configuration change

q1) Can anyone elaborate the meaning of 'p' and 'l' especially ?

q2) How do make the flags appear ?

Regards,
Noob
# 2  
Old 08-30-2016
These flags get added during next boot. As long as you see "u" flag for the new disk and no "UPPERCASE" flags (ie. WMDFSRB) present you are good with SVM.

Just ensure the
Code:
metadevadm -u <cXtXdX>

command executed after any disk change with the replaced device name. This command update the device relocation information. You can check this by running
Code:
metastat

and look for the last few lines of output
# 3  
Old 08-30-2016
Quote:
Originally Posted by rinjohn
These flags get added during next boot. As long as you see "u" flag for the new disk and no "UPPERCASE" flags (ie. WMDFSRB) present you are good with SVM.

Just ensure the
Code:
metadevadm -u <cXtXdX>

command executed after any disk change with the replaced device name. This command update the device relocation information. You can check this by running
Code:
metastat

and look for the last few lines of output

Hi rinjohn,

Thanks for your reply. If I have done the following
Code:
1) remove the metadevice of the old disk/slice
2) remove the slice of old disk from metadb
3) replace old disk with new disk
4) add the slice of the new disk to metadb
5) recreate a metadevice

Do I still need to issue metadevadm ? -- thought when I add the new slice to metadb , the deviceID will be added automatically ?

Regards,
Noob
# 4  
Old 09-01-2016
You can verify the output of #metastat and if the new disk ID id missing, run #metadevadm command.

Sample
Code:
Device Relocation Information:
Device              Reloc       Device ID
c1t2d0              Yes         id1,sd@SSEAGATE_ST39204LCSUN9.0G3BV0N1S200002103AF29
c2t2d0              Yes         id1,sd@SSEAGATE_ST39204LCSUN9.0G3BV0P64Z00002105Q6J7
c1t1d0              Yes         id1,sd@SSEAGATE_ST39204LCSUN9.0G3BV0N1EM00002104NP2J
c2t1d0              Yes         id1,sd@SSEAGATE_ST39204LCSUN9.0G3BV0N93J000071040L3S
c0t0d0              Yes         id1,dad@s53554e575f4154415f5f53543339313430412525415933

If this is not updated then SVM fail to understand disk change and probably you may receive the below message in subsequent reboot.

Code:
[ID 209699 daemon.error] Invalid device relocation information detected in Solaris Volume Manager

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

solaris volume manager- stripe?

Hello Admins.. I am going through solaris volume manager guide for RAID-0 concatenation and stripes, I do not understand the concept of stripe from following example of concatenation. There is an eample for concatenation: # metainit d25 1 1 c0t1d0s2 d25: Concat/Stripe is setup the... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

2. Solaris

root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment. Let me know if you need any deatils on this. Thanks, Rama (1 Reply)
Discussion started by: ramareddi16
1 Replies

3. Solaris

Solaris Volume manager

Hi Friends, I have to migrate my raid-1 volume to raid -5 online. Can anyone please help me, If possible then send me the step by step commands for online migration. Thanks in advance. (2 Replies)
Discussion started by: rajaramrnb
2 Replies

4. Solaris

Solaris Volume Manager

Hello All, I have small doubt. It's related to SVM in solaris 10. I have created raid 0 (striping) using 3 slices of 500 MB size (default interlace value as 32KB) d2: Concat/Stripe ---- Interlace value is 32 KB Size: 2923830 blocks (1.4 GB) Stripe 0: (interlace: 64 blocks) Device Start... (1 Reply)
Discussion started by: vaibhav.kanchan
1 Replies

5. Solaris

Veritas volume manager in solaris.

Can you please let me know the certification code for veritas volume manager in solaris ? Thanks in advance. (2 Replies)
Discussion started by: gowthamakanthan
2 Replies

6. Solaris

How to create metadb when there is no free slice

Hi All, I have to do disk mirroring, for that I have to create a metadb as disk mirroring have to do with SVM. However I do not have any slice free for metadb. What are the options? Please suggest (4 Replies)
Discussion started by: kumarmani
4 Replies

7. Solaris

Need some E-Labs for solaris 10 & veritas volume manager

Hello friends, I need to test some of the solaris 10 concepts and veritas volume manager.i want to know ,where i get the testing labs or E-labs(online) for this practice.i ready to pay for this labs.pls kindly help me to get the details or website names...Thanks in Advance -Jay (6 Replies)
Discussion started by: rjay.com
6 Replies

8. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

9. Solaris

Disk Mirror in Solaris 9 via Solaris Volume Manager

Hello, I am trying to do mirror in solaris 9. I have total 0-7 disks 4 5 6 7 0 1 2 3 Drive 0 and Drive 4 = Boot Drives Need to Mirror following drives. Drive 1 and Drive 5 = Need to mirror Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5. Then i... (3 Replies)
Discussion started by: deal732
3 Replies

10. UNIX for Advanced & Expert Users

newfs hotspares: solaris volume manager

I'm running sun volume manager on solaris 9. I have two hotspares and are currently on standby. Both are not being utilized. Can I newfs both of them? Do I need to deleted the hostpares first, then newfs? hsp002: 2 hot spares Device Status Length Reloc ... (3 Replies)
Discussion started by: xnightcrawl
3 Replies
Login or Register to Ask a Question