Operating System - HP-UX
1826428 Members
3840 Online
109692 Solutions
New Discussion

Create a new file system in a cluster server

 
hboo
Frequent Advisor

Create a new file system in a cluster server

Hello All!!

I want to know wich is the procedure to create a new file system in a cluster server with MS Service Guard and that works as Data Base Server of the application SAP. The OS is HPUX 11.11

Thank's in advance
Hayse ;)
5 REPLIES 5
Piergiacomo Perini
Trusted Contributor

Re: Create a new file system in a cluster server

Hi Hayse,

this below is the procedure, but i never do in production environment, so take care:

In the primary node,
vgchange -a e /dev/vgXX
lvcreate -L sizeinMB -n name /dev/vgXX
vgexport -p -v -s -m vgXX.map /dev/vgXX
rcp vgXX.map node2:/vgXX.map

In other nodes,you have to export the vgXX configuration and import it.
vgexport /dev/vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0x020000
vgimport -v -s -m /vgXX.map

It is a good idea to to a ls -lR > log.lst of the/dev/vgXX so you have a list of
all the minor node id's

Hope this help

regards
pg
hboo
Frequent Advisor

Re: Create a new file system in a cluster server

Thanks Piergiacomo for your response...

But have a new doubt ... I have to do nothing in cluster configuration for make this change? Cluster package will recognize this change automatic?

Thanks again..
;)
Piergiacomo Perini
Trusted Contributor

Re: Create a new file system in a cluster server

yes ...as far as i know, if you would add a new file system (i.e. a new logical volume) to a vg group of a cluster package that already exist.

hth
pg
Rita C Workman
Honored Contributor

Re: Create a new file system in a cluster server

NOTE: You can do this to add new lvol/fs, with disk currently up and running in pkg. NOT TO ADD DISK OR CREATE A NEW VG - for that package must be down !

If you have available space on disk that is already part of the package then you do not need to stop the package or your cluster.

Just do your lvm commands:

lvcreate -n /dev/
lvextend -l xxx /dev// /dev/dsk/c-t-d-
newfs -F vxfs -o largefiles /dev//r
mkdir /
mount /dev// /
vgexport -pvs -m /etc/lvmconf/.map /dev/

rcp that mapfiles to other nodes that need it

Now go back and edit your pkg.cntl file to include the new information. Copy the pkg cntl file to other servers.

On other nodes do your:
vgexport /dev/
mkdir /dev/
mknod /dev//group c 64 0x- - - -
vgimport -vs -m /etc/lvmconf/.map /dev/

Your done...package and cluster kept right on running.

Rgrds,
Rita
Rita C Workman
Honored Contributor

Re: Create a new file system in a cluster server

Forgot to mention - I presume you have OnlineJFS running on the box, so you can do these lvm commands on the fly.

Rita