Creating metadevices

Thread Tools Search this Thread
Operating Systems Solaris Creating metadevices
# 1  
Old 03-01-2018
Creating metadevices


I am new to SVM, but I would like to configure it in one of my servers. The setup is as follows: I have one server running solaris 10 , and is connected to a NetApp via iSCSI protocol. This is how I intend to do it:

Ask the NetApp admin, to provide me with 3 LUNs of 100G each, them use the format comand.
This is where I am stuck.
After creating disk devices such us c0t1d0s6 , c0t2d0s6 and c0t3d0s6, I have to create state database using metadb followed by cereating a metadevice using metainit d0 comand. Is this the right procedure?
# 2  
Old 03-01-2018

The normal way of initialising a device would be;

#> metainit d0 1 1 cntndnsn

This will use the whole slice of the disk, to create a mirror;
Create the mirrored device.
metainit  d16 1 1  c0t0d0s6
metainit  d26 1 1  c1t0d0s6
metainit  d6 –m d16 d26

It is also worth remembering that the state database must have a number of copies, also that if required you can slice the "disk slices" using soft partitioning like;

#> metainit d100 –p d6 10g

Then you have to create the file system on it like;

mkfs –F vxfs /dev/md/rdsk/d100



Last edited by gull04; 03-01-2018 at 06:41 AM.. Reason: More information
# 3  
Old 03-01-2018

Thanks for the reply, but I believe that before using metainit I have to use the format , them create state database...
# 4  
Old 03-01-2018
The meta database usually sits on a very small disk slice (circa 10MB) so you would need to create that slice, yes.
# 5  
Old 03-02-2018
Thanks for the reply hicksd8 , so for the state database replicas, I have to choose a slice not being used in one of the internal disks, them proceed with the metainit command on the 3 different LUNs/disks, such as :
c2t4d0 c2t5d0 and c2t6d0
# 6  
Old 03-02-2018
Usually when planning SVM, the sysadmin creates a tiny (separate) slice on each disk for the meta database. You might need to reduce the size of another slice to make way for it but the space needed is tiny (just a cylinder or two).
# 7  
Old 03-02-2018

Hicksd8 is right in suggesting that normal practice would be to create a single small slice for the metadb, good practice is to have more than one copy of the metadb in each of the slices.

The other point I would make is that when you are using format to initialise your SAN disk, it is common practice if you are using the free hog option to change the selection to slice 0 which would make your disk "c0t1d0s0". But it may be that your standard is to use slice 6.


Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SCO

Creating a VM

Also, in my tinkering around I was able to get SCO installed on a VM, using VM Workstation version 12.5 in a Windows 7 Pro-64 computer. I chose the VM Workstation 8.x compatibility model for my VM, an IDE hard drive at 0:0 and an IDE CD Rom at 1:0 using the physical drive of the computer. Using the... (3 Replies)
Discussion started by: jgt
3 Replies

2. Homework & Coursework Questions

Creating a .profile, displaying system variables, and creating an alias

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Here is what I am supposed to do, word for word from my assignment page: 1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies

3. Solaris

SVM - Metadevices are offline after changing hostname solaris x86

Hi , We are facing an issue on one of our solaris x86 server, After changing the hostname and a orderly reboot , all metadevices shows offline. please let us know the steps to restore back all metadevices to working state with this new hostname (3 Replies)
Discussion started by:
3 Replies

4. Solaris

Metadevices deleted

Hi Guys, We have an issue, all metadb's on system was deleted and the system was rebooted. the system is currented mounted in single-user mode . its a x86 server. the volumes under SVM is as follows. / /var and /usr please suggest Please use code tags <- click the... (1 Reply)
Discussion started by:
1 Replies

5. Solaris

metadevices: how to test metadb (how to corrupt replicas/understanding replicas)

Hi all, I recently started exploring Solaris 10. I am testing metadevices now. I have been reading about the state databases here: 6.State Database (Overview) (Solaris Volume Manager Administration Guide) - Sun Microsystems So I created 3 metadbs on 2 slices (6 in total; c1t1d0s3... (3 Replies)
Discussion started by: deadeyes
3 Replies

6. Solaris

Problem with live upgrade creation: Telling me metadevices do not exist

Hi I am having a problem creating my live upgrade environment. Here is the error I get: root@server:/# lucreate -c SOL10_18May -n SOL10_19May -z /lu_excludelist -m /:dev/md/dsk/d0:ufs -m /var:/dev/md/dsk/d4:ufs -m /export/home:/dev/md/dsk/d6:ufs -m -:/dev/md/dsk/d3:swap -C... (0 Replies)
Discussion started by: notreallyhere
0 Replies

7. Solaris

Metadevices in mirroring ?

Hi Guys. I have the follow disk mappig.... My doubt is that the filesystem root is in mirroring. I can see this in the configuration but , I dont know exactly if this in mirroring mean disk in RAID. In short: Watching the configuration...Can I said if the filesystem / is in Raid? ... (3 Replies)
Discussion started by: aggadtech08
3 Replies

8. Shell Programming and Scripting

help needed with creating challenging bash script with creating directories

Hi, Can someone help me with creating a bash shell script. I need to create a script that gets a positive number n as an argument. The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies

9. Programming

creating so's

hi everyone i have a doubt about ".so" files. what is the need of ".so" files. why we use ".so" files. where we can use ".so" files. how can i create ".so" files. can u tell me a good example please thank you (6 Replies)
Discussion started by: ramesh.jella
6 Replies
Login or Register to Ask a Question

Featured Tech Videos