1748142 Members
3546 Online
108758 Solutions
New Discussion юеВ

Remove FS

 
mparasur
Advisor

Remove FS

Hi All,

We have a 4 node hp-ux cluster running hp-ux 11v2. I need to remove few FS from one volume group. Can anyone give me the steps to remove the FS. Do I need to stop the packages.

Thanks in Advance,
Mani
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: Remove FS

Shalom Mani,

The answer is, it depends.

Steps:
1) umount /filesystemname
2) lvremove logical_volume_name

Pretty simple.

You don't need to stop the packages unless the packages run on the volume group you are playing with.

If this involves shared storage for a package, you will need to stop the package.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kapil Jha
Honored Contributor

Re: Remove FS

If these file systems are accessed by the package then for sure you will have to stop the package else go ahead
1)umount FS
2)remove lv from lvremove
3)edit pkg control file, remove reference to this FS
4)copy the control file to all the other nodes.

Thats all.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Johnson Punniyalingam
Honored Contributor

Re: Remove FS

# umount /fs1

# lvremove /dev/vg01/lvol1


Edit the package control file and remove the reference and its file systems

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Raj D.
Honored Contributor

Re: Remove FS

Mani,

Here are the steps:

1. Stop proceses for that filesystem, (want to remove).
2. unmount The file system . ex: #umount /fs00x
3. remove the LV: # lvremove /dev/vg_xx/lvolyy
4. Do vgexport /import of the vg in FO node , to reflect the change that one lv is removed.
5. Update the pkg control file.
( /etc/cmcluster/pkg/pkg.cntl )
- In package config file remove this LV & FS entry.
- Copy the pkg control file to FO_node.
6. Remove the mount point directory if NA. Done.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Remove FS

Mani,

Correction:
#4. vgexport/import is not required.

- Also remember if you have any user configured with this flesystem as home directory, make sure to update user home directory with a valid FS ,as this FS would not be available any more. Applicable to FO_node as well.

Ex: to find any user associated with FS fs00x
# grep -w fs00x /etc/passwd

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: Remove FS

Mani,
Remember #4 needed.
When ever you add new lv or remove any lv in SG , vgexport/import requied to update the /dev/vgxx/lvolxx and rlvolxx in FO_node. Otherwise vg will not be activated/deactiavted in next package start.

- Do I need to stop the packages.
No.

Hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Kranti Mahmud
Honored Contributor

Re: Remove FS

Hi Mani,

You dont need to stop the package. Just d the following steps:

1. Stop proceses for that filesystem which you want to remove.
2. unmount file system. i.e.
#umount /fs00
3. remove the LV:
# lvremove /dev/vg_00/lvol00
4. Do vgexport /import of the vg in FO node, to reflect the change that one lv is removed.
5. Update the pkg control file.
i.e. /etc/cmcluster/pkg/pkg.cntl
6. In package config file remove this LV & FS entry.
7. Copy the pkg control file to FO_node.

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!