HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Logical Volume Manager
Operating System - HP-UX
1839238
Members
3300
Online
110137
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2000 12:10 PM
02-16-2000 12:10 PM
Logical Volume Manager
This is my first time attempting to use the LVM. The default HP-UX install
allocated a lot of space for /var. Only 31% is being used. I would like to
use some of that space for /opt and /usr. I tried to shrink the logical volume
but I'm told that it will corrupt the filesystem. I was able to enlarge a
volume, but the size of the filesystem remains unchanged. So the question is,
can the filesystem be resized, or must I copy the files, change the volume size
create a new filesystem, and copy everything back? If I have to do the less
desireable of the two (obiously the second one), what is the best way to do
it?
allocated a lot of space for /var. Only 31% is being used. I would like to
use some of that space for /opt and /usr. I tried to shrink the logical volume
but I'm told that it will corrupt the filesystem. I was able to enlarge a
volume, but the size of the filesystem remains unchanged. So the question is,
can the filesystem be resized, or must I copy the files, change the volume size
create a new filesystem, and copy everything back? If I have to do the less
desireable of the two (obiously the second one), what is the best way to do
it?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2000 01:05 PM
02-16-2000 01:05 PM
Re: Logical Volume Manager
Hi,
Regarding your problem on how to reduce your /var filesystem. We usually do it
here in this way.
* Reducing a logical volume
1. Backup filesystem /var
2. go to single user bec you cannot unmount /var
3. lvreduce -L /dev/vg?/lvol?
4. newfs /dev/vg?/lvol?
5. go to multi-user
5. Restore backup
Here, we never reduced our /var, it's either we maintain the default size
during UX fresh installation or increased the size which is 2x or 3x the size
of the default size. Which is currently configured on some of our server here.
Also, it depends on the applications requirement
Hope I could be of help
Joey
Regarding your problem on how to reduce your /var filesystem. We usually do it
here in this way.
* Reducing a logical volume
1. Backup filesystem /var
2. go to single user bec you cannot unmount /var
3. lvreduce -L
4. newfs /dev/vg?/lvol?
5. go to multi-user
5. Restore backup
Here, we never reduced our /var, it's either we maintain the default size
during UX fresh installation or increased the size which is 2x or 3x the size
of the default size. Which is currently configured on some of our server here.
Also, it depends on the applications requirement
Hope I could be of help
Joey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2000 09:13 PM
02-16-2000 09:13 PM
Re: Logical Volume Manager
I agree with not reducing var - since when you install patches, this space will
be used to backup patches, and write log files (/var/adm/sw/patch, and
/var/adm/syslog, etc.) If you still want to, and have free disk available, what
I normally do is this
1. Use SAM to add a new logical volume to the size you want it - mount it on
/var2
2. copy everything from /var to /var2 - (I use a find then pipe that to cpio)
i.e..
cd /var
find . * | cpio -rfp * /var2 - check the syntax - this is just off the top of
my head (B4 coffee).
3. Once everything looks OK, just edit /etc/fstab and switch var and var2
mount points.
reboot
your done.
Wait a week and see if everything is OK (usually is) - then kill the old /var
good luck
be used to backup patches, and write log files (/var/adm/sw/patch, and
/var/adm/syslog, etc.) If you still want to, and have free disk available, what
I normally do is this
1. Use SAM to add a new logical volume to the size you want it - mount it on
/var2
2. copy everything from /var to /var2 - (I use a find then pipe that to cpio)
i.e..
cd /var
find . * | cpio -rfp * /var2 - check the syntax - this is just off the top of
my head (B4 coffee).
3. Once everything looks OK, just edit /etc/fstab and switch var and var2
mount points.
reboot
your done.
Wait a week and see if everything is OK (usually is) - then kill the old /var
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2000 11:47 PM
02-16-2000 11:47 PM
Re: Logical Volume Manager
Hi:
Here are mi tricks:
1- on /var must be free spaced . /var/tmp is used in sort operations and
/var/preserve is used by vi to make a copy file before edition.
2- /var/adm/sw/patch ( 10.20) /var/adm/sw/save( 11.00) is used in software
update to keep copies of updated software.
4- /var/adm/crash is used to store dumps after panics.
3- /opt is used to add new software.
/var cannot be unmounted without change to single-user.
/opt may be unmonuted ( with little luck)
I use create separated lv for:
/var/adm/sw/pacth -> many times you must enlarge this filesystem in software
updates. So you can unmmount and enlarge online.
/var/adm/crash. If it were on /var filesystem could be casue of /var filesystem
full after panics.
/var-> keeping 'suficient' space available
/opt-> You can enlarge this filesystem when you need it. Dont share space with
/var using symbolic links.
/var/adm/sw/patch and /var/adm/crash needs lots of space so if you have
mirrored lvs you can leave these without mirror.
Whats then better procedure?.
First, make a make_recovery and backup of root vg.
If you can reinstall your server, this is the better procedure. Select advanced
instalation to custom your vg and lvs.
You cant: well, just create lvs and make copies between filesystems.
good luck.
Here are mi tricks:
1- on /var must be free spaced . /var/tmp is used in sort operations and
/var/preserve is used by vi to make a copy file before edition.
2- /var/adm/sw/patch ( 10.20) /var/adm/sw/save( 11.00) is used in software
update to keep copies of updated software.
4- /var/adm/crash is used to store dumps after panics.
3- /opt is used to add new software.
/var cannot be unmounted without change to single-user.
/opt may be unmonuted ( with little luck)
I use create separated lv for:
/var/adm/sw/pacth -> many times you must enlarge this filesystem in software
updates. So you can unmmount and enlarge online.
/var/adm/crash. If it were on /var filesystem could be casue of /var filesystem
full after panics.
/var-> keeping 'suficient' space available
/opt-> You can enlarge this filesystem when you need it. Dont share space with
/var using symbolic links.
/var/adm/sw/patch and /var/adm/crash needs lots of space so if you have
mirrored lvs you can leave these without mirror.
Whats then better procedure?.
First, make a make_recovery and backup of root vg.
If you can reinstall your server, this is the better procedure. Select advanced
instalation to custom your vg and lvs.
You cant: well, just create lvs and make copies between filesystems.
good luck.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP