You are here

SVM/SDS Importing/exporting Metasets example

Si no tenemos una metadb , creamos una metadb:
root@v880 # metadb -f -c 3 -a /dev/rdsk/c1t4d0s7

Creamos el metaset llamado cluster con el hostname v880
root@v880 # metaset -s cluster -a -h v880
root@v880 # metaset

Set name = cluster, Set number = 1

Host Owner
v880

Ahora añadimos un disco al metaset para poder crear mds
root@v880 # metaset -s cluster -a c1t5d0
root@v880 # metaset

Set name = cluster, Set number = 1

Host Owner
v880 Yes

Drive Dbase

c1t5d0 Yes

Creamos un concat en la slice0(comprobar que existe)
root@v880 # metainit -s cluster d40 1 1 c1t5d0s0
cluster/d40: Concat/Stripe is setup

Creamos la pata del mirror y alguna softpartition.

root@v880 # metastat -s cluster
cluster/d40: Concat/Stripe
Size: 143339136 blocks (68 GB)
Stripe 0:
Device Start Block Dbase Reloc
c1t5d0s0 0 No Yes

Device Relocation Information:
Device Reloc Device ID
c1t5d0 Yes id1,ssd@n500000e0108e4da0

Hacemos un purge(export) del metaset, pero no podemos ser owners
root@v880 # metaset -s cluster -P
Must not be owner of the set when purging it

hacemos el release del metaset
root@v880 # metaset -s cluster -r
root@v880 # metaset

Set name = cluster, Set number = 1

Host Owner
v880

Drive Dbase
root@v880 #

Y ahora ya nos deja realizar el purfe
root@v880 # metaset -s cluster -P
Dec 4 02:09:08 v880 rpc.metamhd: Terminated
root@v880 # metaset -s cluster
metaset: v880: setname "cluster": no such set

Con el metaimport -r -v escaneamos los discos, para ver si alguno es un metaset:
root@v880 # metaimport -r -v
Import: metaimport -s c1t5d0
Last update: Sat Dec 4 01:21:42 2010
Device offset length replica flags
c1t5d0 16 8192 a u

importamos el metase con el nombre que queramos
root@v880 # metaimport -s cluster c1t5d0
Drives in regular diskset including disk c1t5d0:
c1t5d0
More info:
metaimport -r -v c1t5d0

root@v880 # metaset

Set name = cluster, Set number = 1

Host Owner
v880 Yes

Drive Dbase

c1t5d0 Yes
root@v880 #

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.

Fatal error: Class CToolsCssCache contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (DrupalCacheInterface::__construct) in /homepages/37/d228974590/htdocs/sites/all/modules/ctools/includes/css-cache.inc on line 52