I am new to Solaris and having problem with SVM to create mirroring on M4000 server with Solaris 10.
When I enter below command to create meta db getting the following :
# metadb -a -c 3 -f c0t0d0s6 c0t1d0s6
metadb: db: c0t0d0s6: overlaps with c0t0d0s1 which is a swap device
I installed the OS on disk1 (c0t0d0) and leave disk2 (c0t1d0) untouched. Below is the partition table of the both disk from "format" command line:
|0||root||wm||466 - 1249||6.74GB||(784/0/0)||14140224|
|1||swap||wu||0 - 465||4.01GB||(466/0/0)||8404776|
|2||backup||wm||0 - 64985||558.89GB||(64986/0/0) 1172087496|
|7||home||wm||1250 - 64985||548.14GB||(63736/0/0) 1149542496|
Now the metadb -i command is showing the following result:
# metadb -i
metadb: db: there are no existing databases
Please help. Your help will be highly appreciated.
Do I need to create a new partition of 10M size? I think there is no unused space in my system coz I used default partition layout at the time of installation.
Can I create meta DB inside /home/export (c0t0d0s7) partition?
This error message is correct.
You can integrate a meta DB in a partition, but this should be done before you create the file system.
In your case, you have two choices but in all cases you should backup and restore data. The first solution is to reduce a partition size and restore the data in this one and then to create a new slice that will content the meta DB. The second one is to push the metadb in an existing partition, do a newfs and then restore the data.
The problem you face is related with the slice 6 on your spare disk c0t1d0. This slice does not have assigned cylinders. To successfully create metadb on that slice, repartition the disk so slice 6 or slice 7 has 20M (one metadb is 4M in size if I recall correctly).
You can create metadb on your current slice 7 but you will not use the space efficiently as it has 548GB.
Best practice for SVM is to create 2 copies of metadb on 2 different disks. I suggest 2 copies on c0t0d0s6 and 2 copies on c0t1d0s6.