Operating System - HP-UX
1753822 Members
9041 Online
108805 Solutions
New Discussion юеВ

Online change for adding filesystem

 
Rogelio Ordinario
Contributor

Online change for adding filesystem

Please let me know the recommended procedure in adding the filesystem to the package. Could we do them without shutting down the package?
Recommended procedures please and reasons for offline or online change.
6 REPLIES 6
Chuck J
Valued Contributor

Re: Online change for adding filesystem

Hi

I'm not entirely sure what you mean, but if you are saying to you to extend the size of a volume without umount'ing it then you need to installed OnLineJFS and be using vxfs file systems. Then you just go to SAM and extend and it will be done online. You need to have at least 3% free space on the volume though I think.
Joaquin Gil de Vergara
Respected Contributor

Re: Online change for adding filesystem

you always can add disk to an vg and extend the LV online... (except old models [SE buses])

then you must to extend FS. If you don't have OnLine JFS you must umount the filesystem and then extendfs it

if you have OnLine JFS you can extend the FS online without umount it (with fsadm command)

to add the disk to VG pvcreate it and vgextend the VG. You must export LVM config to the other nodes.

Good Luck!
Teach is the best way to learn
Joaquin Gil de Vergara
Respected Contributor

Re: Online change for adding filesystem

by the way

if what you want todo is to add a new file system you must to edit the package control script and stop/run package

if you want to add a VG you must edit package configuration file and recompile package (you must stop it to this).
Teach is the best way to learn
James R. Ferguson
Acclaimed Contributor

Re: Online change for adding filesystem

Hi:

Here's one way:

On the node running the package, do:

# lvcreate ...
# newfs ...

On the other node(s) using the *same* minor numbers for the device files as on the primary node, do:

# mknod /dev/vg02/lvol4 b 64 0x020004
# mknod /dev/vg02/rlvol4 c 64 0x020004

...in this example the device files are for a volume group with a group number of <2> and minor number of <4>.

On the node running the package, add the new logical volume and filesystem specification to the package control script using the next array increment. For example:

LV[4]="/dev/vg02/lvol4"
FS[4]="/vg02/lvol4"
FS_MOUNT_OPT[4]="-o rw"

Distribute the package to all the nodes. Halt and restart the package to test appropriately.

Regards!

...JRF...
Elif Gius
Valued Contributor

Re: Online change for adding filesystem

if you want to add a new filesystem to a package, do that as usual with lvcreate and so on...
but think about that you have to edit the package control file !!!

Most LVM modifications can be made while cluster is up and running. Only when you add or remove a shared volume group or modificate the config of the cluster lock.
All other LVM changes can be done while the cluster is up.

The vgimport needs to be executed any time when a new LVM device file was created, e.g. as it would happen when you create a new lvol.
You have to use vgexport and vgimport on the other cluster node.Pls think of to create a new mapfile!!!

EXAMPLE
+++++
vg01 is exclusive activated on system A. You want to add a new lvol to vg01. SystemB will have no device files for this new lvol, so on systemB you have to do a vgexport vg01 and then a vgimport vg01 in order to see the new device files.
The vg01 has not to be activated on systemB.
+++++