From: Stan Hoeppner <stan@hardwarefreak.com>
To: Ramon Hofer <ramonhofer@bluewin.ch>
Cc: linux-xfs@oss.sgi.com
Subject: Re: Use whole disk
Date: Tue, 03 Jul 2012 03:46:59 -0500 [thread overview]
Message-ID: <4FF2B183.1050304@hardwarefreak.com> (raw)
In-Reply-To: <jsu88p$t01$1@dough.gmane.org>
On 7/3/2012 2:50 AM, Ramon Hofer wrote:
> Hi all
Hi Ramon, welcome to XFS.
> I hope this is the right place to ask this:
It is. But I could have answered this, and any of your XFS questions,
off list as well. ;)
> I wanted to use a 2 TB disk (as mythtv recordings drive) with the xfs
> filesystem. Until now I had jfs but I wanted to switch it.
>
> Since I have two drives of the same type I formatted the new drive with
> xfs and copied the recordings onto it. Today I saw that I created the
> filesystem over the disk instead of the partition:
Had you already put a partition on the disk?
> ~# mkfs.xfs /dev/sdk
If yes, did mkfs.xfs throw a warning about overwriting the partition table?
> These are my two disks:
>
> /dev/sdi1 jfs 1.9T 1.9T 3.9G 100% /mnt/recordings
> /dev/sdk xfs 1.9T 1.9T 3.3G 100% /mnt/recordings_temp
>
> Is it ok to use the disk instead of the partition or why do I have to
> create the filesystem on a partition?
It's not necessary to put a partition on the disk before formatting with
XFS. And in fact, when using Advanced Format drives, it's much easier
to make sure XFS is sector aligned by directly formatting the disk.
Partitioning an AF drive to get proper sector alignment can be tricky.
If you don't get proper sector alignment of the partition, you end up
with a read/modify/write cycle when a filesystem block is modified.
This reduces the performance of the drive significantly. For a write
mostly mythTV recording drive this probably isn't critical. But if you
can avoid the misaligned sector problem it's best to do so. And you
easily can by directly formatting the disk device.
--
Stan
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2012-07-03 8:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 7:50 Use whole disk Ramon Hofer
2012-07-03 8:20 ` Ramon Hofer
2012-07-03 8:46 ` Stan Hoeppner [this message]
2012-07-03 9:10 ` Ramon Hofer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FF2B183.1050304@hardwarefreak.com \
--to=stan@hardwarefreak.com \
--cc=linux-xfs@oss.sgi.com \
--cc=ramonhofer@bluewin.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox