HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirrors on Cluster
Operating System - HP-UX
1833870
Members
1595
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-24-2002 10:54 PM
11-24-2002 10:54 PM
hi all,
i have two L-class machines with 11.00 configured in a cluster. common storage is on HP 12H E-disk array. iam running a package on the cluster. in this package the application splits some of the LVs (using MirrorDisk-Ux)and mount the splitted copies onto temperory mount points for some time and unmounts them and merges them again.
In the spitted stage, if the node fails how the other node recognizes the mirror copies. What should i do on the other node to run my application without any problem? i did the following
i exported the VG after the splitting and imported the same on the other node. then configured the same VG in the cluster with the package. in the splitted stage i made the node to fail, on the other node all original copies are mounted properly, but the mirror copies are not mounted. i did an fsck before i mount them, it is saying "can not open device". what could be the problem can anybody suggest? thanks in advance.
regds
i have two L-class machines with 11.00 configured in a cluster. common storage is on HP 12H E-disk array. iam running a package on the cluster. in this package the application splits some of the LVs (using MirrorDisk-Ux)and mount the splitted copies onto temperory mount points for some time and unmounts them and merges them again.
In the spitted stage, if the node fails how the other node recognizes the mirror copies. What should i do on the other node to run my application without any problem? i did the following
i exported the VG after the splitting and imported the same on the other node. then configured the same VG in the cluster with the package. in the splitted stage i made the node to fail, on the other node all original copies are mounted properly, but the mirror copies are not mounted. i did an fsck before i mount them, it is saying "can not open device
regds
Never Say No
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 12:35 AM
11-25-2002 12:35 AM
Re: Mirrors on Cluster
hi,
What is the invalid "device path" ? Did you use a correct map file when reimporting ? When splitting a lvol, it will create for example lvol1b with minor n, but when reimporting without a mapfile, it will be changed to lvoln by default.
Regards.
What is the invalid "device path" ? Did you use a correct map file when reimporting ? When splitting a lvol, it will create for example lvol1b with minor n, but when reimporting without a mapfile, it will be changed to lvoln by default.
Regards.
It works for me (© Bill McNAMARA ...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 04:59 AM
11-25-2002 04:59 AM
Re: Mirrors on Cluster
Hi,
i have just done some tests on that.
The lvsplit creates a backup lvol but this lvol does not occupy logicalextents on your harddisks but keeps track of the changes in a tracktable.
So you can`t vgimport an split lvol.
I would suggest you to make new split in case of a failover because the tracktable will be lost in case of a failover.
So you have to modify your package-controlscripts and add the lvsplit in the package-start-script and the lvmerge in the package-stop-script in the customer_defined_run_commands_section.
Hope this helps
regards
Gerrit
i have just done some tests on that.
The lvsplit creates a backup lvol but this lvol does not occupy logicalextents on your harddisks but keeps track of the changes in a tracktable.
So you can`t vgimport an split lvol.
I would suggest you to make new split in case of a failover because the tracktable will be lost in case of a failover.
So you have to modify your package-controlscripts and add the lvsplit in the package-start-script and the lvmerge in the package-stop-script in the customer_defined_run_commands_section.
Hope this helps
regards
Gerrit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2002 06:06 AM
11-25-2002 06:06 AM
Solution
Hi,
The previous reply is incorrect. lvsplit does create a new logical volume that consists of one set of the physical extents. Two new device files are created in /dev/.
For example if you lvsplit /dev/vg01/lvol1, you will create /dev/vg01/lvol1bk (by default) and /dev/vg01 will contain:
lvol1
lvol1bk
rlvol1
rlvol1bk
The volume group itself is aware that the new logical volume exists but in a clustered environment, the other server(s) are not. In fact, the only thing that they are missing are the appropriate device files in /dev/vg??.
One possible solution is to enhance the scripts that call lvsplit and lvmerge to create/remove the device files on the other servers.
After a split, you'd have to obtain the correct minor number from an ls -l (ls -l /dev/vg01/lvol1bk | awk '{print $6}' in the above example) and then supply this value mknod commands that you run on the remote servers. As a minimum, the following would work:
MINOR=$(ls -l /dev/vg??/lv?? | awk '{print $6}')
remsh ?? "/usr/sbin/mknod /dev/vg??/lv??bk b 64 ${MINOR};/usr/sbin/mknod /dev/vg??/rlv??bk c 64 $MINOR}"
After a merge, you'd simply have to remove the appropriate device files from the remote server(s).
lvsplit and lvmerge are normally only used for backup purposes. It sounds as though your application has extended this so you'd have to write additional code in your package control scripts to check, mount and unmount the additional volumes.
Regards,
John
The previous reply is incorrect. lvsplit does create a new logical volume that consists of one set of the physical extents. Two new device files are created in /dev/
For example if you lvsplit /dev/vg01/lvol1, you will create /dev/vg01/lvol1bk (by default) and /dev/vg01 will contain:
lvol1
lvol1bk
rlvol1
rlvol1bk
The volume group itself is aware that the new logical volume exists but in a clustered environment, the other server(s) are not. In fact, the only thing that they are missing are the appropriate device files in /dev/vg??.
One possible solution is to enhance the scripts that call lvsplit and lvmerge to create/remove the device files on the other servers.
After a split, you'd have to obtain the correct minor number from an ls -l (ls -l /dev/vg01/lvol1bk | awk '{print $6}' in the above example) and then supply this value mknod commands that you run on the remote servers. As a minimum, the following would work:
MINOR=$(ls -l /dev/vg??/lv?? | awk '{print $6}')
remsh ?? "/usr/sbin/mknod /dev/vg??/lv??bk b 64 ${MINOR};/usr/sbin/mknod /dev/vg??/rlv??bk c 64 $MINOR}"
After a merge, you'd simply have to remove the appropriate device files from the remote server(s).
lvsplit and lvmerge are normally only used for backup purposes. It sounds as though your application has extended this so you'd have to write additional code in your package control scripts to check, mount and unmount the additional volumes.
Regards,
John
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP