- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SG shared array device files
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
06-29-2002 02:00 PM
06-29-2002 02:00 PM
SG shared array device files
I have an array shared between 6 service guarded machines. Therefore all machines see any new luns when created on the Raid.
Is there any info stored in the device file which will uniquely identify a lun across all machines, as on one machine it might be different from the dev file on another depending on the instance # of the FC card they're attached to. Also with redundant FC cards, it's even more confusing...
Thanks,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 03:19 PM
06-29-2002 03:19 PM
Re: SG shared array device files
There is no magic bullet here. You probably noted that your SCSI ID (the 't' part) and the LUN No (the 'd' ) remains constant but the controller instance (the 'c' part) is a crap shoot. You can use the vgexport -s to add the VGID to the mapfile and then a vgimport -s will scan the attached disks looking for the matching VGID. That's actually a pretty good way to do this but almost certainly all the primary/alternate path choices will not be optimum.
Another method (but tedious) is to add trhe LUN's one at a time and then do an ioscan -C disk -fn on all your nodes. It takes a while but then you know for sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 03:37 PM
06-29-2002 03:37 PM
Re: SG shared array device files
Thx.
My biggest worry is that I might later try to add a PV to another VG later and trash some data - will LVM allow you to pvcreate an existing PV, and if so will that damage anything? Similarly will LVM allow you to add a PV to a VG where it belongs to a VG already and the machine you're attempting it from does not have the VG currently active?
-Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 03:44 PM
06-29-2002 03:44 PM
Re: SG shared array device files
A basic 'pvcreate /dev/dsk/c?t?d?' will generate an error if the disk has VG information on it already. However if you do a 'pvcreate -f /dev/dsk/c?t?d?' then a pvcreate will be done on that LUN and your pager will probably start going crazy very shortly.
That's the way I understand it to work anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2002 04:01 PM
06-29-2002 04:01 PM
Re: SG shared array device files
Funny enough Patricks understanding is correct - I had a similar issue last week on a test cluster we have here. I created a volume group on node1 using a disk that belonged to node2. The thing was , when i attempted to view lvm information on node1 for that disk it told me that the disk didn't belong to a volume group. I had to force the pvcreate. Then when performing actions on node2 i found that the disk had 'somehow' (whoops) lost all it's LVM configuration. This required a vgcfgrestore and a data restore to get everything back to it's original state. A little embarassing I can tell you.
Be careful
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 11:16 AM
06-30-2002 11:16 AM
Re: SG shared array device files
While again there is no magic bullet, the best advice I can offer is to carefully document your cluster. I keep a rather elaborate Visio diagram of all the cluster disks and network connections. Woe be unto the admin that uses a LUN without consulting the diagram and really big woe unto the admin that creates a new LUN without updating the diagram.
One other problem that you may not have had to deal with yet is the use of raw disks (or LUN's) for databases. While it is generally better to use LVOL's for this, some diehards prefer the raw disk devices themselves. In that case, you don't have the freedom of allowing the 'c' part to change. The solution to this is the use of symbolic links. Oracle might be looking for /oradata/file01.dbf. You then enter a symbolic link
ln -s /dev/rdsk/c2t3d5 /oradata/file01.dbf
on each node and you are all set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 11:30 AM
06-30-2002 11:30 AM
Re: SG shared array device files
In addition to the advice already given, I'll offer another "rule" that helps with LVM.
Whenever you destroy a volume group and do not intend to import it elsewhere, *explicitly*, *right-then-and-there* do a 'pvcreate -f' on the physical devices that comprised the volume group. This will set the VGID to zero. A subsequent, simple 'pvcreate' (without the 'f'orce option) will proceed without complaint.
This is most convenient when you use 'vgexport' as a rapid destruction method for removing a volume group, its logical volumes, cleaning up /etc/lvmtab, and /dev/vg*/group and other device files.
Thus, when you later decide to 'pvcreate' you will not (nor should not) use the 'f'orce option. Then, having *not* forced the pvcreate, any warning of present volume group information can be regarded as cause for more through analysis --- probably because you have *really* chosen the wrong device!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 01:23 PM
06-30-2002 01:23 PM
Re: SG shared array device files
You can even group LUNs and servers so that you can manage multiple Service Guard clusters easily. If what you're saying is that you have 3 2-node clusters, you can make it so that any cluster sees only it's own LUNs, which should help at least a little.
On HP Fibre Channel disk arrays, it's called "LUN Security" and is configured via "Secure Manager". EMC calls this "Volume Logix", I think. Other brands may call it something different.
Good luck!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 01:34 PM
06-30-2002 01:34 PM
Re: SG shared array device files
The above advice ..10pts.. BUT if you've got a disk & you want to know where it lives or is it truly spare you will need to look at the VGID of the disk. The below thread shows you how to do this.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x65d7d08cc06fd511abcd0090277a778c,00.html
you could also use vgscan -pav to see if any disks are orphaned/spare.
Personally I do (well, try to do) the following
1 - Create the same VG NAME & minor number on ALL the computers in the cluster.
2 - maintain a VG called vgspare which contains my 100% sure orphaned/spare disks.
3 - try to get the controller numbers the same (remember that fc cards are LAN cards, so you will need to set the instance number of both, see man ioinit)
4 - create LARGE vg's so it is unlikely that new disks will need to be added.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2002 11:40 PM
06-30-2002 11:40 PM
Re: SG shared array device files
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xbe20eea29889d611abdb0090277a778c,00.html