- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- move data from a physical volume to another physic...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:07 AM
02-21-2003 11:07 AM
1. 2 disks in the same array, one is a new disk, the other has data in it, both the same size.
Output from ioscan -fnC disk:
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 2 8/4.9.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t9d0 /dev/rdsk/c0t9d0
disk 3 8/4.10.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c0t10d0 /dev/rdsk/c0t10d0
disk 4 8/4.11.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t11d0 /dev/rdsk/c0t11d0
disk 5 8/16/5.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 6 10/12.0.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c3t0d0 /dev/rdsk/c3t0d0
disk 7 10/12.1.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c3t1d0 /dev/rdsk/c3t1d0
disk 8 10/12.2.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 9 10/12.3.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c3t3d0 /dev/rdsk/c3t3d0
disk 10 10/12.4.0 sdisk CLAIMED DEVICE IBM DGHS09Y
/dev/dsk/c3t4d0 /dev/rdsk/c3t4d0
disk 11 10/12.5.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c3t5d0 /dev/rdsk/c3t5d0
disk 12 10/12.6.0 sdisk CLAIMED DEVICE SEAGATE ST318436LC
/dev/dsk/c3t6d0 /dev/rdsk/c3t6d0
disk 13 10/12.8.0 sdisk CLAIMED DEVICE SEAGATE ST318275LC
The disk with the data is /dev/dsk/c3t6d0
The new disk is located at address 10/12.8.0.
Both disks are in the same location of the array (the disk with the data concerned in slot B3/SCSI ID 6, the new disk in slot B4/SCSI ID 8). the one with data uses SCSI ID 6, the new one with SCSI 8.
What I want to do is map the new disk on the same volume group as the other one, which will be removed. This is the output from strings of /etc/lvmtab:
# strings /etc/lvmtab
/dev/vg00
Z->Q
/dev/dsk/c0t5d0
/dev/dsk/c3t3d0
/dev/vg01
Z-6?-
/dev/dsk/c0t8d0
/dev/dsk/c0t9d0
/dev/dsk/c3t1d0
/dev/dsk/c3t2d0
/dev/vg02
Z-6?.
/dev/dsk/c0t10d0
/dev/dsk/c3t0d0
/dev/vg03
/dev/dsk/c0t11d0
/dev/dsk/c3t4d0
/dev/vg04
/dev/dsk/c3t5d0
/dev/vg05
/dev/dsk/c3t6d0
Need to create the PV of the new HD, then move the filesystem mounted in /dev/dsk/c3t6d0 into the new disk, and then move the new disk from slot slot B4 to slot B3 where the other disk is currently located. The other disk will be removed.
How can I do this?
Can anyone give me advise... More information required?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:09 AM
02-21-2003 11:09 AM
Re: move data from a physical volume to another physical volume
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:14 AM
02-21-2003 11:14 AM
Re: move data from a physical volume to another physical volume
IF you have Mirror-UX, this is easy.
Just add the new disk to the VG
pvcreate /dev/rdsk/c3t8d0 (assuming that's the proper device)
vgextend vg05 /dev/dsk/c3t8d0
Then mirror the LV
lvextend -m 1 /dev/vg05/lv_name /dev/dsk/c3t8d0
When the mirroring is complete, you can reduce the old disk from the mirror
lvreduce -m 0 /dev/vg05/lv_name /dev/dsk/c3t6d0
Then remove the disk from the VG
vgreduce vg05 /dev/dsk/c3t6d0
You're done.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:15 AM
02-21-2003 11:15 AM
Solutionjust do a :
#insf -e (to create your disk filename)
#pvcreate /dev/rdsk/newdisk
#vgextend vg05 /dev/dsk/newdisk
#pvmove /dev/dsk/c3t6d0 /dev/dsk/newdisk
that can all be done online.
Now as far as moving your new disk from one slot to another, you'll have to :
#umount /mountpoint (of all the file systems in vg05
#vgchange -a n vg05
#vgexport -m /root/vg05.map vg05
{move your disk from one slot to another}
#ioscan -fnC disk (to find your disk)
#insf -e {if needed}
#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0xNN0000 {where NN is a different major number than any other Volume Group}
#vgimport -m /root/vg05.map vg05 /dev/dsk/diskfilename
and that should be it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:16 AM
02-21-2003 11:16 AM
Re: move data from a physical volume to another physical volume
#vgreduce vg05 /dev/dsk/c3t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:16 AM
02-21-2003 11:16 AM
Re: move data from a physical volume to another physical volume
If I recall correctly, you are replacing the failing disk c3t6d0 with the new disk. Did you run insf yet?. Because I am not seeing the device files for your new disk. After running insf, you should be seeing c3t8d0. Once you find it out, do the following.
#pvcreate /dev/rdsk/c3t8d0
(use -f if it complains)
#vgextend vg05 /dev/dsk/c3t8d0
#lvextend -m 1 /dev/vg05/lvol1 /dev/dsk/c3t8d0
#lvreduce -m 0 /dev/vg05/lvol1 /dev/dsk/c3t6d0
#vgchange -a n vg05
#vgexport -v -m /tmp/vg05.map vg05
Shutdown the system. Move the disk from B4 to B3 so that the new disk will become c3t6d0. Bring up the server and import the vg back.
#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0x0?000 (replace ? with the unique number)
#vgimport -v -m /tmp/vg05.map vg05 /dev/dsk/c3t6d0
#vgchange -a y
#mount -a
Note: The single command "pvmove" does a lvextend and lvreduce. But extending the mirror and reducing the mirror gives more comfort to the management :-)
This should take care of your business.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:18 AM
02-21-2003 11:18 AM
Re: move data from a physical volume to another physical volume
vgreduce vg05 /dev/dsk/c3t6d0 to get rid of this volume.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:22 AM
02-21-2003 11:22 AM
Re: move data from a physical volume to another physical volume
Of course, if you don't have mirroring, use pvmove.
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:26 AM
02-21-2003 11:26 AM
Re: move data from a physical volume to another physical volume
#insf -e (what is it here? "insf -e /dev/dks/c3t8d0")
#pvcreate /dev/rdsk/c3t8d0
#vgextend vg05 /dev/dsk/c3t8d0
#pvmove /dev/dsk/c3t6d0 /dev/dsk/c3t8d0
#vgreduce vg05 /dev/dsk/c3t6d0
#umount /mountpoint (of all the file systems in vg05
#vgchange -a n vg05
#vgexport -m /root/vg05.map vg05
{move your disk from one slot to another}
#ioscan -fnC disk (to find your disk) -- it should at that point be found at 10/12.6.0, where the other one was
#insf -e {would it?}
#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0xNN0000 {where NN is a different major number than any other Volume Group}
#vgimport -m /root/vg05.map vg05 /dev/dsk/c3t6d0
or would the last step be
#vgimport -m /root/vg05.map vg05 /dev/dsk/c3t8d0
I am confused on the last portion... I mean, the slot SCSI ID will not be changed, it will remain SCSI ID 6, I want this new drive to take over that SCSI ID as the one being removed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:33 AM
02-21-2003 11:33 AM
Re: move data from a physical volume to another physical volume
I wasn't sure exacvtly what you meant by changing slot. Unfortunately, I know there are a few more gurus here that can help you better with changing the SCSI ID of a disk. I thought you were actually physically switching the disk from slots, which is why I was having you export and import the VG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:36 AM
02-21-2003 11:36 AM
Re: move data from a physical volume to another physical volume
When you move the disk, it will get the id of 6. So, you will be importing with the disk /dev/dsk/c3t6d0 as I indicated before. Also I use this opportunity to correct one more I skipped. I left vgchange -a y without any argument. It would be vgchange -a y vg05.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:40 AM
02-21-2003 11:40 AM
Re: move data from a physical volume to another physical volume
#vgimport -m /root/vg05.map vg05 /dev/dsk/c3t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 11:50 AM
02-21-2003 11:50 AM
Re: move data from a physical volume to another physical volume
Doing the lvextend right now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 12:03 PM
02-21-2003 12:03 PM
Re: move data from a physical volume to another physical volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 01:42 PM
02-21-2003 01:42 PM
Re: move data from a physical volume to another physical volume
#insf -e (to create the disk filename as mentioned by Marco first)
#pvcreate /dev/rdsk/c3t8d0
(use -f if it complains; I did not have to use the option)
#vgextend vg05 /dev/dsk/c3t8d0
#lvextend -m 1 /dev/vg05/lvol1 /dev/dsk/c3t8d0 (this was the only lvol I had to reproduce)
#lvreduce -m 0 /dev/vg05/lvol1 /dev/dsk/c3t6d0
# vgreduce vg05 /dev/dsk/c3t6d0 (to get rid of this volume)
#umount /filesystem
#vgchange -a n vg05
#vgexport -v -m /tmp/vg05.map vg05
- I shutdown the system and then moved the disk from slot B4 in the array (set to SCSI 8) to B3 (set to SCSI 6) so that the new disk would become c3t6d0 as recommended by Sridhar.
- Bring up the server and import the vg back.
#mkdir /dev/vg05
#mknod /dev/vg05/group c 64 0x0?0000 (replace ? with the unique number)
#mv /etc/lvmtab /etc/lvmtab.old (lvmtab still reflected c3t8d0 for vg05)
#vgscan -a -v
#vgimport -v -m /tmp/vg05.map vg05 /dev/dsk/c3t6d0
#vgchange -a y /dev/vg05
#mount -a
That did the job. Thanks everyone!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 01:53 PM
02-21-2003 01:53 PM
Re: move data from a physical volume to another physical volume
I did not see anyone mentioning about vgscan. You didn't need to run it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 02:00 PM
02-21-2003 02:00 PM
Re: move data from a physical volume to another physical volume
#vgimport -v -m /tmp/vg05.map vg05 /dev/dsk/c3t6d0
So I did a
#strings /etc/lvmtab (it showed for vg05 c3t8d0, then I did.
#mv /etc/lvmtab /etc/lvmtab.old (lvmtab still reflected c3t8d0 for vg05)
#vgscan -a -v
After that I was able to the the vgimport...
#vgimport -v -m /tmp/vg05.map vg05 /dev/dsk/c3t6d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 02:06 PM
02-21-2003 02:06 PM
Re: move data from a physical volume to another physical volume
Unless you forgot that step, vg05 would not be listed under /etc/lvmtab. Even if you forgot, after reboot, what you would do is simply vgexport vg05 as it won't get activated due to c3t8d0 missing.
I do not run vgscan very often unless my lvmtab is literally corrupted or deleted.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2003 05:50 PM
02-21-2003 05:50 PM
Re: move data from a physical volume to another physical volume
Yep, cruised right by those last sentences. Got a little scroll-happy ======~))
Glad you're square now....... knew you were in good hands. {~)
Well Done,
Jeff