- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving logical volumes
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
04-29-2004 08:43 AM
04-29-2004 08:43 AM
moving logical volumes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 09:29 AM
04-29-2004 09:29 AM
Re: moving logical volumes
unmount the filesystems.
lvremove the logical volumes.
vgreduce the disks out of each volume group except the last one.
vgexport the volume groups
Shut the system down (optional for hot swap) and remove the old disks.
Install the new disks.
Boot your system.
insf -C if the disks are hot swap and you missed the boot.
pvcreate -f each new disk or lun
cd /dev
mkdir vg01
mknod vg01/group c 64 0x010000
adjust your numbers indluding the last 1 in the mknod to the actual volume group name.
vgcreate /dev/vg01 /dev/dsk/c#t#d#
# use a real disk name
lvcreate the logical volumes
newfs -F vxfs -o /dev/vg01/rlvol1
# adjust as needed
restore the backup.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 10:10 AM
04-29-2004 10:10 AM
Re: moving logical volumes
Hope you are aware you need Mirror-UX/DX to to be able to mirror the logical volumes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 02:08 PM
04-29-2004 02:08 PM
Re: moving logical volumes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2004 04:11 PM
04-29-2004 04:11 PM
Re: moving logical volumes
Best way is.
1 create logical volume in new disk
2. mount this new volume on temperory mount point.
3. tranfer data from old volume to new volume using cp or cpio
4.unmount both volume
5 mount new volume in old mount point and test data and application
6.remove old volume using lvremove
7. take disk out of old volume group using vgreduce.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2004 04:25 AM
04-30-2004 04:25 AM
Re: moving logical volumes
vxdump 0f - /usr | (cd /mnt; vxrestore xf -)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 07:14 AM
05-03-2004 07:14 AM
Re: moving logical volumes
# 4 internal 18GB drives
# /dev/dsk/c1t0d0
# vg00 - lvol1, lvol2, lvol3, ldata4 (mount point - ldata4), lvol5, lvol6, lvol7, lvol8
# /dev/dsk/c1t2d0
# vg01 - ldata1 (mount point ldata1), ldata5 (mount point ldata5)
# /dev/dsk/c2t2d0
# vg02 - ldata2 (mount point ldata2)
# /dev/dsk/c0t2d0
# vg03 ldata3 (mount point ldata3)
# 2 external 72 GB drives
# /dev/dsk/c4t0d0
# /dev/dsk/c4t2d0
# Goal 1
# move ldata{1-5} to /dev/dsk/c4t0d0
# create volume group vg04 on /dev/dsk/c4t0d0
pvcreate /dev/dsk/c4t0d0
mkdir /dev/vg04
mknod /dev/vg04/group c 64 0x040000
vgcreate /dev/vg04 /dev/dsk/c4t0d0
# create volume groups lvol01-lvol05 and mount points
lvcreate /dev/vg04/lvdata01
# mount point = /dev/dsk/c4t0d0/ldata1a
lvcreate /dev/vg04/lvdata02
# mount point = /dev/dsk/c4t0d0/ldata2a
lvcreate /dev/vg04/lvdata03
# mount point = /dev/dsk/c4t0d0/ldata3a
lvcreate /dev/vg04/lvdatat04
# mount point = /dev/dsk/c4t0d0/ldata4a
lvcreate /dev/vg04/lvdata05
# mount point = /dev/dsk/c4t0d0/ldata5a
# mount -a
cd /ldata1
find * -print | cpio -pvdumx /ldata1a
cd /ldata3
find * -print | cpio -pvdumx /ldata2a
cd /ldata3
find * -print | cpio -pvdumx /ldata3a
cd /ldata4
find * -print | cpio -pvdumx /ldata4a
cd /ldata5
find * -print | cpio -pvdumx /ldata5a
#edit /etc/fstab
/dev/vg04/lvdata01 /ldata1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/lvdata02 /ldata2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/ldvata03 /ldata3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/ldata04 /ldata4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
dev/vg04/lvdata05 /ldata5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
# reboot
#Cleanup
lvremove /vg00/data4
lvremove /vg01/ldata1
lvremove /vg01/ldata5
lvremove /vg02/ldata2
lvremove /vg03/ldata3
vgremove /vg01
vgremove /vg02
vgremove /vg03
Install 2 18 GB drive in external cabinet
Install 2 72 GB drives in internal cabinet
Configure mirror/ux to mirror all drives.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2004 07:51 AM
05-03-2004 07:51 AM
Re: moving logical volumes
-----
# Scenario:
# 4 internal 18GB drives
# /dev/dsk/c1t0d0
# vg00 - lvol1, lvol2, lvol3, ldata4 (mount point - ldata4), lvol5, lvol6, lvol7, lvol8
# /dev/dsk/c1t2d0
# vg01 - ldata1 (mount point ldata1), ldata5 (mount point ldata5)
# /dev/dsk/c2t2d0
# vg02 - ldata2 (mount point ldata2)
# /dev/dsk/c0t2d0
# vg03 ldata3 (mount point ldata3)
# 2 external 72 GB drives
# /dev/dsk/c4t0d0
# /dev/dsk/c4t2d0
# Goal 1
# move ldata{1-5} to /dev/dsk/c4t0d0
# create volume group vg04 on /dev/dsk/c4t0d0
pvcreate /dev/dsk/c4t0d0
mkdir /dev/vg04
mknod /dev/vg04/group c 64 0x040000
vgcreate /dev/vg04 /dev/dsk/c4t0d0
# create volume groups lvol01-lvol05 and mount points
lvcreate /dev/vg04/lvdata01
# mount point = /dev/dsk/c4t0d0/ldata1a
lvcreate /dev/vg04/lvdata02
# mount point = /dev/dsk/c4t0d0/ldata2a
lvcreate /dev/vg04/lvdata03
# mount point = /dev/dsk/c4t0d0/ldata3a
lvcreate /dev/vg04/lvdatat04
# mount point = /dev/dsk/c4t0d0/ldata4a
lvcreate /dev/vg04/lvdata05
# mount point = /dev/dsk/c4t0d0/ldata5a
# mount -a
cd /ldata1
find * -print | cpio -pvdumx /ldata1a
cd /ldata3
find * -print | cpio -pvdumx /ldata2a
cd /ldata3
find * -print | cpio -pvdumx /ldata3a
cd /ldata4
find * -print | cpio -pvdumx /ldata4a
cd /ldata5
find * -print | cpio -pvdumx /ldata5a
Are you shore you do not have subdirs ?
# find . | cpio -pcmudv /newdir
#edit /etc/fstab
/dev/vg04/lvdata01 /ldata1 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/lvdata02 /ldata2 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/ldvata03 /ldata3 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
/dev/vg04/ldata04 /ldata4 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
dev/vg04/lvdata05 /ldata5 vxfs rw,suid,nolargefiles,delaylog,datainlog 0 2
# reboot
Not needed but can not harm :-)
#Cleanup
lvremove /vg00/data4
lvremove /vg01/ldata1
lvremove /vg01/ldata5
lvremove /vg02/ldata2
lvremove /vg03/ldata3
vgremove /vg01
vgremove /vg02
vgremove /vg03
# vgchange -a n /vg01
# vgchange -a n /vg02
# cgchange -a n /vg03
# vgexport vg01
# vgexport vg02
# vgexport vg03
Install 2 18 GB drive in external cabinet
Install 2 72 GB drives in internal cabinet
Configure mirror/ux to mirror all drives.
Added some comments,
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2004 03:47 AM
05-05-2004 03:47 AM