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.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://hpuxtips.es/?q=content/svmsds-importingexporting-metasets-example [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.162.3.15 [:db_insert_placeholder_9] => 1503350948 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.