- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Incorporating data disks under LVM
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-24-2001 06:23 PM
10-24-2001 06:23 PM
I have a set of disks (say set A) that already have data with JFS, and another set (say B) of free disks (without any data).
Is it possible to incorporate set A under LVM control and mirror it to set B, without losing the existing data on set A ? Pls exclude the option of backing up set A and then restoring after pvcreate/vgcreate/lvcreate.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:03 PM
10-24-2001 07:03 PM
Re: Incorporating data disks under LVM
If set a is a volume group, then you can add the disks from set B to the volume group and mirror the logical volumes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:05 PM
10-24-2001 07:05 PM
Re: Incorporating data disks under LVM
Let's say that your new drives are c1t5d0 and c2t4d0 and that the volume group is vg02.
I assume that you have Mirror/UX installed.
0) Have a good backup.
1) vgdisplay -v /dev/vg02 | lp (so that you will have a hardcopy in front of you)
2) pvcreate -f /dev/rdsk/c1t5d0
pvcreaste -f /dev/rdsk/c2t4d0
3) vgextend /dev/vg02 /dev/dsk/c1t5d0 /dev/dsk/c2t4d0
5) for each lvol listed
lvextend -m 1 /dev/vg02/lvolxx
(if you like you can also specify a specific drive to mirror)
lvextend -m 1 /dev/vg02/lvolxx /dev/dsk/c1t5d0
That should do it.
By the way, you can actually do all the step under SAM->Disks&Filesystems
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:21 PM
10-24-2001 07:21 PM
Re: Incorporating data disks under LVM
I am running HP-UX 11.0 on V2200, with JFS.
Set A is currently not under LVM (.ie. not a vg).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:32 PM
10-24-2001 07:32 PM
Re: Incorporating data disks under LVM
As long as your "set"s are imaginary it's fine. But in practical when you do mirroring all the disks will become a "single set" and should be bunched together in one volume group.
If your idea is to seperate setA (volume group 1) and setB(volume group 2) and mirror - it's not possible.
You can follow the procedure as outlined by Clay.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:43 PM
10-24-2001 07:43 PM
Re: Incorporating data disks under LVM
If the set A is not in a volume group now, was it a part of a volume group when the data was written to it? If yes, you can try using 'vgimport' to bring the set A into a new volume group. Then use Clay's instructions.
Mladen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 07:54 PM
10-24-2001 07:54 PM
Re: Incorporating data disks under LVM
I have a JFS filesystem on a single disk, which is not part of any VG. I want to bring it under LVM so that i can mirror it with another new disk.
Q: can i make my existing data disk part of a VG, without having to initialize it thru pvcreate (and thereby lose the data on it)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 11:26 PM
10-24-2001 11:26 PM
Solutionwhat you could do is set up your set B disc(s) under lvm, create fs's etc.
create a new mount point and mount under there.
Then copy everything from setA to setB, unmount everything, mount the new setB under the origional mount point and then add setA into the vg using pvcreate etc.