Operating System - HP-UX
1832869 Members
7692 Online
110048 Solutions
New Discussion

Adding a file system in a clusterd environment

 
so_2
Regular Advisor

Adding a file system in a clusterd environment

Hi,

I have been asked to create a new file system on a volume group. The server is setup with MCSG (2 node). Could anyone help me what are the steps I need to perform.
Thanks
s.o
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: Adding a file system in a clusterd environment

Whenever anybody asks for a "cookie-cutter" approach to SG, I always cringe because the answer is always "it depends". I could certainly list the step that a typical addition of a filesystem/LVOL in a cluster but that is asking for trouble.

I would direct you to:
http://docs.hp.com/en/B3936-90079/B3936-90079.pdf

Now assumming that you have enough room in your VG to add another lvol, then you need to run lvcreate, and run newfs to create the filesystem. You then edit your package control script to include the new LVOL and filesystem mounts and copy the control script to the other node. You should also vgexport and vgimport the VG on the adoptive node. It's not strictly necessary to vgexport/vgimport because you could simply mknod the new devive nodes under /dev/vgxx on the adoptive node BUT if you ever have to run vgcfgrestore on the adoptive node, you will wish that you had run vgimport so that a current vgcfgbackup would be available.

My general rule is when someone asks how to do routine tasks in a SG environment is that this is the wrong person to be doing those tasks. In SG, you really have to know your packages to know when operations are safe and when they are not.
If it ain't broke, I can fix that.
Ivan Krastev
Honored Contributor

Re: Adding a file system in a clusterd environment

This may be helpfull - "How to add a Volume Group/Lvol to a running ServiceGuard "

http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082709220


DocID is : UXSGLVKBAN00000012


regards,
ivan