- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Moving /opt filesytem
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
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
тАО02-01-2004 05:32 PM
тАО02-01-2004 05:32 PM
Moving /opt filesytem
I moved oracle and some other software onto their own filesystems mounted under /opt.
Can you let me know if this will work ...
1.Boot into single user mode
2.Mount up current /opt (vg01)
3.Mount up /newopt (will be the new opt in vg00)
4.Make sure that none of the filesystem normally mounted under /opt are mounted up. (oracle)
5.fuser -c /opt
6.kill any processes using /opt (should be none, maybe rpcd)
7.copy all the data from /opt into /newopt
8. umount both
9. modify /etc/fstab to reflect the changes
10. boot the system
I'm pretty sure this will work ... any specific command that I should use to copy the data across? will cp or cpio do the job?
Thanks,
Gus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2004 05:51 PM
тАО02-01-2004 05:51 PM
Re: Moving /opt filesytem
Also, make sure you made a Ignite-UX recovery tape before doing this. Also make sure, you have any scripts in /sbin/init.d using /opt in single user mode.
Hope this helps
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2004 05:56 PM
тАО02-01-2004 05:56 PM
Re: Moving /opt filesytem
a few comments:
2.Mount up current /opt (vg01)
this would include vgchange, possible fsck, etc.
being your in single user mode and have just mount /opt none of these should be necessary. But, what does it hurt to take a few seconds to double check.
4.Make sure that none of the filesystem normally mounted under /opt are mounted up. (oracle)
5.fuser -c /opt
6.kill any processes using /opt (should be none, maybe rpcd)
7.copy all the data from /opt into /newopt
I'd use cpio because it will be faster, but cpio doesn't copy empty directories (the mount points for your other file systems).
and a quick bdf to see that the size of the file systems are close to the same. They won't be exact, but shouldn't be largely different.
9. modify /etc/fstab to reflect the changes
I'd add a step to mount all the file systems here and do a quick check that all the file systems mount (everything under opt is where it should be) and are as you desire before rebooting.
10. boot the system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2004 05:58 PM
тАО02-01-2004 05:58 PM
Re: Moving /opt filesytem
fuser -cuk /opt
will kill any processes left open after shutting down all application software.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2004 05:59 PM
тАО02-01-2004 05:59 PM
Re: Moving /opt filesytem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-01-2004 08:25 PM
тАО02-01-2004 08:25 PM
Re: Moving /opt filesytem
all suggestions are right, then you should execute all steps in single user mode.
I just post a good command in order to copy contents from a filesystem to another one:
# mkdir /pippo.new
# mount /dev/vg00/new /pippo.new
# cd /pippo.old
# find . -xdev -print | cpio -pdmvux /pippo.new
In the past it worked fine for me.
Then check contents between 2 filesystems by diff command (of course, after boot the system):
# diff /pippo.old /pippo.new
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 03:05 AM
тАО02-02-2004 03:05 AM
Re: Moving /opt filesytem
cd /opt
find . -print | cpio -dlmpuvx /opt2
d = Do directories
l = Do links
m = Keep time
p = Pass along
u = Copy unconditionaly
v = verbose
x = Save device special files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 03:28 AM
тАО02-02-2004 03:28 AM
Re: Moving /opt filesytem
Gus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-02-2004 03:37 AM
тАО02-02-2004 03:37 AM