- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Clustered volume group
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
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
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-13-2011 10:50 PM
тАО05-13-2011 10:50 PM
Clustered volume group
vgchange -c y vgname
But this is an SUSE linux system. After that, I tried to failover the package to the other node, it kept on reporting can not activate this vg, then failover failed.
Could anyone help me how to recover the attribute of this vg to normal one?
Thanks!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2011 01:35 AM
тАО05-14-2011 01:35 AM
Re: Clustered volume group
Try this command:
vgchange -c n vgname --config 'global {locking_type = 0}'
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2011 01:57 AM
тАО05-16-2011 01:57 AM
Re: Clustered volume group
Shouldn't clvmd require a type 3 locking?
# grep -B8 ^[^#]*locking_type /etc/lvm/lvm.conf
# Type of locking to use. Defaults to local file-based locking (1).
# Turn locking off by setting to 0 (dangerous: risks metadata corruption
# if LVM2 commands get run concurrently).
# Type 2 uses the external shared library locking_library.
# Type 3 uses built-in clustered locking.
# Type 4 uses read-only locking which forbids any operations that might
# change metadata.
locking_type = 1
Since in our RHCS clusters we so far only use so called active-passive volumes aka HA LVM managed ones we actually have no use for clmvd and thus operate with type 1 locks on the cluster nodes.
# lvm dumpconfig|grep locking_type
locking_type=1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2011 03:14 AM
тАО05-17-2011 03:14 AM
Re: Clustered volume group
Without setting up a native SuSE cluster infrastructure, it is not possible to start clvmd and have it work.
When the VG is in cluster mode (after vgchange -c y) it normally requires cluster-wide locks to operate it - even for switching the cluster mode off. Type 1 locking cannot provide such a lock.
To disable accidentally-enabled cluster mode on a VG without a lot of extra work, you need to find a way to execute "vgchange -c n
We once had this exact problem when running Serviceguard for Linux on a RedHat system - one of our former HP-UX sysadmins assumed Serviceguard for Linux works just like Serviceguard for HP-UX and issued "vgchange -c y". Since Serviceguard does not use nor provide a DLM locking infrastructure, clvmd could not be started successfully and without it, the cluster mode could not be turned off.
At that time, we dug deeply into RedHat documentation and found the solutions listed above.
Since the LVM tools on RedHat and SuSE are based on the same source code, it's very likely the same solution is applicable to SuSE too.
If the --config option is not available, the same effect can be achieved by editing the locking_type setting in /etc/lvm/lvm.conf to 0, entering the "vgchange -c n
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 12:37 AM
тАО05-18-2011 12:37 AM
Re: Clustered volume group
This is an invaluable hint that I should keep in mind.
Since we also used to have a few MC/SG clusters as well on Linux, which are now phased out and migrated to RHCS because HP announced end of lifecycle for SG on Linux, and because I also only knew SG from HP-UX I most likely would have run into a similar trap as your colleague.
Luckily, for me, our Linux SG clusters are administered by someone else.
If you should require any Device Mapper/(C)LVM expertise (which I doubt there is such need for you) in the future I would advise you contact the RH DM/LVM developers around Alasdair Kergon. Last week on the Berlin LinuxTag I had the chance to meet them folks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2013 05:55 AM
тАО05-09-2013 05:55 AM
Re: Clustered volume group
Instructor Storage, Servers, HP-UX and Partner Courses
Hewlett Packard Enterprise Education Services
Ask me about training on StoreServ (3PAR) StoreOnce, StoreEasy, StoreAll, StoreVirtual, HP-UX, ServiceGuard and HPE Partner Ready Certification Training
internet: Linkedin: http://www.linkedin.com/in/emilvelez
HPE Master ASE Server Solutions Architect V3
HPE Master ASE Storage Solutions Architect V2
HP UNIX Certified (ASE HPUX 11iv3 Administration V1)
Certified HPE Instructor
HPE Product Certified - OneView [2016]
HP Sales Certified -Servers, Converged Systems and Services [2015]
HPE Product Certified - Converged Solutions [2017]