- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- moving disks
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
10-02-2001 03:36 AM
10-02-2001 03:36 AM
moving disks
going to move a volyme group to another computer. the volymegroup name is vg01 and got one pysical disk. on the vg is one logical volyme. (vg01 doesnt excist on the destination computer)
which way should i go? what steps should i take before i remove the disk? and what steps should be made to add the disk to the new computer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 03:46 AM
10-02-2001 03:46 AM
Re: moving disks
Easy. Simply unmount the lvol on the current system, devactivate the volume group and vgexport it.
Move the disk to the new server, connect it up, ensure you can see if with ioscan and it has a device file (may have to use the insf command on it) then create a new /dev/vgXX directory and its group file (doesnt have to be vg01, could be any name, mknod /dev/vgXX/group c 64 0x0?0000 where the ? is unique - ensure other VG's arent using the same value), then vgimport vgXX /dev/dsk/cXXXXX and your done! It will create the single logical volume which you can then mount.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 04:01 AM
10-02-2001 04:01 AM
Re: moving disks
On the server that's going to give up the vg:
# vgexport -p -v -s -m /tmp/vg01.mapfile /dev/vg01
Then copy the mapfile to the receiving server and do:
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
# vgimport -s -m /tmp/vg01.mapfile vg01
# vgchange -a y vg01
# vgcfgbackup vg01
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 04:13 AM
10-02-2001 04:13 AM
Re: moving disks
BTW, drop the '-s' option from the 'vgexport'/'vgimport'. Doing so will remove the vg name from /etc/lvmtab and remove the associated device files from the exporting system. The 's'harable option prevents this, and I don't think this is what you want.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 06:28 AM
10-02-2001 06:28 AM
Re: moving disks
SAM will display all the unknown volume groups by reading the VG signature at the front of each disk. Highlight the disk you want to import, then down below, fill in the volume group name (as in: vg01). If you used the default lvol1, lvol2, etc names then perform the task and the job is done.
If you do not have standard lvol names, you can create the mapfile with vgexport as mentioned before, or you can simply rename the lvol files (be sure you rename rlvol and lvol), or manually create the mapfile. It's format is incredibly simple:
1 lvol1
2 lvol2
3 lvol3
4 lvol4
...
which means you can manually create it.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2001 09:53 AM
10-02-2001 09:53 AM
Re: moving disks
Take a look at the thread below.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/48-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/48-toc.html&searchterms=Moving%20and%20Reconfiguring%20your%20disks&queryid=20011002-105402
Look for the section
Tasks That You Can Perform Only with HP-UX Commands --> Moving and Reconfiguring Your Disks.
Hope this helps.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 12:56 AM
10-04-2001 12:56 AM
Re: moving disks
# vgexport -p -v -m /tmp/vg01.mapfile /dev/vg01
Beginning the export process on Volume Group "/dev/vg01".
Volume group "/dev/vg01" is still active.
/dev/dsk/c0t1d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 01:10 AM
10-04-2001 01:10 AM
Re: moving disks
umount all the filesystems from this VG
vgchange -a n VG (deactivate the VG)
then vgexport -s -m /tmp/vg.map VG
then take the disk out and move it to the destination system. Copy over the map file.
mkdir /dev/VG
mknod /dev/VG/group c 64 0x0nn0000 where nn is unique
vgimport -s -m /tmp/vg.map VG
vgchange -a y VG
then update the /etc/fstab file to include the mounts from this VG and finally mountall.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 01:11 AM
10-04-2001 01:11 AM
Re: moving disks
Every thing is ok. The vgexport -p (preview) is used only to get the mapfile and the disks list. You may find the mapfile on the current directory
If you really want to export your vg, you'll have to desactivate it before :
vgchange -a n vgxx
Regards
Fr?d?ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2001 03:04 PM
10-04-2001 03:04 PM
Re: moving disks
- The first thing that you should know is the quantity of logical volumes you have in VG to care
the above-mentioned to be able to execute with success the vgimport
- I pass two it is to make the following steps
mkdir /dev/VGNAME
mknod /dev/VGNAME/group c 64 0x0nn0000
vgimport -m /tmp/vgfile -v /dev/vgname /dev/dsk/cxtxdx
The file vgfile can generate it manually and it should contain the following thing according to the quantity of lvols that you had in the VG.
#cat /tmp/vginfo
lvol1
lvol2
lvol3 etc...
vgchange -a and vg01
The file /etc/lvmtab is not necessary to generate it again because when the vgimport this file is executed it is upgraded.
After this to carry out a fsck for each lvol and to verify the consistency of the filesystem