- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Filesystem migration recommendations...
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
тАО05-30-2007 01:09 AM
тАО05-30-2007 01:09 AM
Filesystem migration recommendations...
I believe that 'dd if=/dev/vgold/rold_fs of=/dev/vgnew/rnew_fs bs=1024k' is the way I would have done this in the past. Obviously I will need to create the new filesystems of the same size or slightly larger than the original filesystems. I'm pretty sure that's about all there is to the process excluding changing the mount points. My questions are...
1. I can't remember if this can or should be done with the filesystems in question unmounted?
2. Is there a better way (more efficient) to go about this process?
3. Any special considerations to bear in mind for things like Oracle table space?
Thanks in advance for the help. I know this is basic stuff, but it really has been a couple of years since I've needed to do this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 01:18 AM
тАО05-30-2007 01:18 AM
Re: Filesystem migration recommendations...
As far as your questions go:
1) Have the filesystems unmounted would guarantee that nothing would be written to them while you are doing the dd.
2) A larger block size would help it go faster.
3) Make absolutely sure Oracle is down. You don't want changes to the data files while you are running a dd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 01:33 AM
тАО05-30-2007 01:33 AM
Re: Filesystem migration recommendations...
The other problem is that I don't think we have Mirror-UX licensed on this particular server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:08 AM
тАО05-30-2007 02:08 AM
Re: Filesystem migration recommendations...
Otherwise, I found vxdump/vxrestore the best way to migrate between frames:
vxdump -0 -f - -s 1000000 -b 16 /usr/sap/tmp | (cd /zmnt/usr/sap/tmp vxrestore rf -) &
where zmnt is the new luns....then when complete - umount everything and mount the new lvos to the original dirs...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:14 AM
тАО05-30-2007 02:14 AM
Re: Filesystem migration recommendations...
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:28 AM
тАО05-30-2007 02:28 AM
Re: Filesystem migration recommendations...
the data to be read by vxdump should be umounted (use the device name), vxrestore needs a directory (i.e. mounted device).
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:30 AM
тАО05-30-2007 02:30 AM
Re: Filesystem migration recommendations...
Moreover, you can "tune" your optimum bs= value and the number of simultaneous dd's beforehand by doing some dd's while the system is hot and getting your transfer metrics. (Obviously, you won't actually use any data transferred "hot" but the transfers rates will still be valid.) Generally, as long as you get bs above about 256KiB the throughput is going to change very little and your initial 1024k will serve nicely.
If you also plan to expand the size of any filesystems as you move to the new array then simply make the destination LVOL's as large as you want them beforehand, do the dd transfer; and then execute fsadm -F vxfs -b or extendfs -F vxfs after the transfer to "grow" the filesystem to fit its new LVOL size.
The only real danger of the dd approach is that it is easy to mix the of= and if= parameters and if so, you just destroyed your data. Of course, the same applies to virtually all UNIX commands; simply pay attention to what you are doing or better still write a script and carefully examine the script before launching it -- just as you would with any UNIX task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-30-2007 02:36 AM
тАО05-30-2007 02:36 AM
Re: Filesystem migration recommendations...
I've actually done this so many times at my current client that I can do it in my sleep - after a couple of those weekends, I probably have done it in my sleep!
You have a couple of choices. The one thing to remember is that this isn't rocket science. You're simply moving bits from one disk to another. If you're going to be doing this on multiple systems, you want something that can be repeated which means automation.
As others have mentioned, the mirroring of the data would be the method for the least impact. There shouldn't be much concern regarding the validity of the copy as the mirrorux software will maintain that for you. The constraint, though, is the new luns must be near the size of the old ones - something that's sometimes difficult to do.
You can also generate new lvs, then restore from tape. That'd be a good way to verify your backups as well.
The process I used was generated because we were moving to larger luns and we were going to SRDF the data between datacenters.
I generated a table of the logical volumes with the format:
new_lv old_lv Size LEs PEs FS Owner/MP
The FS column is a flag for whether or not the LV is a filesystem or a raw volume. If it's one, the last column speicifies a mount point; if it's 0, the last column specifies an owner.
I use an inline script to generate that table, but that should be simple enough.
Once I have that, generate the new lvs (another script) and mount them, as appropriate, under /mnt/${mp} such that /oracle's new filesystem will be /mnt/oracle.
Then, you can run the attached script. It'll examine the lvs file and use find/cpio combinations for the filesystems and dd for the raw volumes.
You'll probably want to edit the script/tables for your own needs. For instance, when I first designed this thing, I thought I'd be using the LEs/PEs when building the new LVs - turned out not to be the case, so I never used those columns.
That should give you some potential ideas and a start along the path if you're scripting find/cpio/dd combinations...
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html