- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- move vg00 to another disk (from c1t0d0 to c2t2d0)
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
11-08-2005 06:46 PM
11-08-2005 06:46 PM
my disk on c1t0d0 becomes any times critical errors an i would move the Vol´s form this disk to another.
FROM:
PV Name /dev/dsk/c1t0d0
PV Status available
Total PE 1085
Free PE 0
Autoswitch On
TO:
PV Name /dev/dsk/c2t2d0
PV Status available
Total PE 4374
Free PE 1245
Autoswitch On
Some Vol´s are distributed on all 3 disks on my system.
How can i move the vol´s from c1t0d0 to c2t2d0 ?
what are the commands to to this (command series)
Thanks, Eric
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 06:53 PM
11-08-2005 06:53 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
As long it is not /stand and / you can do it with mirror/UX
lvextend -m 1 lvol /dev/dsk/c2t2d0
lvreduce -m 0 lvol /dev/dsk/c1t0d0
If it contains boot partitions then you need to work with an Ignite/UX tape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 06:53 PM
11-08-2005 06:53 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
Do you want to move all lvols?? Remember that lvols-/stand, swap and / need to contigeous. For other lvols, you can just use pvmode and move extensts to new disk.
If you are looking at moveing all the lvols, and you have OnlineJFS, you will have to create a mirror copy on the desired disk and then make it primary and remove old if you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 07:24 PM
11-08-2005 07:24 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
vgcfgrestore -n vg00 -o /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
man vgcfgrestore
Regards,
Awadhesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 07:37 PM
11-08-2005 07:37 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
It's better you use Ignite/UX features for this. Just backup the vg00 into a bootable tape > shutdown the system > boot from the tape > select the particular disk that you want to be work as vg00 > restore and that's it.
Ignite/UX is a free software, you can get it from this url below :
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB
Hope this information can help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 09:04 PM
11-08-2005 09:04 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
If you have Mirror-Ux installed it can be done easily. It requires following two conditions to be met.
1) If the new disk is part of vg00 allready it should be bootable ( pvcreate -B must have been used while creating PV)
2)Your disk shall not be allocated some extents initially which would be allocated to boot, swap and root LVOLs in continuation from the beginning.
Allthough the same also can be moved to other areas of the disk.
Post these outputs for finding out the feasibility.
#pvdisplay -v /dev/rdsk/cxtydz (For all three disks)
#vgdisplay -v /dev/vg00
#swlist |grep -i mirr
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 11:04 PM
11-08-2005 11:04 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
pvdisplay -v /dev/rdsk/c1t0d0
Reply:
pvdisplay: Physical volume "/dev/rdsk/c1t0d0" is not a block special file.
Usage: pvdisplay
[-v]
[-b BlockList]
PhysicalVolumePath...
Whats wrong ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 11:07 PM
11-08-2005 11:07 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2005 11:50 PM
11-08-2005 11:50 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
Please use dsk instead of rdsk i.e.
#pvdisplay -v /dev/dsk/cxtydz
Where /dev/dsk/cxtydz is the disk device file.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 12:27 AM
11-09-2005 12:27 AM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 12:28 AM
11-09-2005 12:28 AM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 06:11 PM
11-09-2005 06:11 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
/dev/vg00/lvol3
/dev/vg00/lvol1 /stand
/dev/vg00/lvol7 /var
/dev/vg00/lvol6 /usr (on 2 HD´s)
/dev/vg00/lvol5 /tmp
/dev/vg00/lvol12 /tempspc (on all 3 HD´s)
/dev/vg00/lvol4 /opt
/dev/vg00/lvol8 /home
/dev/vg00/lvol9 /baan2 (on all 3 HD´s)
/dev/vg00/lvol10 /app
How can i move the vol´s form c1t0d0 to c2t2d0 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 06:36 PM
11-09-2005 06:36 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 3 ----
/dev/rdsk/c1t0d0 (Bootable)
/dev/rdsk/c2t0d0 (Non-bootable)
/dev/rdsk/c2t2d0 (Non-bootable)
when the vgcfgrestore move c1t0d0 to c2t2d0, how can i make the c2t2d0 BOOTABLE ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 07:10 PM
11-09-2005 07:10 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
swlist | grep -i mirr
B2491BA B.11.11 MirrorDisk/UX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 08:51 PM
11-09-2005 08:51 PM
SolutionYou can't move all the lvol's because they other 2 disks aren't bootble disk.
so first you have to make one disk also bootable.
This means recreate the disk with pvremove /dev/rdsk/c2t2d0 and then pvcreate -B /dev/rdsk/c2t2d0
all of your data on that disk is lost if you want this to be preserved.
First
mirror the other lvol lvol13 and lvol14 to /dev/dsk/c2t0d0
with lvextend m 1 /dev/vg00/lvol13 /dev/dsk/c2t0d0 and lvextend m 1 /dev/vg00/lvol14 /dev/dsk/c2t0d0
then
lvreduce -m 1 /dev/vg00/lvol9 /dev/dsk/c2t2d0
vgreduce vg00 /dev/dsk/c2t2d0
pvremove /dev/rdsk/c2t2d0
pvcreate -f -B /dev/rdsk/c2t2d0
vgextend /dev/vg00 /dev/dsk/c2t2d0
mkboot /dev/rdsk/c2t2d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c2t2d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t2d0
for i in 1 2 3 4 5 6 7 8 9 10 12
do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/c2t2d0
done
make sure you have a good backup of your files.
to make sure you also can boot from these disk.
do a setboot see the man pages for this.
after this try to reboot your server
from the alternive node.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 10:18 PM
11-09-2005 10:18 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 10:41 PM
11-09-2005 10:41 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
lvextend -m 1 /dev/vg00/lvol13 /dev/dsk/c2t0d0 and lvextend -m 1 /dev/vg00/lvol14 /dev/dsk/c2t0d0.
if this give the solution let us know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2005 11:12 PM
11-09-2005 11:12 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
Example:
# pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 02:00 AM
11-10-2005 02:00 AM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
vgextend vg00 /dev/dsk/c2t2d0
pvmove /dev/dsk/c1t0d0 /dev/dsk/c2t2d0
vgreduce /dev/vg00 /dev/dsk/c1t0d0
Greetz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2005 02:42 AM
11-10-2005 02:42 AM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
The allocation seems to be very unplanned and there is no protection as well. ( Mirroring etc).
If you could spare one extra disk for some time then this could be possible without interuptions online. Allthough as in the present scenario the free space is very less, you need to sacrify one LVOL atleast for some time and afterwards restore backup for the same. By removing one LVOL for time being you will get enough space across all disks to move LVOLs here and there so that not more than two or three LVOLs are spread across more than one disk.
Removing the LVOL11 will do this for you. But after recreating this you need to restore backup.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 08:35 PM
11-20-2005 08:35 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
strings /etc/lvmtab
pvcreate -B /dev/rdsk/c1t2d0
mkboot -l dev/dsk/c1t2d0
vgextend /dev/vg00 /dev/dsk/c1t2d0
and then i moved "pvmove ...." the vol´s on then new harddisk.
Thanks all, Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2005 08:36 PM
11-20-2005 08:36 PM
Re: move vg00 to another disk (from c1t0d0 to c2t2d0)
pvcreate -B /dev/rdsk/c1t2d0
mkboot -l dev/dsk/c1t2d0
vgextend /dev/vg00 /dev/dsk/c1t2d0