- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do I make a Mirrored VG using 2 disks on the s...
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
05-11-2005 08:31 AM
05-11-2005 08:31 AM
This system was rebooted due to odd behavior and after the reboot a bad drive was identified.
Now that the drive has been replaced, I need to know how to make the existing un-quorumed (sp?) VG a quorumed one (with a different vgname) utilizing both drives and mirroring the data. Right now the new drive isn't being used for anything.
Current setup info:
Existing HDD
Device name --> /dev/dsk/c0t3d0
New HDD
Device name --> /dev/dsk/c3t3d0
VG Name ------------> /dev/entvg03
LV Name ------------> /dev/entvg03/data03lv_bu
I'd like for the new volume group to be called /dev/entvg03/data03lv
I'd also like for the data stored in this logical volume to be mirrored on both drives.
Unfortunately, I don't have any HPUX 11.00 manuals handy to guide me through the process and I've only found one other article on the forums that speaks about this using 2 different machines.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 08:38 AM
05-11-2005 08:38 AM
Re: How do I make a Mirrored VG using 2 disks on the same system?
Here are the steps to make a mirror:
pvcreate -f /dev/rdsk/cXtXdX
vgextend /dev/entvg03 /dev/dsk/cXtXdX
lvextend -m 1 /dev/entvg03/data03lv_bu
That's all, now you logical volume "sits" on both disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 05:07 PM
05-11-2005 05:07 PM
Re: How do I make a Mirrored VG using 2 disks on the same system?
All you have to execute the three commands:
pvcreate -f /dev/rdsk/c3t3d0
vgextend /dev/entvg03 /dev/dsk/c3t3d0
lvextend -m 1 /dev/entvg03/data03lv_bu /dev/dsk/c3t3d0
with best wishes,
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-11-2005 05:29 PM
05-11-2005 05:29 PM
SolutionYou want yor data on a different logical volume and then mirror this logical volume.
the first step is
pvcreate -f /dev/rdsk/c3t3d0
vgextend /dev/entvg03 /dev/dsk/c3t3d0
then backup the data on the data03lv_bu from its mountpoint probebly the best way is tar.
then lvcreate -L
umount the filesystem which runs on /dev/entvg03/data03lv_bu
change in the /etc/fstab /dev/entvg03/data03lv_bu in /dev/entvg03/data03lv
mount -a
unpack the tar file you made.
and then your done.
grtz. Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2005 11:49 PM
05-15-2005 11:49 PM
Re: How do I make a Mirrored VG using 2 disks on the same system?
in Additional for replies also take a look
of this doc.
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2005 12:56 AM
05-31-2005 12:56 AM
Re: How do I make a Mirrored VG using 2 disks on the same system?
root@hpk210b:[/etc]pvcreate -f /dev/rdsk/c0t3d0
pvcreate: The physical volume "/dev/dsk/c0t3d0" is already recorded in the "/etc/lvmtab" file.
What do I need to do in order to be able to perform the first step?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2005 02:30 AM
05-31-2005 02:30 AM
Re: How do I make a Mirrored VG using 2 disks on the same system?
pvdisplay /dev/dsk/c0t3d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2005 02:41 AM
05-31-2005 02:41 AM
Re: How do I make a Mirrored VG using 2 disks on the same system?
strings /etc/lvmtab
cat /etc/fstab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2005 04:20 AM
05-31-2005 04:20 AM
Re: How do I make a Mirrored VG using 2 disks on the same system?
Your this disk was part of VG prior to failure. Why do not you try
#vgcfgrestore -n /dev/entvg03 /dev/rdsk/c0t3d0
For this the new HDD should have same device file what old disk had.
Otherwise reduce VG from the failed disk and extend it to new disk and recreate mirror for the lvol.
#lvreduce -m 0 /dev/entvg03/data03lv_bu /dev/dsk/c0t3d0
#vgreduce -f /dev/entvg03 /dev/dsk/c0t3d0
#vgextend /dev/entvg03 /dev/dsk/c3t3d0
#lvextend -m 1 /dev/entvg03/data03lv_bu /dev/dsk/c3t3d0
HTH,
Devender