1837228 Members
2295 Online
110115 Solutions
New Discussion

moving disks

 

moving disks

Hello!

I have 2 server and two scsi JBOD storage, both server connect to both storage, first server use 5 disks and mirrored to other storage and second server use 6 disks and mirrored to other storage.
I would like divide the two storage, the first server connect to first storage and second server connect to second storage. I have to move disks between the storage because the disks mirrored between two storage, i have to put disks and the mirror disks in same storage.
How can i do this?
3 REPLIES 3
John Waller
Esteemed Contributor

Re: moving disks

If I understand you correctly you currently have something similar to a service guard cluster (where both servers can see all disks)which you are wanting to seperate.
The problem you have is whether you can control the SCSI ID's allocated to each slot in your JBOD. If you can keep thre SCSI ID's and paths the same then you could get away with moving the disks has planned, other wise the easiest method having performed a backup of all you data (in case a disk fails) is to lvreduce your lvols to remove the mirror from the storage you want to disconnect, vgreduce the vg to remove the disks from the volume group. Move your disks then vgextend and lvextend to recreate your mirrored data.
Adisuria Wangsadinata_1
Honored Contributor

Re: moving disks

Hi,

First, backup ... backup ... backup.

After that you need to find out which harddisk that has been used by the server1 & server2.

Once you already know, lvremove the mirror so server1 only with the data on storage1 & server2 only with the data on storage2. And vgreduce, to reduce the disks on the storage.

After this shutdown both system and arrange the disk, cause the server1 only need 10 disks on storage1 and server2 need 12 disks on storage2 (since you need to mirror the disks again). But make sure you remove the unused one.

Start the system again, cross-check whether you still be able to use the data on the storage as per normal. And last one is create the mirror again (vgextend and lvextend).

Hope this information can help you.

Cheers,
AW
now working, next not working ... that's unix
Bharat Katkar
Honored Contributor

Re: moving disks

Hi gabor,
I understood it as follows:

u hv 2 servers A,B and 2 jbods C,D.

Now C and D both contains 11 disks.
A access 5 on C and mirrored this on the 5 of D whereas B access 6 on C which are mirrored on remaining 6 of D.

1. Backup you entire data on both the storages. Make it as Backup one (5 disks) and backup two ( 6 disks )

2. Break the mirrors. "lvreduce -m 0" see man lvreduce.
Now you have 11 free disk on D.

3. Restore your backup two on D and make hardware connection accordingly. Before restoring backup make sure you create identical LUNS/VG's/LV's/FS's structure on D as required by your backup two. Then start restoring the backup.

4. No need to restore backup one since it is untouched.

5. Initialize your 6 disk on C and 5 disks on D. This will make 6 free in C and 5 free on D.

That's all.
Hope that helps.
Regards,






3.
You need to know a lot to actually know how little you know