Re: Migration Off Reiser

2009-02-15 Thread John Summerfield

Adam Thornton wrote:

On Feb 12, 2009, at 9:26 AM, Jack Woehr wrote:


Scully, William P wrote:

Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?


The classic one is to boot off cd and move stuff.

If you are booted to a ramdisk and have one file system (e.g., the
real
hardddrive root file system) mounted as /old and the new
filesystem mounted as /new then in the Bourne shell or bash you can do
something like:

$ cd /old; tar cf - . | (cd /new; tar xf -)

Rather than cd, I use -C on the tar command.


If you're on a Linux box, though, cp -a does a fine job of
preserving file permissions and symlinks and so forth and you don't
need the tar.


tar xpC /mnt/new
does a fine job of preserving stuff.

More generally, and not specifically Zed,
1. tar _might_ be faster
2. The tar solution can be enhanced to copy over a network
tar . | ssh there tar xp
3. Sometimes, the buffer command might improve things. This might be so
if each tar spends time waiting on the other.
4. Sometimes over a network, one might prefer to compress the data.

If I were copying from one partition on a disk to another, I'd probably
use tar and (if I had it) buffer.

However, it'd not discard the possibility of using rsync.

On Zed's disks, the choice probably comes down to typing. I would,
though, read the man page. There might be a finer point your advisors
have overlooked.


In general, you can just mount the new filesystem, and then do cp -ax
(stay on the same filesystem) for each one you want to copy.

The tricky part is, things like databases need to be quiesced first,
so you don't end up with inconsistent files, and you don't get a point
in time copy.  Hence the recommendation for booting from CD/to single-
user mode and doing it that way.


To put it straight, you don't want anything changing your files while
you're copying them. a point in time copy is the best you'd manage, I
don't think it would be that good, in the case of a database. Especially
if the database comprises more than one file.

The only remaining concern I can think of is extended attributes and
ACLs. If any of your files have extended attributes or ACLs, you
probably want to preserve them. Read the documents for your candidate
weapons and see what it says.

Until recently, tar and other traditional Unix commands on OS X did not
do extended attributes.

See also
  getfattr(1)
  getfacl(1)





--

Cheers
John

-- spambait
1...@coco.merseine.nu  z1...@coco.merseine.nu
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Migration Off Reiser

2009-02-12 Thread Scully, William P
I believe that Reiser is no longer a preferred file system.  Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?  Likely
we'll be moving (back) to EXT3.

Thanks in advance for any pointers!

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Migration Off Reiser

2009-02-12 Thread Jack Woehr

Scully, William P wrote:

Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?


The classic one is to boot off cd and move stuff.

If you are booted to a ramdisk and have one file system (e.g., the real
hardddrive root file system) mounted as /old and the new
filesystem mounted as /new then in the Bourne shell or bash you can do
something like:

$ cd /old; tar cf - . | (cd /new; tar xf -)

--
Jack J. Woehr# I run for public office from time to time. It's like
http://www.well.com/~jax # working out at the gym, you sweat a lot, don't get
http://www.softwoehr.com # anywhere, and you fall asleep easily afterwards.


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Migration Off Reiser

2009-02-12 Thread Adam Thornton

On Feb 12, 2009, at 9:26 AM, Jack Woehr wrote:


Scully, William P wrote:

Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?


The classic one is to boot off cd and move stuff.

If you are booted to a ramdisk and have one file system (e.g., the
real
hardddrive root file system) mounted as /old and the new
filesystem mounted as /new then in the Bourne shell or bash you can do
something like:

$ cd /old; tar cf - . | (cd /new; tar xf -)


If you're on a Linux box, though, cp -a does a fine job of
preserving file permissions and symlinks and so forth and you don't
need the tar.

In general, you can just mount the new filesystem, and then do cp -ax
(stay on the same filesystem) for each one you want to copy.

The tricky part is, things like databases need to be quiesced first,
so you don't end up with inconsistent files, and you don't get a point
in time copy.  Hence the recommendation for booting from CD/to single-
user mode and doing it that way.

Adam

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Migration Off Reiser

2009-02-12 Thread Richard Gasiorowski
Hey Scully,

the best way we have found is to  tar up your data to a file (we use VTS)
then just make the new filesystem clean, and untar.



'Where ever you go - There you are!! '
Richard (Gaz) Gasiorowski
System z - Linux Product Manager
Portfolio Platform Services
CSC
3170 Fairview Park Dr., Falls Church, VA 22042
845-773-9243 Work|845-392-7889 Cell|rgasi...@csc.com|www.csc.com




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose.



Scully, William P william.scu...@ca.com
Sent by: Linux on 390 Port LINUX-390@VM.MARIST.EDU
02/12/2009 10:08 AM
Please respond to
Linux on 390 Port LINUX-390@VM.MARIST.EDU


To
LINUX-390@VM.MARIST.EDU
cc

Subject
Migration Off Reiser






I believe that Reiser is no longer a preferred file system.  Does anyone
know of a document which describes a well-accepted technique for
migrating a server's file systems from one format to another?  Likely
we'll be moving (back) to EXT3.

Thanks in advance for any pointers!

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Migration Off Reiser

2009-02-12 Thread Scott Rohling
Use rsync -- create the ext3 directory  (/new) and:

rsync -av /old/  /new

Be sure and use the trailing / after /old to avoid it creating a /old dir
under /new..

There's no way I know of to directly convert a filesystem (other than ext2
to ext3) -- so you'll have to do some type of copy .. the above preserves
everything and hasn't failed me yet..

Scott

On Thu, Feb 12, 2009 at 8:08 AM, Scully, William P william.scu...@ca.comwrote:

 I believe that Reiser is no longer a preferred file system.  Does anyone
 know of a document which describes a well-accepted technique for
 migrating a server's file systems from one format to another?  Likely
 we'll be moving (back) to EXT3.

 Thanks in advance for any pointers!

 --
 For LINUX-390 subscribe / signoff / archive access instructions,
 send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or
 visit
 http://www.marist.edu/htbin/wlvindex?LINUX-390


--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390


Re: Migration Off Reiser

2009-02-12 Thread Eli Dow
Hello William and list,

I have seen in most recent publication from the IBM Platform Evaluation
Team for Linux on system z has documented their approach on page 267
(going by the page number in the document).

http://publibz.boulder.ibm.com/epubs/pdf/e0z1p170.pdf


That book contains a lot of useful things this list might enjoy.
It also talks about converting to disk-by-path.

For what it is worth, page 235 to the end is the Linux half of the
document. The z/OS stuff is up front.


--
Sincerely,

Eli M. Dow
Ph.D. Student, Software Engineering  Computer Science,
Clarkson University

--
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390