Sponsored Content
Full Discussion: mirror external scsi to san
Operating Systems AIX mirror external scsi to san Post 302185223 by bakunin on Monday 14th of April 2008 01:44:19 PM
Old 04-14-2008
Short answer: yes, you can mirror several SCSI disks to one SAN disk - but you should not do it anyways.

Long version:

1. FS considerations
As far as your sample vg layout goes you still use JFS(-1) filesystems. You should change that to the newer and by far better JFS2-filesystem. It will be necessary to recreate the filesystems and do a backup/restore of the data. As far as i know there is no way to convert JFS to JFS2 directly.

2. VG considerations
There are some limits in the LVM and one does good to stay away from any of them. The most restraining one is (in my experience) the PP size. As a PV can only hold 1019 PPs it limits directly the size of the disks you can effectively use. (Yes, there is the possibility of using a "factor" to lighten this restriction up to a certain point but at the same time it even tightens the limit on the maximum number of PVs in a VG, so i would not consider it as a long-term solution. Better stay away from that and save this option for a situation where it really *really* is your only possibility.)

As you have several SCSI PVs in the VG i suppose the PP size to be relatively small. When you add your SAN disk it probably exceeds the PP number limit and would practically enforce you to introduce a factor into the VG. The IMHO better (that is: more sustainable) solution would be recreate the VG anew and with better suited values for PP size.

Conclusion
========

If you still want to migrate to the new disk without recreating the VG and the FSs do the following, which can all be done without any downtime:

1. Add the new PV to the VG, maybe first changing the VG to a "Big VG" and introducing a factor as necessary.

2. use the "mirrorvg" facility to add mirrors to every LV, you can designate the new PV as destination for the mirror. You can do that using SMITty.

3. wait until the synchronization is finished. This may take some time and you might want to start in an evening so this can take place over night.

4. remove the mirror using the "unmirrorvg". You can again use SMITty and designate which mirror to remove by declaring the PVs from which the mirrors are to be removed.

5. used "reducevg" to get the old disks out of the VG finally.

6. use "rmdev" to remove the SCSI devices, disconnect them from the system.

Again, i would consider this as an unfortunate solution, but it *can* be done without any downtime (just the performance would be noticeably degraded during the synchronization). Better do the following:

1. create a new VG using the SAN share as PV. Carefully choose a sensible value for the PP size as it limits the maximum size of the PVs in the VG as well as the maximum capacity of the VG as a whole. (Introducing a factor means multiplying the maximum number of PPs per PV as well as dividing the maximum number of PVs in the VG by this factor, so the maximum diskspace held by the VG is final!)

2. create LVs/FSs using the old VG as a blueprint. Use JFS2 as filesystem. Use temporary mountpoints to mount the newly created FSs.

2a. Create a (several?) mountgroup(s) for the new filesystems. You can use "mount -t" to mount all the filesystems in such a group so this is a handy device. You do this by adding a "type = <mountgroup name>" line into the FS stanza in /etc/filesystems.

3. Identify static content of the filesystems. This can be copied to the new FSs in advance.

4. Get a downtime to migrate the rest of the data via copy/restore. Tip: you can do it in one pass using the following mechanism:

Code:
# cd /old/fs
# tar -cvf - * | (cd /new/fs ; tar -xf - )

5. umount the old FSs and new , change the temporary mountpoints of the new FSs in /etc/filesystem, mount the new filesystems.

6. let some time pass to make sure everything is ok. You can still mount the old FSs to temporary mountpoints if something is (supposed to be) missing.

7. after a "varoffvg oldvg" and "exportvg oldvg" delete the devices of the SCSI devices and unplug them.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Mirror 4meg SCSI to Larger

I have a Unix based system running my POS (Point of sale) system that uses two 4.1 gig hard drives. I use the ./diskcopy command to mirror master to Backup My problem is 4.1 gig hard drives are no longer available new so I need to move to a larger cap drive but for my command to work the... (3 Replies)
Discussion started by: dolphin41
3 Replies

2. Solaris

mounting an external scsi tape drive

hi- I just installed a quad gigaswift ethernet scsi card to my sunblade 150. I checked with the docs, and got all of the required drivers on the box. Now, I'm trying to mount an external scsi tape drive with no luck. I set the scsi address on the external drive to 0. Here's what I'm coming... (9 Replies)
Discussion started by: ECBROWN
9 Replies

3. UNIX for Dummies Questions & Answers

Connecting an external SCSI drive to a unix computer

I am interested in booting up my unix computer by connecting an external SCSI drive( intergraph) to it. The unix box is also an intergraph computer. Whenever I boot it, it gives me an error that says Drive not ready, Insert Boot Diskette in A. What am I doing wrong? Any input would be... (3 Replies)
Discussion started by: teruotor
3 Replies

4. UNIX for Dummies Questions & Answers

External SCSI hard drive

Someone gave me a small external SCSI hard drive for my SunOS 5.8 test system. How do I make Unix see the hard drive? (2 Replies)
Discussion started by: FredSmith
2 Replies

5. AIX

copy lv scsi to san

Hi All, Regarding my migration of (multiple PV) scsi to san (single PV). I was able to copy lv from scsi to san. The only problem is how can I remove the old lv/old fs to put up the new lv/ old fs. If I try to mount the new lv/old fs, it will have error "There is no plausible log device for... (2 Replies)
Discussion started by: itik
2 Replies

6. Solaris

Unix command to remove external SCSI harddrive

Hi All, I have an external scsi harddrive (HD) connected directly to the workstation. I understand when the external HD is connected and turned on, and type in "devfsadm" command. Unix will detect it but not mount the drive. So by typing in "format" command it will display the following: #... (6 Replies)
Discussion started by: tlee
6 Replies

7. Solaris

Removable External SCSI Harddrive

Hi guys, I have a solaris 9 operating system on a sun solaris machine and one external removable scsi drive connected to it. When i type the following command this is what is displayed: #format AVAILABLE DISK SELECTIONS: 0. c0t0d0 <DEFAULT cyl 17832 alt 2 hd 255 sec 63>... (6 Replies)
Discussion started by: tlee
6 Replies

8. Solaris

Connect an External SCSI Hard Drive to Ultra 80

Guys, I have googled and checked this forum in detail and couldn't find any satisfactory answers for my problem. I am trying to connect a external SCSI hard Drive(Sea Gate) to a Ultra 80. I connected it powered it up and at OK prompt did : boot -r system comes up and complains about not... (6 Replies)
Discussion started by: ajnabi
6 Replies

9. AIX

IBM SAN Storage DS4700 - Copy Mirror Flashcopy

Hello, Does anyone know how to copy SAN Storage logical disks from IBM TotalStorage Software. I have a SAN Logical Disk of 200GB mounted on my AIX LPAR_1 via fibre channel fcs0 I would like to make an exact copy of the SAN Logical Disk from IBM totalStorage and mount it on AIX LPAR_2 ... (4 Replies)
Discussion started by: filosophizer
4 Replies

10. Shell Programming and Scripting

Whats the best way to mirror a rdiff-backup to an external drive and persevere the rdiff history of

Whats the best way to mirror a rdiff-backup to an external drive and persevere the rdiff history of the local copy ? I was thinking rsync ~/rdiffdirectory /directory on external volume also if I did this... rdiff-backup ~/rdiffdirectory /directory on external volume ... (0 Replies)
Discussion started by: briandanielz
0 Replies
All times are GMT -4. The time now is 08:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy