- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to move data to new disk
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-25-2003 02:54 PM
11-25-2003 02:54 PM
how to move data to new disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 03:22 PM
11-25-2003 03:22 PM
Re: how to move data to new disk
You may want to check your LVM configuration first.
# strings /etc/lvmtab
--> Note which VG the disk belongs to
# pvdisplay
for eg: # pvdisplay /dev/dsk/c1t0d2
# vgdisplay -v vgXX
for eg: # vgdisplay vg01
--> Note that you can see what are the LVOLs under this VG
If it's not VG00 that the disk belongs to, I think you can use 'fbackup' command to backup all the mountpoints of LVOLs that this disk belongs to.
Hope the above helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 03:48 PM
11-25-2003 03:48 PM
Re: how to move data to new disk
I believe your current VG config will not support more then 4 GB disk (Max PE limitation)
so it's batter if you follow these steps.
1.pvcreate new disk (18GB)
2. Create a new Volume group using this disk
(before that create /dev/vgnn directory and group file in hat)
3. Create new logical volumes of desire size
4. create File Systems
5. mount these file system on some dummy directory.
6. go to single user mode and transfer data from OLD File system to new temp mount point using cpio .
7. edit /etc/fstab
8.remove the dummy directory
and unmount new FS from temperory mount point and run mount -a.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 05:28 PM
11-25-2003 05:28 PM
Re: how to move data to new disk
As for finding your volumegroup information, use:
- 'bdf' to see which lvols are mounted
- 'swapinfo' which lvols are used as swapspace
- 'vgdisplay -v' on all your volumegroups to see the size and parameters on your volumegroups, how many lvols are defined, their size and which physical volumes are used in the volumegroup.
Looking at /etc/fstab can also give the basic information for swapspaces and mounts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 07:36 PM
11-25-2003 07:36 PM
Re: how to move data to new disk
We need more information to help you, especially the list of volume groups and the corresponding disks. Give us a "strings /etc/lvmtab" output.
- If the disk you want to change already contains a 18Gb disk, then it's really easy : you just have to pvcreate the new disk, vgextend the volume and pvmove the lvols
- If the 2Gb disk is you system disk, then igniteUX would be the easiest tool ...
- In all other cases, create a new volume and use cpio, tar or any other tool to transfer data.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 07:47 PM
11-25-2003 07:47 PM
Re: how to move data to new disk
It is better if you could paste the output of #strings /etc/lvmtab.
Regards,
AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2003 10:52 PM
11-25-2003 10:52 PM
Re: how to move data to new disk
Allocate the new disk to the server as normal, create volume group and lvols accordingly, then use pvmove /dev/dsk/old_disk /dev/dsk/new_disk
A safer way to ensure no data is lost would be to use
dd if=/dev/vgNN/rlvolN of=/dev/vgNNTGT/rlvolN bs=32768
to transfer the data.
You really do need your previous vg, lvol details though to ensure the consistency of your data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 12:50 PM
11-26-2003 12:50 PM
Re: how to move data to new disk
These're the output of my K system:
#strings /etc/lvmtab
/dev/vg00
r9'8
/dev/dsk/c0t5d0
/dev/dsk/c0t4d0
/dev/vg01
r9'8
/dev/dsk/c0t0d0
/dev/vg02
r9':
/dev/dsk/c0t15d0
#
Would you give me the detail steps?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 06:41 PM
11-26-2003 06:41 PM
Re: how to move data to new disk
And what is the lvol configuration on the volume groups? Are they all containing filesystems, or also swapspace on the disk you want to replace?
Since a volume group is created with a limited number of usable Physical Extents you can't add the new disk to the volume group if there isn't already a 18Gb disk in it or if you created the volume group with the maxPE parameter high enough to use the entire 18 Gb disk.
The easiest way, no matter which disk you want to replace, is to add the new disk, install the new disk and then remove the old disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2003 07:33 PM
11-26-2003 07:33 PM
Re: how to move data to new disk
First you need to know whether the disk that you want to replace is boot disk (vg00) or non boot disk (vg01 or vg02). You can use the command below to check the size of the disk :
# diskinfo -v /dev/rdsk/cxtydz
If the boot disk :
- you need to create a bootable backup tape by using Ignite/UX features, make_tape_recovery command will help you to create the bootable backup tape for you.
- shutdown the system
- replace the boot disk with the new boot disk that have a bigger capacity (18GB)
- boot from the tape and restore into the new boot disk
If the boot disk used mirror/UX, you need to reduce the mirror first (lvreduce), shutdown the system, replace the mirror disk with the new boot disk, boot from the tape and restore to the new boot disk. This will help you to create a backup plan 8-).
If non boot disk :
- backup the file system on the disk that you need to update (for example vg01)
- shutdown the system and add new disk into the system if there's an available slot
a. startup the system
b. create a physical volume on the new disk, by using pvcreate command
c. extend the vg by adding physical volume (by using vgextend command)
d. move allocated PE from one physical volume to other physical volume (use pvmove command)
- if there's no available slot
a. deactivate the vg and export the vg, check /etc/lvmtab to make sure the vg is remove from this file and shutdown the sytem after that
b. replace the disk with the new one and startup the system
c. create a same vg and same lvol
d. mount it into the same mount point
e. restore from the backup
Hope this information can help you.
Best Regards,
AW