If you want to do this with the source filesystem up and running (barring anything being updated while you're doing it
1. Create your new filesystem, dasdfmt it and put a filesystem on it. 2. mount the new filesystem as, say, /mnt 3. cd to the old filesystem to be copied 4. tar cf - . | tar xpf - -C /mnt (note the dot before the pipe) This is surprisingly fast, copies subdirectories recursively and preserves ownerships, permissions and creation dates. "Nature and nature's laws lay hid in night: God said, 'Let Newton Be!' and all was light." - Alexander Pope "It did not last; the Devil howling 'Ho! Let Einstein Be!' restored the status quo." - John Collings Squire "God Rolled his dice, to Einstein's great dismay: 'Let Feynman Be!' and all was clear as day." - Jagdish Mehra Gordon W. Wolfe, Ph. D. VM Technical Services, The Boeing Company > ---------- > From: Adam Thornton > Reply To: Linux on 390 Port > Sent: Wednesday, March 24, 2004 3:09 PM > To: [EMAIL PROTECTED] > Subject: Re: Copying an entire filesystem.... and only that file system. Best > tool? > > On Wed, 2004-03-24 at 14:53, James Melin wrote: > > I am preparing to copy my root file system to another volume. If memory > > serves, the best tool for that is dd? So it doens't traverse the rest of > > the mount points. That not withstanding what would people recommend to do > > the following: > > Uh, I wouldn't use dd unless you're doing it with identically-sized > devices and identical partitions. dd is basically DDR. And using it on > a mounted filesystem is asking for trouble. > > Instead, just use cp -ax to stay on the same filesystem. > > > move root to a new volume and then copy two other file systems, > > specifically /var and /usr into the new copy of the root fs, effectively > > combining root /var and /usr into the root fs space. > > So if your "new root" is mounted at /target, do: > > copy -ax / /target > copy -ax /var /target > copy -ax /usr /target > > > Secondly - if your sysprog dynacmicall adds a couple dasd devices to your > > lpar environment that were not there, what is necesssary to make them > > available to a running image? Is that possible or do I have to IPL? > > echo "add device range=<whatever>" >> /proc/dasd/devices > > should work. > > Adam > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [EMAIL PROTECTED] 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 [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
