Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
01-18-2008 12:17 PM
01-18-2008 12:17 PM
I have a question .I have a system has 2 disks.First disk has 6 file systems vxfs on vxvm. And it is mirrored to second disk.
Now i have to reduce the file system to 5 from 6.that means i would like to create /opt
on / and get rid of optvol - so that it will free up some space thati can use to extend another filesystem in the same vg00.
How do i do this .I thought like below.
1) Create /opt on /
2) Restore /opt data from tape on new created /opt on /
3) use vea to unmount /opt and remove volume
4) bdf to see the space free'ed up
5) use vxresize to entend the volume that needed more space.
Please let me know if i miss anything. Since the opt vol is mirrored - do i need to take any other special steps.please help
Thanks Much
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2008 01:27 PM
01-18-2008 01:27 PM
SolutionRemoving /opt online will be not as easy, there will be proccesses running on the /opt filesystem. You can check it with the fuser or lsof command.
# fuser -c /opt
If a reboot is possible, you could copy the opt filesystem to a temp directory in the root(if you have enough space) filesystem.
Stop all applications running on the /opt filesystem or kill the processes.
# mkdir /opt2
# cd /opt
# find . | cpio -pcmudv /opt2
# umount /opt
edit the /etc/fstab and remove /opt
# rm -r /opt
# mv /opt2 /opt
# vxvol -g rootdg stop optvol
# vxedit -g rootdg -r rm optvol
Reboot or start the applications you have stopped.
You can add the space from the optvol to an other filesystem.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 07:34 AM
01-23-2008 07:34 AM
Re: vxvol
pls advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 08:22 AM
01-23-2008 08:22 AM
Re: vxvol
At least on my system I have a total of 200MB for / - but 3GB in /opt.
Run bdf and check.
Anyway, the idea is not the best IMHO.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 08:52 AM
01-23-2008 08:52 AM
Re: vxvol
Other than space - why is it not good idea?
pls advice
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 09:05 AM
01-23-2008 09:05 AM
Re: vxvol
Keep the system clean!
/ is normally static - more or less.
If you put other than the desired data in this volume, there is a good chance to fill it up to 100%. In this case you will have a nice problem ...
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 09:22 AM
01-23-2008 09:22 AM
Re: vxvol
The separation of the root filesystem into separate mount points for '/opt', '/var', '/usr', etc. is designed to aid preventing any one directory from growing without bound, eventually filling your boot volume and crashing your system.
Instead of eliminating the '/opt' mountpoint and subsuming it under '/', I'd simply 'fsadm' its size downward and 'lvreduce' or 'vxassist' the associate logical volume to match. Everything can remain mirrored while you do this.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 11:07 AM
01-23-2008 11:07 AM
Re: vxvol
Also ..if i purchase on line jfs can i shrink my / filesystem online (vxfs+vxvm ) .
pls advice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2008 11:17 AM
01-23-2008 11:17 AM
Re: vxvol
--
Do i need to break the mirror before doing the above procedure?
--
You will not loose any data, in the above procedure you are moving data. I would create a good backup(make_tape_recovery) before you start this procedure.
James has a good point in keeping /var /usr /opt as seperate filesystems for housekeeping purposes. You could start with reducing the size of optvol and in in need remove the optvol and move the optvol data to / root filesystem.
Regards,
Robert-Jan