Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
> Hello,
> I was wondering is it possible to find the RAID level currently in use
> by a btrfs volume, also can I change the data & metadata (or either)
> RAID levels after creation.

   To see the RAID levels, use

btrfs fi df /path/to/filesystem

   To change RAID levels, you will need Ilya Dryomov's restriper
patches, which were posted to this list back in August.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
 --- Ceci est un travail pour l'Australien. ---  


signature.asc
Description: Digital signature


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Jordan Windsor
On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills  wrote:
> On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
>> Hello,
>> I was wondering is it possible to find the RAID level currently in use
>> by a btrfs volume, also can I change the data & metadata (or either)
>> RAID levels after creation.
>
>   To see the RAID levels, use
>
> btrfs fi df /path/to/filesystem
>
>   To change RAID levels, you will need Ilya Dryomov's restriper
> patches, which were posted to this list back in August.
>
>   Hugo.
>
> --
> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>             --- Ceci est un travail pour l'Australien. ---
>

Thanks, so If it mentions "DUP" on the metadata & system line I'm using RAID1?
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote:
> On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills  wrote:
> > On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
> >> Hello,
> >> I was wondering is it possible to find the RAID level currently in use
> >> by a btrfs volume, also can I change the data & metadata (or either)
> >> RAID levels after creation.
> >
> >   To see the RAID levels, use
> >
> > btrfs fi df /path/to/filesystem
> >
> >   To change RAID levels, you will need Ilya Dryomov's restriper
> > patches, which were posted to this list back in August.
> 
> Thanks, so If it mentions "DUP" on the metadata & system line I'm using RAID1?

   No, DUP is two copies of the data (or metadata), but kept on the
same block device.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
 --- Ceci est un travail pour l'Australien. ---  


signature.asc
Description: Digital signature


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Jordan Windsor
On Sun, Oct 30, 2011 at 1:04 AM, Hugo Mills  wrote:
> On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote:
>> On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills  wrote:
>> > On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
>> >> Hello,
>> >> I was wondering is it possible to find the RAID level currently in use
>> >> by a btrfs volume, also can I change the data & metadata (or either)
>> >> RAID levels after creation.
>> >
>> >   To see the RAID levels, use
>> >
>> > btrfs fi df /path/to/filesystem
>> >
>> >   To change RAID levels, you will need Ilya Dryomov's restriper
>> > patches, which were posted to this list back in August.
>>
>> Thanks, so If it mentions "DUP" on the metadata & system line I'm using 
>> RAID1?
>
>   No, DUP is two copies of the data (or metadata), but kept on the
> same block device.
>
>   Hugo.
>
> --
> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>             --- Ceci est un travail pour l'Australien. ---
>
If the word RAID isn't mentioned, I'm in single mode for both metadata & data?
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Hugo Mills
On Sun, Oct 30, 2011 at 01:06:49AM +1030, Jordan Windsor wrote:
> On Sun, Oct 30, 2011 at 1:04 AM, Hugo Mills  wrote:
> > On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote:
> >> On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills  wrote:
> >> > On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
> >> >> Hello,
> >> >> I was wondering is it possible to find the RAID level currently in use
> >> >> by a btrfs volume, also can I change the data & metadata (or either)
> >> >> RAID levels after creation.
> >> >
> >> >   To see the RAID levels, use
> >> >
> >> > btrfs fi df /path/to/filesystem
> >> >
> >> >   To change RAID levels, you will need Ilya Dryomov's restriper
> >> > patches, which were posted to this list back in August.
> >>
> >> Thanks, so If it mentions "DUP" on the metadata & system line I'm using 
> >> RAID1?
> >
> >   No, DUP is two copies of the data (or metadata), but kept on the
> > same block device.
> >
> If the word RAID isn't mentioned, I'm in single mode for both metadata & data?

   If there's nothing at all, then it's "single". If it says DUP, then
you have two redundant copies, but they could both be on the same
block device, so it'll protect you from a bad block or out-of-band
data corruption, but not from the loss of the whole disk.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
 --- Ceci est un travail pour l'Australien. ---  


