This is a discussion on Help Extending /var volume group within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> I need to install a number of patches that will require me to extend the /var volume group. However, ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I need to install a number of patches that will require me to extend the /var volume group. However, I do not want to damage/remove any patches/software already installed into /var..... I believe the steps are as follows: ============================== 1. Goto single user mode 2. unmount /var 3. extend the /var volume group using the following commands: lvextend -L 1100 /dev/wutever extendfs /dev wutever 4. mount /var ============================== My 2 questions are this: 1. Is this the proper procedure? 2. Does lvextend and/or extendfs destroy any data? I have a number of patches and software tools already installed and I don't want to damage anything in /var. Thanks in advance for your comments: sgrow23 |
| |||
| "sgrow23" <sgrow23@hotmail.com> schreef in bericht news:1e08111e.0306281106.2e26d2f1@posting.google.c om... > I need to install a number of patches that will require me to extend > the /var volume group. However, I do not want to damage/remove any > patches/software already installed into /var..... I believe the steps > are as follows: > > ============================== > 1. Goto single user mode > 2. unmount /var > 3. extend the /var volume group using the following commands: > > lvextend -L 1100 /dev/wutever > extendfs /dev wutever > 4. mount /var > ============================== > > My 2 questions are this: > > 1. Is this the proper procedure? > > 2. Does lvextend and/or extendfs destroy any data? I have a number of > patches and software tools already installed and I don't want to > damage anything in /var. > > Thanks in advance for your comments: > sgrow23 If you are in doubt, always make a tape backup of the filesystem. |
| |||
| "sgrow23" <sgrow23@hotmail.com> wrote in message news:1e08111e.0306281106.2e26d2f1@posting.google.c om... > I need to install a number of patches that will require me to extend > the /var volume group. However, I do not want to damage/remove any > patches/software already installed into /var..... I believe the steps > are as follows: > > ============================== > 1. Goto single user mode > 2. unmount /var > 3. extend the /var volume group using the following commands: > > lvextend -L 1100 /dev/wutever > extendfs /dev wutever > 4. mount /var > ============================== > > My 2 questions are this: > > 1. Is this the proper procedure? Yes. There are alternatives to extending /var also > > 2. Does lvextend and/or extendfs destroy any data? I have a number of > patches and software tools already installed and I don't want to > damage anything in /var. No it does not. > > Thanks in advance for your comments: You might wish to cleanup old patches (which precludes their being removed) but if they have been installed for a while, there is no problem doing this. you would be amazed at how much space you can gain. You can put parts of /var on a separate logical volume. for example /var/adm/sw can be a separate file system. Use "du -s" on directories to see which ones are the biggest. I recommend non-online-active subdirectories such as /var/adm/sw rather than online-active ones such as /var/tmp being on separate filesystems as their temporary loss doesn't preclude a working system. Always backup on a regular basis. Make a new recovery system after major patch installs. John > sgrow23 |
| |||
| > You might wish to cleanup old patches (which precludes their being removed) > but if they have been installed for a while, there is no problem doing this. > you would be amazed at how much space you can gain. Good idea. The command is cleanup -c 1 # Check if the option is correct. > > You can put parts of /var on a separate logical volume. for example > /var/adm/sw can be a separate file system. Use "du -s" on directories to see > which ones are the biggest. I recommend non-online-active subdirectories > such as /var/adm/sw rather than online-active ones such as /var/tmp being on We are starting to put /var/tmp in its own filesystem these days, still in vg00 however. |
| |||
| Thanks Guys for the response... Just a couple of more followup questions: 1. If this is not the correct procedure, can you please explain: Alternatives to extending /var 2. Please explain how I can use the "cleanup" command to remove useless and old patches Thanks in advance, sgrow23 |
| |||
| To cleanup old patches cd /var/adm/sw/save swmodify -x patch_commit=true PH* To get more space in /var without going to single user. du -ks /var/* locate the most used directories that can be missed for some time make a new file system mount it for example. Stop swagentd mount the new file system under /var/adm/sw_new mv /var/adm/sw/* /var/adm/sw_new mv /var/adm/sw_new /var/adm/sw The size of the new sw directory should be the current size from du -ks and some extra space as told you be the swinstall log. have fun, Paul P.S. It's a good idea to have a current backup and to make a make_recovery tape first. |
| ||||
| Perhaps more specifically: lvextend -L 1100 /dev/vg00/lvol4 extendfs /dev/vg00/rlvol4 *** noting that the "4" in lvol4 is an example only (use 'bdf' to be sure), the "1100" needs to be double checked as to the accuracy of your intent: vgdisplay -v /dev/vg00|more (PEs are 4M on my system - don't know if that is "standard" - check unused PEs for the vg, and assigned PEs for the /var lv) 'man lvextend' for diffs between -L and -l options.....choose appropriately. At single user mode, if you cannot 'umount /var', use the command 'fuser -ku /dev/vg00/lvol4' to kill processes that may be lingering ....... OR "reboot / esc (esc, esc) / choose disk / DO interact with ISL". Guaranteed no lingering processes this way. note the 'r' in extendfs command (/dev/vg00/rlvol) Do not assign ALL unassigned PEs.....you may be sorry the next time you upgrade/patch/etc.! "sgrow23" <sgrow23@hotmail.com> wrote in message news:1e08111e.0306281106.2e26d2f1@posting.google.c om... > I need to install a number of patches that will require me to extend > the /var volume group. However, I do not want to damage/remove any > patches/software already installed into /var..... I believe the steps > are as follows: > > ============================== > 1. Goto single user mode > 2. unmount /var > 3. extend the /var volume group using the following commands: > > lvextend -L 1100 /dev/wutever > extendfs /dev wutever > 4. mount /var > ============================== > > My 2 questions are this: > > 1. Is this the proper procedure? > > 2. Does lvextend and/or extendfs destroy any data? I have a number of > patches and software tools already installed and I don't want to > damage anything in /var. > > Thanks in advance for your comments: > sgrow23 |
| Thread Tools | |
| Display Modes | |
|
|