<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pwiki.pic.es/index.php?action=history&amp;feed=atom&amp;title=HowTo%3A_Migrate_dCache_Pool</id>
	<title>HowTo: Migrate dCache Pool - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pwiki.pic.es/index.php?action=history&amp;feed=atom&amp;title=HowTo%3A_Migrate_dCache_Pool"/>
	<link rel="alternate" type="text/html" href="https://pwiki.pic.es/index.php?title=HowTo:_Migrate_dCache_Pool&amp;action=history"/>
	<updated>2026-04-20T13:07:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://pwiki.pic.es/index.php?title=HowTo:_Migrate_dCache_Pool&amp;diff=29&amp;oldid=prev</id>
		<title>Mcaubet: Created page with &quot;== Migrate the pool leaving the source with cached copies of the files==  In a dCache pool use &quot;help migration&quot; and &quot;help migration copy&quot; to know more about the migration modu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pwiki.pic.es/index.php?title=HowTo:_Migrate_dCache_Pool&amp;diff=29&amp;oldid=prev"/>
		<updated>2015-08-06T09:45:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Migrate the pool leaving the source with cached copies of the files==  In a dCache pool use &amp;quot;help migration&amp;quot; and &amp;quot;help migration copy&amp;quot; to know more about the migration modu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Migrate the pool leaving the source with cached copies of the files==&lt;br /&gt;
&lt;br /&gt;
In a dCache pool use &amp;quot;help migration&amp;quot; and &amp;quot;help migration copy&amp;quot; to know more about the migration module. The syntax might be different now, the following was tested with 1.9.5-23:&lt;br /&gt;
&lt;br /&gt;
'''migration copy -sticky -concurrency=6 -pins=move -smode=removable -tmode=same -target=pgroup pgroup-atlas-ddn'''&lt;br /&gt;
&lt;br /&gt;
Where pgroup-atlas-ddn should be a different pgroup (Pool Group) from the source pool's pgroup if not using a version higher than 1.9.10.&lt;br /&gt;
Concurrency should be adapted to the source server capacity and the number/capacity of the destination pgroup.&lt;br /&gt;
&lt;br /&gt;
== Migrate the pool leaving the source empty==&lt;br /&gt;
&lt;br /&gt;
* Ensure that source and destination dCache pools are UP and running dCache-server 1.9.1-7 or higher version.&lt;br /&gt;
* Set source pool to rdonly. This is: go to PoolManager and run &amp;quot;psu set pool $poolName rdonly&amp;quot;&lt;br /&gt;
* Optionally you can create a ZFS snapshot on source pool&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@dc023 # zfs list&lt;br /&gt;
NAME     USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;
dcpool  9.60T  6.85T  9.60T  /dcpool&lt;br /&gt;
root@dc023 # zfs snapshot dcpool@0904161212&lt;br /&gt;
root@dc023 # zfs list&lt;br /&gt;
NAME                USED  AVAIL  REFER  MOUNTPOINT&lt;br /&gt;
dcpool             9.60T  6.85T  9.60T  /dcpool&lt;br /&gt;
dcpool@0904161212      0      -  9.60T  -&lt;br /&gt;
root@dc023 # &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Login to pCells and go to source pool &lt;br /&gt;
** Ensure that there's no migration process running; &amp;quot;migration ls&amp;quot; should return nothing&lt;br /&gt;
** Start the migration process with &amp;quot;migration move [options] &amp;lt;target&amp;gt; ...&amp;quot;. By default no options are needed. You should see something like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[1] INITIALIZING migration move dc060_1 &lt;br /&gt;
 &amp;lt;&amp;lt; --- Thu Apr 16 11:21:24 GMT+01:00 2009 --- &amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
** Verify that the migration process is running with &amp;quot;migration ls&amp;quot; and &amp;quot;migration info&amp;quot;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[1] RUNNING      migration move dc060_1 &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;&amp;lt; --- Thu Apr 16 11:24:48 GMT+01:00 2009 --- &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Command    : migration move dc060_1 &lt;br /&gt;
State      : RUNNING&lt;br /&gt;
Queued     : 136456&lt;br /&gt;
Attempts   : 124&lt;br /&gt;
Targets    : dc060_1&lt;br /&gt;
Completed  : 123 files; 8695281287 bytes; 0%&lt;br /&gt;
Total      : 10546631499269 bytes&lt;br /&gt;
Concurrency: 1&lt;br /&gt;
Running tasks:&lt;br /&gt;
[123] 00030000000000000B681108: TASK.GettingLocations&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;&amp;lt; --- Thu Apr 16 11:24:50 GMT+01:00 2009 --- &amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Command    : migration move dc060_1 &lt;br /&gt;
State      : RUNNING&lt;br /&gt;
Queued     : 136453&lt;br /&gt;
Attempts   : 127&lt;br /&gt;
Targets    : dc060_1&lt;br /&gt;
Completed  : 126 files; 8843944729 bytes; 0%&lt;br /&gt;
Total      : 10546631499269 bytes&lt;br /&gt;
Concurrency: 1&lt;br /&gt;
Running tasks:&lt;br /&gt;
[126] 00030000000000000BE93148: TASK.Copying -&amp;gt; [&amp;gt;dc060_1@local]&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;&amp;lt; --- Thu Apr 16 11:25:00 GMT+01:00 2009 --- &amp;gt;&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To monitor the migration process in the pools you can use &amp;quot;zpool iostat 10&amp;quot; in both the source and destination pools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root@dc060 # zpool iostat 10&lt;br /&gt;
               capacity     operations    bandwidth&lt;br /&gt;
pool         used  avail   read  write   read  write&lt;br /&gt;
----------  -----  -----  -----  -----  -----  -----&lt;br /&gt;
dcpool      14.4G  40.8T      0      4      6   178K&lt;br /&gt;
dcpool      15.0G  40.8T      0    431      0  50.0M&lt;br /&gt;
dcpool      15.6G  40.8T      0    395      0  45.3M&lt;br /&gt;
dcpool      15.9G  40.8T      0    296      0  31.7M&lt;br /&gt;
dcpool      16.5G  40.8T      0    442      0  51.3M&lt;br /&gt;
dcpool      17.0G  40.8T      0    338      0  38.4M&lt;br /&gt;
&lt;br /&gt;
root@dc023 # zpool iostat 10&lt;br /&gt;
               capacity     operations    bandwidth&lt;br /&gt;
pool         used  avail   read  write   read  write&lt;br /&gt;
----------  -----  -----  -----  -----  -----  -----&lt;br /&gt;
dcpool      11.8T  8.63T     43     34  5.12M  2.20M&lt;br /&gt;
dcpool      11.8T  8.63T    300     49  36.8M   224K&lt;br /&gt;
dcpool      11.8T  8.63T    314     47  38.5M   215K&lt;br /&gt;
dcpool      11.8T  8.63T    354     48  43.4M   220K&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mcaubet</name></author>
	</entry>
</feed>