Operating System - HP-UX
1827706 Members
2732 Online
109967 Solutions
New Discussion

Re: Add a new filesystem to a modular package.

 
Joao Rei
Frequent Advisor

Add a new filesystem to a modular package.

Hi,

Can you please advice if this is the right procedure to add a new filesystem to a modular package.

VG LVM 2.2


Node 1

lvcreate -L 100 -n mynewfs vg02
newfs -F /dev/vg02/rmynewfs
vgexport -p -v -s -m vg02.map vg02
rcp vg02.map to NODE2

Node2

vgexport vg02
mknod /dev/vg02/group c 64 0x040000
vgimport -v -s -m vg02.map vg02

In the package config file in NODE 1
add the following lines:

fs_name /dev/vg02/mynewfs
fs_server ""
fs_directory /mynewfsdir
fs_mount_opt "-o rw"
fs_umount_opt "-s"
fs_fsck_opt "-s"
fs_type "vxfs"

And rcp the file to the second node

Is this the right procedure?

Regards,

Joao Rei







5 REPLIES 5
P Arumugavel
Respected Contributor

Re: Add a new filesystem to a modular package.

Joao Rei
Frequent Advisor

Re: Add a new filesystem to a modular package.

From the reading in above links.

Instead of copying the package config file do I need to cmapplyconf. Can someone give the full command.
Emil Velez
Honored Contributor

Re: Add a new filesystem to a modular package.

after your steps..

on both nodes mkdir /mynewfsdir

make sure you stop the package

do a cmapplyconf
then run the package
you do not need to rcp the file to the other node... its a modular pacakge
Benoy Daniel
Trusted Contributor

Re: Add a new filesystem to a modular package.

There is no need to stop the package.. If can cmapplyconf when cluster is up and manually mount the fs.
Stephen Doud
Honored Contributor

Re: Add a new filesystem to a modular package.

On node2, after vgexport vg02, add this line:
mkdir /dev/vg02

According to the Managing Serviceguard manual, you should be able to add a new file system while the package is running. However, if you make a typo and the file system mount does not occur properly when cmapplyconf completes, the package will be halted! It is safer to add the new file system with the package down.