XFS resizing & Win2k

Andrew Mathews andrew_mathews
Mon May 17 11:47:57 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Net Llama! wrote:
| On 05/29/03 10:53, Andrew Mathews wrote:
|
|> Net Llama! wrote:
|> | I've painted myself into a corner where i need/want to turn a Linux
|> only
|> | box into a dual boot box with Win2k.  Right now, the box (which is a
|> | laptop) has just RH9 (XFS) installed, and occupying the entire disk as
|> | follows:
|> | hda1  /boot
|> | hda2  SWAP
|> | hda3 /
|> |
|> | What I need to do is resize hda3 so that its about 5 GB smaller, so
|> that i
|> | can create a hda4 to install Win2k on.  The problem here is that
|> | xfs_growfs doesn't appear to support shrinking partitions, just growing
|> | them.  Is shrinking an XFS partition even possible?  If so, how?
|> |
|> | thanks!
|> |
|>
|> Nope. It's a one way street, as is LVM. AFAIK, no filesystem supports
|> shrinking, at least I haven't found a way with AIX, Solaris, IRIX, or
|> any others. The easiest way is to xfsdump the mountpoint, drop it and
|> recreate it with the size required, and xfsrestore the data. You can do
|> this with the installer iso by entering rescue mode, mounting /dev/hda3
|> as a temporary mountpoint and chrooting to the mountpoint. A tape drive
|> would be handy for this as you won't be able to mount anything via nfs
|> since networking won't be available. You'll also need to do this after
|> installing Windows to be able to rerun lilo, otherwise Win will be the
|> only thing that's bootable. Also see:
|> http://oss.sgi.com/projects/xfs/faq.html#resizexfspartition
|
|
| Does anyone know if its possible to pipe a file from xfsdump via the
| output from scp into xfsrestore?
|

Sure is. If you have passwordless ssh enabled between the two systems
you don't even need to include username and password in the pipe. I
backup my laptop that I'm writing this from every night over a wireless
network to a system with 2 tape drives. Something like:
xfsdump -l 0 - / | ssh hostname xfsrestore - /tmp

- --
Andrew Mathews
- ---------------------------------------------------------------------
~  7:38pm  up 4 days, 22:05, 16 users,  load average: 1.11, 1.15, 1.16
- ---------------------------------------------------------------------
First study the enemy.  Seek weakness.
		-- Romulan Commander, "Balance of Terror", stardate 1709.2
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQE+1sFwidHQ0m/kEssRAonXAJ4teqrqgOtgL0xqI8pJcjl8RTnHTwCeIi8F
C5kGtQaqPVQwywa29nUfBZ8=
=c8pU
-----END PGP SIGNATURE-----



More information about the Linux-users mailing list