signature.asc
Description: Digital signature


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Jordan Windsor
On Sun, Oct 30, 2011 at 1:14 AM, Hugo Mills  wrote:
> On Sun, Oct 30, 2011 at 01:06:49AM +1030, Jordan Windsor wrote:
>> On Sun, Oct 30, 2011 at 1:04 AM, Hugo Mills  wrote:
>> > On Sun, Oct 30, 2011 at 12:55:33AM +1030, Jordan Windsor wrote:
>> >> On Sun, Oct 30, 2011 at 12:43 AM, Hugo Mills  wrote:
>> >> > On Sun, Oct 30, 2011 at 12:28:39AM +1030, Jordan Windsor wrote:
>> >> >> Hello,
>> >> >> I was wondering is it possible to find the RAID level currently in use
>> >> >> by a btrfs volume, also can I change the data & metadata (or either)
>> >> >> RAID levels after creation.
>> >> >
>> >> >   To see the RAID levels, use
>> >> >
>> >> > btrfs fi df /path/to/filesystem
>> >> >
>> >> >   To change RAID levels, you will need Ilya Dryomov's restriper
>> >> > patches, which were posted to this list back in August.
>> >>
>> >> Thanks, so If it mentions "DUP" on the metadata & system line I'm using 
>> >> RAID1?
>> >
>> >   No, DUP is two copies of the data (or metadata), but kept on the
>> > same block device.
>> >
>> If the word RAID isn't mentioned, I'm in single mode for both metadata & 
>> data?
>
>   If there's nothing at all, then it's "single". If it says DUP, then
> you have two redundant copies, but they could both be on the same
> block device, so it'll protect you from a bad block or out-of-band
> data corruption, but not from the loss of the whole disk.
>
>   Hugo.
>
> --
> === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
>  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
>             --- Ceci est un travail pour l'Australien. ---
>
Just curious, If I go with RAID1 will I still get the speed boost that
comes along with RAID0? (Read from both drives)
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-29 Thread Helmut Hullen
Hallo, Jordan,

Du meintest am 30.10.11:

> I was wondering is it possible to find the RAID level currently
> in use by a btrfs volume, also can I change the data & metadata
> (or either) RAID levels after creation.

   To see the RAID levels, use

 btrfs fi df /path/to/filesystem


I've just run that command on my system:

Data, RAID0: total=3.81TB, used=3.71TB
System, RAID1: total=16.00MB, used=244.00KB
System: total=4.00MB, used=0.00
Metadata, RAID1: total=16.25GB, used=4.78GB


And that shows what I have defined via "mkfs.btrfs": "... --data raid0  
--metadata raid1"

What tells your system?

What do you want to be installed?

Viele Gruesse!
Helmut
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-30 Thread Jordan Windsor
On Sun, Oct 30, 2011 at 6:40 AM, Helmut Hullen  wrote:
> Hallo, Jordan,
>
> Du meintest am 30.10.11:
>
>> I was wondering is it possible to find the RAID level currently
>> in use by a btrfs volume, also can I change the data & metadata
>> (or either) RAID levels after creation.
>
>   To see the RAID levels, use
>
> btrfs fi df /path/to/filesystem
>
>
> I've just run that command on my system:
>
> Data, RAID0: total=3.81TB, used=3.71TB
> System, RAID1: total=16.00MB, used=244.00KB
> System: total=4.00MB, used=0.00
> Metadata, RAID1: total=16.25GB, used=4.78GB
>
>
> And that shows what I have defined via "mkfs.btrfs": "... --data raid0
> --metadata raid1"
>
> What tells your system?
>
> What do you want to be installed?
>
> Viele Gruesse!
> Helmut
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Thanks, It currently shows this:

Data: total=195.01GB, used=193.93GB
System, DUP: total=8.00MB, used=28.00KB
System: total=4.00MB, used=0.00
Metadata, DUP: total=1.75GB, used=385.41MB
Metadata: total=8.00MB, used=0.00

I didn't specify any RAID levels during creation. I'd like to have a
RAID0 installation across two hard drives.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-30 Thread Ilya Dryomov
On Mon, Oct 31, 2011 at 12:10:34AM +1030, Jordan Windsor wrote:
> Thanks, It currently shows this:
> 
> Data: total=195.01GB, used=193.93GB
> System, DUP: total=8.00MB, used=28.00KB
> System: total=4.00MB, used=0.00
> Metadata, DUP: total=1.75GB, used=385.41MB
> Metadata: total=8.00MB, used=0.00
> 
> I didn't specify any RAID levels during creation. I'd like to have a
> RAID0 installation across two hard drives.

