- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Accessing SAN LV from two hosts, do I run pvcreate...
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
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
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
тАО03-14-2009 11:36 PM
тАО03-14-2009 11:36 PM
Accessing SAN LV from two hosts, do I run pvcreate from both?
I'm setting up a SAN, where I will be using and accessing a logical volume from two hosts, although only having one host mounting at the time.
I have got my one host to see the PV, VG and LV, the second host can see the physical device (LUN) from the SAN but cannot detect the PV using pcscan or VG using vgscan.
Do I have to run pvcreate from BOTH hosts until the second host will recognize that there is existing VGs and LVs on the physical device on the SAN?
Best Regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 04:28 AM
тАО03-15-2009 04:28 AM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
Prior to storing any data on the LUN, I would run pvcreate from both nodes.
pvcreate will not damage the data that is already on shared storage if you plan a vgimport.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 04:48 AM
тАО03-15-2009 04:48 AM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
Server 1 is still on the old release, it can view and activate the LV correctly,
After upgrading Server 2, completely wiping the O/S, the server can still see the physical device (say /dev/sdb), but it cannot detect any physical volumes on it.
So I was thinking if I had to rerun pvcreate for this to happen. There is data on the partition.
Best Regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 06:32 AM
тАО03-15-2009 06:32 AM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
--- Physical volume ---
PV Name /dev/sdb1
And this is why the pvscan cannot find a physical volume when scanning through the complete device?
What do I then need to do to be able to fix this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 08:39 AM
тАО03-15-2009 08:39 AM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
If your older server is running Linux kernel version 2.4.* and the newer uses kernel version 2.6.*, it is likely they are running different versions of Linux LVM. The LVM of the older kernel series is now called LVM1, and the modern version is LVM2.
LVM2 can understand LVM1 disks, but not necessarily vice versa.
Some distributions may have packaged this compatibility feature into an optional software package. This is distribution-specific, so knowing the name and version of the distribution(s) used is rather important.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2009 09:45 AM
тАО03-15-2009 09:45 AM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
Best Regards,
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2009 02:46 PM
тАО03-16-2009 02:46 PM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
RHEL 4u3 runs kernel 2.6 and LVM2 and is able to understand LVM1 pv's (RH 7).
You shouldn't have to pvcreate on the second node, as the information should be written in the LVM metadata on the disk if created with LVM2, but if I remmember well, with LVM1 metadata was in /etc/lvmtab, may be try a vgimport on all the vg's from node1 on node2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2009 12:04 PM
тАО03-19-2009 12:04 PM
Re: Accessing SAN LV from two hosts, do I run pvcreate from both?
We did a reinstallation and recreation of LVM2 using RHEL4 Update 3 on both hosts, and it worked.
I'm not sure what caused the incompatability. I agree that according to LVM developers it should be backward compatible.