* Use whole disk
@ 2012-07-03 7:50 Ramon Hofer
2012-07-03 8:20 ` Ramon Hofer
2012-07-03 8:46 ` Stan Hoeppner
0 siblings, 2 replies; 4+ messages in thread
From: Ramon Hofer @ 2012-07-03 7:50 UTC (permalink / raw)
To: linux-xfs
Hi all
I hope this is the right place to ask this:
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:
~# mkfs.xfs /dev/sdk
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?
Best regards
Ramon
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Use whole disk
2012-07-03 7:50 Use whole disk Ramon Hofer
@ 2012-07-03 8:20 ` Ramon Hofer
2012-07-03 8:46 ` Stan Hoeppner
1 sibling, 0 replies; 4+ messages in thread
From: Ramon Hofer @ 2012-07-03 8:20 UTC (permalink / raw)
To: linux-xfs
On Tue, 03 Jul 2012 07:50:49 +0000, Ramon Hofer wrote:
> Is it ok to use the disk instead of the partition or why do I have to
> create the filesystem on a partition?
I was told that it's possible to use the whole disk. But it's safer
because the user (me) and some tools see that the disk is already used
because of the valid partition table.
Another reason would be the filesystem alignment that could cause
performance issues.
Best regards
Ramon
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Use whole disk
2012-07-03 7:50 Use whole disk Ramon Hofer
2012-07-03 8:20 ` Ramon Hofer
@ 2012-07-03 8:46 ` Stan Hoeppner
2012-07-03 9:10 ` Ramon Hofer
1 sibling, 1 reply; 4+ messages in thread
From: Stan Hoeppner @ 2012-07-03 8:46 UTC (permalink / raw)
To: Ramon Hofer; +Cc: linux-xfs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Use whole disk
2012-07-03 8:46 ` Stan Hoeppner
@ 2012-07-03 9:10 ` Ramon Hofer
0 siblings, 0 replies; 4+ messages in thread
From: Ramon Hofer @ 2012-07-03 9:10 UTC (permalink / raw)
To: stan; +Cc: linux-xfs
On Die, 2012-07-03 at 03:46 -0500, Stan Hoeppner wrote:
> 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. ;)
Yes, I know.
But I didn't want to abuse you as my personal question answering
machine ;-)
> > 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?
Yes, I have.
> > ~# mkfs.xfs /dev/sdk
>
> If yes, did mkfs.xfs throw a warning about overwriting the partition table?
Yes, it did. And I was confused because I thought the warning was
because the disk was in the md9 raid before. But since I have
overwritten the raid partition now I realize that the warning was about
the partition I created afterwards...
> > 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.
So it's better to directly format the disk and not the partition.
I will redo that :-)
Cheers
Ramon
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-03 9:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-03 7:50 Use whole disk Ramon Hofer
2012-07-03 8:20 ` Ramon Hofer
2012-07-03 8:46 ` Stan Hoeppner
2012-07-03 9:10 ` Ramon Hofer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox