mhatga Frequent Contributor.
Frequent Contributor.
1281 views

Copy to new harddisk

Hello,

I searched a while for this subject, but didn't find an example for this purpose.

GroupWise 2014 runs on a seperate virtual disk (vSphere 5.5). This disk is going out of space. Since it is a NCP-disk, I can't just resize it, so I need to copy all content to a new disk (this time NSS).

I know, best/simplest way to do it would be shutdown the GW-Server and rsync the whole content to the new disk, then mounting it to the old location and its done.

But I'm afraid, this isn't possible to be done over the weekend, because data usage is too high (about 1.6 TB). So what would be the best way for doing that?

I think about dbcopy, but I am confused about the "backup" and "migration" switches. I would need the two-pass functionality - copy 1st pass during the week with
dbcopy -m -f /mnt/sourcedisk /mnt/destdisk

make the 2nd pass (while server is shut down, there may be no more changes) on the weekend
dbcopy -m -s /mnt/sourcedisk /mnt/destdisk

and switch the disks. But this is for "migration only" - will this affect the live system? I don't want the live system to be touched in any way, just make a copy.

Otherwise I would try the same with rsync: shut down server, copy as much as possible and repeat it until all is copied at once.

Thanks for any advice.

Michael
Labels (1)
0 Likes
9 Replies
Knowledge Partner
Knowledge Partner

Re: Copy to new harddisk

In article <profgerber.71xbnb@no-mx.forums.microfocus.com>, Profgerber
wrote:
> Since it is a NCP-disk, I can't just resize it,
> so I need to copy all content to a new disk (this time NSS).


What exactly is an NCP disk? I am used to NCP being the wire level
protocol, not any disk method. I am assuming you are on SLES/OES, if
so that could be an EXT3 type disk, and those are expandable.
Is there room in the VMware DataStore? Then you should be able to
expand the Virtual Disk(needs the guest OS to be off). Then the next
steps depend on if your data is on root(a GParted boot iso does it
nicely) or its own mount point (with GW down, the SLES partitioner will
do the trick).

As for DBcopy migration option, it is exactly for such a situation as
it is made for making a copy of the GW system while it is running. The
first time is the big one, then you can run it again as updates until
you are ready for the final update when the GW system is down.

If creating a new NSS volume for GW, make sure Salvage is turned OFF
when you create it. Turning off Salvage later is just not as clean.

Andy of
http://KonecnyConsulting.ca in Toronto
Knowledge Partner
http://forums.novell.com/member.php/75037-konecnya
If you find a post helpful and are logged in the Web interface, please
show your appreciation by clicking on the star below. Thanks!

___
Andy of Konecny Consulting in Toronto
Knowledge Partner Profile
If you find a post helpful, click the Like button below. Thanks!
0 Likes
mhatga Frequent Contributor.
Frequent Contributor.

Re: Copy to new harddisk

konecnya;2404157 wrote:
In article <profgerber.71xbnb@no-mx.forums.microfocus.com>, Profgerber
wrote:
> Since it is a NCP-disk, I can't just resize it,
> so I need to copy all content to a new disk (this time NSS).


What exactly is an NCP disk? I am used to NCP being the wire level
protocol, not any disk method. I am assuming you are on SLES/OES, if
so that could be an EXT3 type disk, and those are expandable.
Is there room in the VMware DataStore? Then you should be able to
expand the Virtual Disk(needs the guest OS to be off). Then the next
steps depend on if your data is on root(a GParted boot iso does it
nicely) or its own mount point (with GW down, the SLES partitioner will
do the trick).


Your are right, NCP is "Netware Core Protocol". But there is also a kind of volumes (well, not disks, to be correct) they call "NCP":
https://www.novell.com/documentation/oes2/file_ncp_lx/data/btzqeya.html

However, its ext3 and there is space in datastore. I wasn't aware this would work and I will check that. Thanks for the hint.


As for DBcopy migration option, it is exactly for such a situation as
it is made for making a copy of the GW system while it is running. The
first time is the big one, then you can run it again as updates until
you are ready for the final update when the GW system is down.

If creating a new NSS volume for GW, make sure Salvage is turned OFF
when you create it. Turning off Salvage later is just not as clean.


Thanks!

Michael
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Copy to new harddisk

Hi Michael,

If this is simply Linux to Linux then rsync would be faster. Check out the -a switch for rsync. This allows you to do an initial "live" data copy and then an incremental copy later on.

Hope that this helps.

Cheers,
Laura Buckley

Views/comments expressed here are entirely my own.
If you find this post helpful, please show your appreciation and click on "Like" below...
0 Likes
mhatga Frequent Contributor.
Frequent Contributor.

Re: Copy to new harddisk

laurabuckley;2404247 wrote:
Hi Michael,

If this is simply Linux to Linux then rsync would be faster. Check out the -a switch for rsync. This allows you to do an initial "live" data copy and then an incremental copy later on.

Hope that this helps.

Cheers,


Yes, I use always -a. But this has still the problem of copying open database files, which may end up corrupted - and maybe corrupt the original data, too, when used with the live system..., isn't it?
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Copy to new harddisk

Hi,

Danita Zanre has an excellent guide on moving/upgrading GroupWise. In it Danita uses rsync for Linux to Linux moves - I personally haven't used it, but take the GroupWise godess' word for it.

Cheers,
Laura Buckley

Views/comments expressed here are entirely my own.
If you find this post helpful, please show your appreciation and click on "Like" below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Copy to new harddisk

laurabuckley wrote:

> In
> it Danita uses rsync for Linux to Linux moves - I personally haven't used it,
> but take the GroupWise godess' word for it.


As long as the POA is down for the final copy, I've never had any problems with
rsync.

--
Danita
Novell Knowledge Partner
Are you a GroupWise Power Administrator? Join our site.
http://www.caledonia.net/register

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
mhatga Frequent Contributor.
Frequent Contributor.

Re: Copy to new harddisk

Wow, the goddess herself! Thanks for joining!

I decided to to dbcopy - and I was very surprised the copying of 1.6 TB was finished (1st-pass) in about 5 hours.

However, there is something concerning at the end, but see for yourself:


**********************************************************************

GroupWise Migration Completed

Number of Error: 22 - Search "Error:" in the logfile for details

Migration Completion Date: 8-21-2015 23:48

Total copied data: 1532879306752 bytes

Number of jobs dispatched 717

Number of jobs processed 717
**********************************************************************
Segmentation fault


The "Errors" are just belonging to the mta-log files, so that doesn't seem to matter. But the "Segmentation fault" is very strange. I would say a hardware failure is out of question, it's a vSphere Cluster and all sensors show good condition. So maybe some fault of dbcopy when ending itself... However, I can't find anything in the logs about it.
I'm not sure how to do 2nd pass because of that. Should I use dbcopy nonetheless or rsync for the last run? What would you recommend? Or maybe start all over with rsync while GW is shut down, since 5 hours are really no problem...
0 Likes
mhatga Frequent Contributor.
Frequent Contributor.

Re: Copy to new harddisk

So, it's done.

Since the error of dbcopy, I decided to use rsync for the "2nd run" (instead of dbcopy). And it worked perfectly. Just about 30 minutes.
1. rcgrpwise stop
2. rsync -Pavu --delete /olddisk /newdisk
3. (unmount olddisk, mount newdisk to old mountpoint)

Thanks again for your support. Although it was quite simple, I needed your input to feel safe.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Copy to new harddisk

Hi,

So glad that it all worked out for you. Thank you for reporting back, that way the whole community can learn 🙂

Cheers,
Laura Buckley

Views/comments expressed here are entirely my own.
If you find this post helpful, please show your appreciation and click on "Like" below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.