How many devices do you have in your FS right now ?  If it's only 1 then
add another one (btrfs device add  ) and run balance
(btrfs fi balance ).  That should give you raid0 for data
across two drives w/o applying any patches.

Thanks,

Ilya
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-30 Thread Jordan Windsor
On Mon, Oct 31, 2011 at 12:36 AM, Ilya Dryomov  wrote:
> On Mon, Oct 31, 2011 at 12:10:34AM +1030, Jordan Windsor wrote:
>> Thanks, It currently shows this:
>>
>> Data: total=195.01GB, used=193.93GB
>> System, DUP: total=8.00MB, used=28.00KB
>> System: total=4.00MB, used=0.00
>> Metadata, DUP: total=1.75GB, used=385.41MB
>> Metadata: total=8.00MB, used=0.00
>>
>> I didn't specify any RAID levels during creation. I'd like to have a
>> RAID0 installation across two hard drives.
>
> How many devices do you have in your FS right now ?  If it's only 1 then
> add another one (btrfs device add  ) and run balance
> (btrfs fi balance ).  That should give you raid0 for data
> across two drives w/o applying any patches.
>
> Thanks,
>
>                Ilya
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>> the body of a message to majord...@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

Thanks, I was wondering if I added a device that was already part of
another btrfs volume, then would I have the files merged as one volume
or overwritten in the newly added one?
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Find RAID level, Change RAID level.

2011-10-30 Thread Hugo Mills
On Mon, Oct 31, 2011 at 12:56:51AM +1030, Jordan Windsor wrote:
> On Mon, Oct 31, 2011 at 12:36 AM, Ilya Dryomov  wrote:
> > On Mon, Oct 31, 2011 at 12:10:34AM +1030, Jordan Windsor wrote:
> >> Thanks, It currently shows this:
> >>
> >> Data: total=195.01GB, used=193.93GB
> >> System, DUP: total=8.00MB, used=28.00KB
> >> System: total=4.00MB, used=0.00
> >> Metadata, DUP: total=1.75GB, used=385.41MB
> >> Metadata: total=8.00MB, used=0.00
> >>
> >> I didn't specify any RAID levels during creation. I'd like to have a
> >> RAID0 installation across two hard drives.
> >
> > How many devices do you have in your FS right now ?  If it's only 1 then
> > add another one (btrfs device add  ) and run balance
> > (btrfs fi balance ).  That should give you raid0 for data
> > across two drives w/o applying any patches.
> 
> Thanks, I was wondering if I added a device that was already part of
> another btrfs volume, then would I have the files merged as one volume
> or overwritten in the newly added one?

   You'll lose the original data on the disk you're adding. No merging
will take place.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- argc, argv, argh! ---


signature.asc
Description: Digital signature


Re: Find RAID level, Change RAID level.

2011-10-30 Thread Ilya Dryomov
On Mon, Oct 31, 2011 at 12:56:51AM +1030, Jordan Windsor wrote:
> On Mon, Oct 31, 2011 at 12:36 AM, Ilya Dryomov  wrote:
> > On Mon, Oct 31, 2011 at 12:10:34AM +1030, Jordan Windsor wrote:
> >> Thanks, It currently shows this:
> >>
> >> Data: total=195.01GB, used=193.93GB
> >> System, DUP: total=8.00MB, used=28.00KB
> >> System: total=4.00MB, used=0.00
> >> Metadata, DUP: total=1.75GB, used=385.41MB
> >> Metadata: total=8.00MB, used=0.00
> >>
> >> I didn't specify any RAID levels during creation. I'd like to have a
> >> RAID0 installation across two hard drives.
> >
> > How many devices do you have in your FS right now ?  If it's only 1 then
> > add another one (btrfs device add  ) and run balance
> > (btrfs fi balance ).  That should give you raid0 for data
> > across two drives w/o applying any patches.
> >
> > Thanks,
> >
> >                Ilya
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> >> the body of a message to majord...@vger.kernel.org
> >> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> >
> 
> Thanks, I was wondering if I added a device that was already part of
> another btrfs volume, then would I have the files merged as one volume
> or overwritten in the newly added one?

A device can only be part of another btrfs FS, not sure what you mean by
volume.  If you add a device which is part of another btrfs FS you'll
break that FS and the data on that device will be overwritten.

Thanks,

Ilya
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html