- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- expand /opt/openv
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
Discussions
Discussions
Discussions
Forums
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
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
тАО05-17-2011 12:25 PM
тАО05-17-2011 12:25 PM
Thanks
Brian.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-17-2011 10:47 PM
тАО05-17-2011 10:47 PM
SolutionBut if you need to use symbolic links, here's how. Let's assume that /lots-of-space/ is a filesystem that contains enough space to contain your current /opt/openv + the amount required by the upgrade:
mv -i /opt/openv /lots-of-space/
ln -s /lots-of-space/openv /opt/
In short, "ln" works sort of like "cp", but instead of actual copying it only makes the destination a link pointing back to the source.
Verification:
ls -ld /opt/openv
should list it like this:
... /opt/openv -> /lots-of-space/openv
Some security-sensitive applications might not like being moved around like this, so test it after relocating it.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 05:39 AM
тАО05-18-2011 05:39 AM
Re: expand /opt/openv
one question, since /opt/openv is a mounted filesystem, before doing the mv -i should i not unmount /opt/openv??
here is output from the 1st step
mv -i /opt/openv /new
mv: cannot remove directory `/opt/openv': Device or resource busy
/new has space.
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:30 AM
тАО05-18-2011 08:30 AM
Re: expand /opt/openv
Matti was assuming that "openv" was just a directory under the /opt filesystem.
In that case, you'd pick a few directories UNDER openv and do the similar mv, ln
## mkdir /lots-of-space/openv
(just to keep everything cozy)
## mv -i /opt/openv/dir1 /lots-of-space/openv
## ln -s /lots-of-space/openv/dir1 /opt/openv/dir1
## mv -i /opt/openv/dir2 /lots-of-space/openv
## ln -s /lots-of-space/openv/dir2 /opt/openv/dir2
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:32 AM
тАО05-18-2011 08:32 AM
Re: expand /opt/openv
give us a
## df
bv
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:51 AM
тАО05-18-2011 08:51 AM
Re: expand /opt/openv
If /opt/openv is NOT on its own Filesystem/Partition, you will need to find downtime to "move" it off (actually best practice to have it on its own FS and partition).
Here is my recommendation:
Create New LVOL/FS if you've space
mount new fs to say /x
shutdown Netbackup
cd /opt/openv
find ./ -depth -print|cpio -pdvmu /x
cd /opt
mv openv openv.old
mkdir openv
mount /dev/vgname/openv /opt/openv
resume NBU
create /etc/fstab entry for /opt/openv
A.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 08:55 AM
тАО05-18-2011 08:55 AM
Re: expand /opt/openv
Thanks for your response. I have lot of directories under /opt/openv so i guess this approach may not work
Thanks
Brian.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2011 09:01 AM
тАО05-18-2011 09:01 AM
Re: expand /opt/openv
## du -sk /opt/openv/*
bv