Received: with ECARTIS (v1.0.0; list linux-xfs); Wed, 27 Apr 2005 16:34:50 -0700 (PDT) Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j3RNYf1O021229 for ; Wed, 27 Apr 2005 16:34:41 -0700 Received: from rock.activestate.com (rock.ActiveState.com [192.168.3.223]) by smtp1.ActiveState.com (8.12.10/8.12.10) with ESMTP id j3RNYcEw019230 for ; Wed, 27 Apr 2005 16:34:39 -0700 (envelope-from daves@activestate.com) Received: from [127.0.0.1] (localhost [127.0.0.1]) by rock.activestate.com (8.13.1/8.13.1) with ESMTP id j3RNYcVE030583 for ; Wed, 27 Apr 2005 16:34:38 -0700 Message-ID: <4270218E.80708@activestate.com> Date: Wed, 27 Apr 2005 16:34:38 -0700 From: David Sparks Reply-To: daves@activestate.com User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050330) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-xfs@oss.sgi.com Subject: Re: SAN resizing disk, no LVM References: <21114.1114643772@ocs3.ocs.com.au> In-Reply-To: <21114.1114643772@ocs3.ocs.com.au> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.83/856/Wed Apr 27 00:00:37 2005 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 5096 X-ecartis-version: Ecartis v1.0.0 Sender: linux-xfs-bounce@oss.sgi.com Errors-to: linux-xfs-bounce@oss.sgi.com X-original-sender: daves@activestate.com Precedence: bulk X-list: linux-xfs Content-Length: 1118 Lines: 32 >>Is using /dev/sdb instead of /dev/sdb1 for a fs safe to do? (I've never >>read anything authoritative on this subject) > > > A block device is a block device is a ... It is safe, as long as no > other tool tries to access /dev/sdb. In particular, if anything tries > to partition /dev/sdb or to install a boot loader on /dev/sdb then it > will overwrite the first superblock of the XFS partition. You are > gaining a little extra space, at the risk that some other disk tool > will accidentally destroy your filesystem. The main idea is that LVM isn't required to resize the disk. A `xfs_growfs /mnt/sdb` is sufficient Is there a simple way to resize a partition with a fs inside it? I do appreciate the warning, I see this every time I load fdisk: Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) I tried to "correct" the invalid flag once and the fs was unmountable. It did get fixed from a xfs_repair but I don't know if there was any actual damage to the fs? It is only a test fs at the moment and mostly empty so there was no indication of data loss. Cheers, ds