- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- add one more new file system to a volume group in ...
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-23-2005 06:35 AM
05-23-2005 06:35 AM
which means that I don’t need to do steps to create a vg. On primary node, I just need to do these usual steps to create the new file system, and manually mount it on a new mount point. I also need to add this new mount point into the package control script. Now my question is following:
1. how to change the pkg script file on adoptive node? Should I manually add the new mount point into the control script on adoptive node, copy the script file from primary to adoptive node, or either way doesn’t really matter?
2. when I do vgimport -v -s -m /tmp/vgshared.map /dev/vgshared on the adoptive node, I am getting the message:
vgimport: Volume group "/dev/vgshared" already exists in the "/etc/lvmtab" file.
What is the right way to reflect the change on the adoptive node.
3. the only way to test mounting the new file system, is to deactivate the package and reactivate the package which should wait until next system maintenance window. Am I right?
Thanks for your inpu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 06:48 AM
05-23-2005 06:48 AM
Re: add one more new file system to a volume group in serviceguard
Be careful in what you do. Read throughly. the procedure should be as follows.
1. Add fs in vg.
2. vgexport -p -vs -m /tmp/vgxx.map /dev/vgxx
3. Put the file on adaptive node.
4. On adaptive node, vgexport /dev/vgxx
5. vgimport -pvs -m /tmp/vgxx.map /dev/vgxx
6. If all OK, vgimport -vs -m /tmp/vgxx.map /dev/vgxx
Though steps 2-6 are not required, when package switches to alternate node, it takes care of all those things.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 06:49 AM
05-23-2005 06:49 AM
Solutionif you are just creating a filesystem and not adding any new pvs to the VG, then this is what you can do.
create the lv on the node on which this VG is currently active. Note down the major & minor number for this lv in /dev/vg_name for both the block device and the character device. Create the device files on the adoptive node using mknod command.
Modify the package control file on the primary node to reflect the addition of this new lv and rcp /scp over this file to the adoptive node.
You can then test the failover if you want, but you should be good to go.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 07:10 AM
05-23-2005 07:10 AM
Re: add one more new file system to a volume group in serviceguard
UXSGLVKBAN00000012
http://www6.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=UXSGLVKBAN00000012&searchCrit=allwords&docType=EngineerNotes&search.x=44&search.y=7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 07:28 AM
05-23-2005 07:28 AM
Re: add one more new file system to a volume group in serviceguard
Your answer makes sense to me. So, I did the following on adoptive node:
mknod rlvol10 c 64 0x04000a
mknod lvol10 b 64 0x04000a
Also, remove copy the pkg control file to another node.
RAC,
Are you sure what you said is correct?
I have problems with your answers? First of all, if I just need to do step 1 in your answers, how the changes I made to LVM would be reflected on adoptive node?
Kent,
The thread you are referring to for the situation when I create a new shared "vg". That is not what I'm asking.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 08:43 AM
05-23-2005 08:43 AM
Re: add one more new file system to a volume group in serviceguard
UXSGLVKBAN00000008
http://www6.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=UXSGLVKBAN00000008&searchCrit=allwords&docType=EngineerNotes&search.x=44&search.y=7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 10:17 AM
05-23-2005 10:17 AM
Re: add one more new file system to a volume group in serviceguard
RAC and Sanjay gave you 'somewhat' similar answers.
They both told you that you can do this with the package up and running.
They both told you (albeit worded differently) to create the fs (lvol info) on the primary node; to create a mapfile with vgexport and copy to the adaptive node(s); to then use the new mapfile on the adaptive nodes and re-create your vg there using vgexport and then vgimport of new mapfile.
And last....to copy your package control file to the adaptive nodes.
The one and only thing I couldn't find in their explanation was ...the obvious...
...After you create your new file system remember to edit your package control script on the primary node and then copy it to your remote hosts.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:33 AM
05-24-2005 08:33 AM
Re: add one more new file system to a volume group in serviceguard
What I'm not so sure is the following comments RAC made in his response:
"Though steps 2-6 are not required, when package switches to alternate node, it takes care of all those things."
what he said seems to me is that the only thing I need to do is step 1, and I dont' need to worry about step 2-6, because all these things will be taken care of on adoptive node when the package is switched over. Is that right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:38 AM
05-24-2005 08:38 AM
Re: add one more new file system to a volume group in serviceguard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:48 AM
05-24-2005 08:48 AM
Re: add one more new file system to a volume group in serviceguard
Steps by Anil are not complete for a SG envoronment. As he no where mentioned to add it to control file which is actually required.
The error in vgimport what you get on adoptive node is bacause you have not done a vgexport prior to vgimport. Vgexport will remove entry from /etc/lvmtab file and vgimport will recreate it again alongwith creating files for new file system.
You can copy control file in order but both control files should be always same.
Yes the actual testing of a file system in SG environment is to start package and see bdf on that node.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:52 AM
05-24-2005 08:52 AM
Re: add one more new file system to a volume group in serviceguard
cmpplayconf and apply changes to that package only.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 08:58 AM
05-24-2005 08:58 AM
Re: add one more new file system to a volume group in serviceguard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2005 02:44 AM
05-25-2005 02:44 AM
Re: add one more new file system to a volume group in serviceguard
"The major difference here is that I dont' have to do vgexport/vgimport on either one of nodes. As Sanjay said, instead, after I have done everything on the primary node, what I can do is to create device files for the new created lv on the adoptive node. That's it following the same major and minor number on the primary node. No need to do vgexport and vgimport on the adoptive node. "