Login or Register to Ask a Question and Join Our Community

Creating metadevices

Thread Tools Search this Thread
Operating Systems Solaris Creating metadevices
# 8  
Old 03-02-2018
Thanks again for the replies, here is my internal disk:
Searching for disks...done

       0. c0t0d0 <DEFAULT cyl 35687 alt 2 hd 255 sec 63>

and if select it in format I get:
partition> print
Current partition table (original):
Total disk cylinders available: 35687 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       1 -   523        4.01GB    (523/0/0)     8401995
  1       swap    wm       1 -   262        2.01GB    (262/0/0)     4209030
  2     backup    wm       0 - 35686      273.38GB    (35687/0/0) 573311655
  3 unassigned    wm     524 -  1555        7.91GB    (1032/0/0)   16579080
  4        var    wm    1556 -  2848        9.90GB    (1293/0/0)   20772045
  5 unassigned    wm    2849 -  4141        9.90GB    (1293/0/0)   20772045
  6        usr    wm    4142 -  5173        7.91GB    (1032/0/0)   16579080
  7 unassigned    wm    5174 - 28120      175.78GB    (22947/0/0) 368643555
  8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
  9 unassigned    wm       0                0         (0/0/0)             0

that means I can only use slice 2 for the database replicas...because acording to :
bash-3.2# df -h
Filesystem             size   used  avail capacity  Mounted on
/dev/dsk/c0t0d0s0      3.9G   438M   3.5G    11%    /
/devices                 0K     0K     0K     0%    /devices
ctfs                     0K     0K     0K     0%    /system/contract
proc                     0K     0K     0K     0%    /proc
mnttab                   0K     0K     0K     0%    /etc/mnttab
swap                    40G   988K    40G     1%    /etc/svc/volatile
objfs                    0K     0K     0K     0%    /system/object
sharefs                  0K     0K     0K     0%    /etc/dfs/sharetab
/dev/dsk/c0t0d0s6      7.8G   3.3G   4.4G    43%    /usr
                       7.8G   3.3G   4.4G    43%    /lib/libc.so.1
fd                       0K     0K     0K     0%    /dev/fd
/dev/dsk/c0t0d0s4      9.8G   5.7G   4.0G    59%    /var
swap                    45G   5.4G    40G    12%    /tmp
swap                    40G    32K    40G     1%    /var/run
/dev/dsk/c2t3d0s2      985G   915G    60G    94%    /data2
/dev/dsk/c0t0d0s3      7.8G   6.0G   1.7G    79%    /export
/dev/dsk/c0t0d0s5      9.8G    37M   9.6G     1%    /opt
/dev/dsk/c2t2d0s2      788G   673G   107G    87%    /data1
/dev/dsk/c0t0d0s7      173G   108G    64G    63%    /data

it looks like the only slice available...
# 9  
Old 03-02-2018
No, you cannot use slice 2. Nothing ever uses slice 2 (unless it's for a raw copy or something like that). On Solaris, slice 2 always represents the WHOLE disk and is used by the system for disk discovery/geometry, etc.

NEVER try to use slice 2 for anything in normal operation!! You will likely corrupt one of the valid slices.
This User Gave Thanks to hicksd8 For This Post:
# 10  
Old 03-02-2018
So I cannot use the internal disk for state database replicas....
# 11  
Old 03-02-2018
You can use ISCSI disk slice for metadb.
Or any disk device slice as far as metadb is concerned.

With metadb command (not metainit), you use defined small slices on disks, not the entire devices (cNtNd0 or cNtNd0s2).

After metadb creation, you may use SVM via meta commands for managing metadevices and metasets.

Just be sure that those luns will be present on machine as long as SVM is used.
Or, if old luns are removed, and new one added, add new and put extra database replica on it.

Remove replica from from old LUN, then remove the lun from system.

Having one metadb slice on one disk is a bad idea anyway.
You would want at least two, spanning on multiple disks (not same disk multiple slices).

Only place in which you can or must use entire devices (cNtNd0s2) is
Copying partition table from from same sized devices prtvtoc .. | fmthard ..
Using dd.
Creating zpools.
SCSI,multipath, zfs debug, information and manipulation using luxadm, mpathadm and zdb commands.
Others i cannot remember now.

Good thing to mention is that using the whole disk during zpool creation will enable you to import that zpool on x86 or SPARC architecture due to filesystem endian awareness.

This, of course, provides data moving from one platform to another, not binaries.

Hope that helps
# 12  
Old 03-02-2018
Why using an "old" and "clumsy" tool to manage storage? Solaris 10 has also ZFS and that is way easier to use...
# 13  
Old 03-05-2018

This is how I intend to do:

This are the newly attached LUNīs:
 3. c2t4d0 <DEFAULT cyl 13052 alt 2 hd 255 sec 63>
       4. c2t5d0 <DEFAULT cyl 13052 alt 2 hd 255 sec 63>
       5. c2t6d0 <DEFAULT cyl 13052 alt 2 hd 255 sec 63>
Specify disk (enter its number): 0

create state database replicas:

metadb -a c2t4d0s3 c2t5d0s3 c2t6d0s3

Now create metadevices using metainit and metaattach:

metainit d20 1 1 c2t4d0s6
metattach d20 c2t5d0s36
metattach d20 c2t6d0s6

Now check metadevice and which physical disks are being used:

metastat -p d20

Now create a UFS file system on this metadevice:

newfs /dev/md/rdsk/d20

Create a mount point:

mkdir /data2


chmod 755 /data2

mount the M.P.

mount /dev/md/dsk/d20 /data2

This is how I am planning to do, please is anything wrong or missing
# 14  
Old 03-05-2018
Originally Posted by fretagi

metainit d20 1 1 c2t4d0s6
metattach d20 c2t5d0s36
metattach d20 c2t6d0s6

You have to create metadevices out of c2t5d0s36 and c2t6d0s6 first. Then attach the new metadevice to d20.
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: karthick.sh
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: karthick.sh
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