Newbie help-- Making BTRFS partition
Hi all, I am running a Fedora 17 system. I am trying to set up a new partition of 2 GB size which has BTRFS as file system. When I am trying to do mkfs.btrfs on a partition, I get: [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using check_mounted(): Could not open /dev/sda3 error checking /dev/sda3 mount status I have unallocated space on my hard disk, but I am not able to make a partition as it says that I already have 4 primary partitions. Now,I have no option but to try and convert an existing partition to BTRFS, which is giving the above error. Please help. Thanks, Atri -- Regards, Atri l'apprenant -- 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: Newbie help-- Making BTRFS partition
Hi Hugo, Thanks. I was having some issues with my priviledges, and sorting them out has worked. Thanks a ton, Atri On Sat, Feb 2, 2013 at 9:50 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 08:56:20PM +0530, Atri Sharma wrote: Hi all, I am running a Fedora 17 system. I am trying to set up a new partition of 2 GB size which has BTRFS as file system. When I am trying to do mkfs.btrfs on a partition, I get: [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using check_mounted(): Could not open /dev/sda3 error checking /dev/sda3 mount status You need to be root, or (typically) to be in the disk group in order to write to a 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 --- What's so bad about being drunk? You ask a glass of water --- -- Regards, Atri l'apprenant -- 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: Newbie help-- Making BTRFS partition
Hi Hugo, Thanks for the earlier help. I needed some more help please. I created a BTRFS partition on /dev/sda3. To verify, the output of df -T command: e /dev/sda1 fuseblk 102396 25180 77216 25% /run/media/atri/System Reserved /dev/sda3 btrfs331637760 120 317977536 1% /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106 After this, I am trying to create a folder on the partition. How do I do that? I tried : [atri@AtriServer ~]$ sudo btrfs subvolume create /dev/sda3/ Create subvolume '/dev/sda3' ERROR: cannot create subvolume - Inappropriate ioctl for device Please help. Atri On Sat, Feb 2, 2013 at 9:56 PM, Atri Sharma atri.j...@gmail.com wrote: Hi Hugo, Thanks. I was having some issues with my priviledges, and sorting them out has worked. Thanks a ton, Atri On Sat, Feb 2, 2013 at 9:50 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 08:56:20PM +0530, Atri Sharma wrote: Hi all, I am running a Fedora 17 system. I am trying to set up a new partition of 2 GB size which has BTRFS as file system. When I am trying to do mkfs.btrfs on a partition, I get: [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using check_mounted(): Could not open /dev/sda3 error checking /dev/sda3 mount status You need to be root, or (typically) to be in the disk group in order to write to a 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 --- What's so bad about being drunk? You ask a glass of water --- -- Regards, Atri l'apprenant -- Regards, Atri l'apprenant -- 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: Newbie help-- Making BTRFS partition
Thanks a ton Hugo. It worked like a charm. One last thing, how do I create a document in that subvolume? I am running some tests for seeing the locking trends when mass creation and deletion of files take place. Thanks, Atri On Sat, Feb 2, 2013 at 11:32 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 11:06:23PM +0530, Atri Sharma wrote: Hi Hugo, Thanks for the earlier help. I needed some more help please. I created a BTRFS partition on /dev/sda3. To verify, the output of df -T command: e /dev/sda1 fuseblk 102396 25180 77216 25% /run/media/atri/System Reserved /dev/sda3 btrfs331637760 120 317977536 1% /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106 After this, I am trying to create a folder on the partition. How do I do that? Well, a folder (aka a directory) is created with mkdir. But... I tried : [atri@AtriServer ~]$ sudo btrfs subvolume create /dev/sda3/ Create subvolume '/dev/sda3' ERROR: cannot create subvolume - Inappropriate ioctl for device ... you're trying to create a subvolume here, so I'll assume that's what you want. If you take a look at the output of btrfs --help, you'll see that most of the commands take a path, not a device. This is usually the location of some file or directory, and in most cases should be a mount point of (some subvolume within) the filesystem. In this case, what you want to do is create the subvolume with, for example: sudo btrfs subvolume create /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/subvolumename because the filesystem is mounted at /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/, so you need to specify a path below that to create any subvolumes in it. (I'd recommend mounting your filesystem somewhere with a slightly shorter name). Once you've created the subvolume, it'll look like a directory, but it can also be mounted independently of the rest of the filesystem. Hugo. Please help. Atri On Sat, Feb 2, 2013 at 9:56 PM, Atri Sharma atri.j...@gmail.com wrote: Hi Hugo, Thanks. I was having some issues with my priviledges, and sorting them out has worked. Thanks a ton, Atri On Sat, Feb 2, 2013 at 9:50 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 08:56:20PM +0530, Atri Sharma wrote: Hi all, I am running a Fedora 17 system. I am trying to set up a new partition of 2 GB size which has BTRFS as file system. When I am trying to do mkfs.btrfs on a partition, I get: [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using check_mounted(): Could not open /dev/sda3 error checking /dev/sda3 mount status You need to be root, or (typically) to be in the disk group in order to write to a 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 --- What's so bad about being drunk? You ask a glass of water --- -- Regards, Atri l'apprenant -- Regards, Atri l'apprenant -- 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 -- === 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 --- We don't just borrow words; on occasion, English has pursued --- other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary. -- Regards, Atri l'apprenant -- 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: Newbie help-- Making BTRFS partition
Thanks Hugo. Let me try it out. Thanks a ton! Atri On Sat, Feb 2, 2013 at 11:41 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 11:38:38PM +0530, Atri Sharma wrote: Thanks a ton Hugo. It worked like a charm. One last thing, how do I create a document in that subvolume? Same way you'd create a file anywhere else in any other filesystem... :) btrfs is magic and different, but it's not *that* different. Hugo. I am running some tests for seeing the locking trends when mass creation and deletion of files take place. Thanks, Atri On Sat, Feb 2, 2013 at 11:32 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 11:06:23PM +0530, Atri Sharma wrote: Hi Hugo, Thanks for the earlier help. I needed some more help please. I created a BTRFS partition on /dev/sda3. To verify, the output of df -T command: e /dev/sda1 fuseblk 102396 25180 77216 25% /run/media/atri/System Reserved /dev/sda3 btrfs331637760 120 317977536 1% /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106 After this, I am trying to create a folder on the partition. How do I do that? Well, a folder (aka a directory) is created with mkdir. But... I tried : [atri@AtriServer ~]$ sudo btrfs subvolume create /dev/sda3/ Create subvolume '/dev/sda3' ERROR: cannot create subvolume - Inappropriate ioctl for device ... you're trying to create a subvolume here, so I'll assume that's what you want. If you take a look at the output of btrfs --help, you'll see that most of the commands take a path, not a device. This is usually the location of some file or directory, and in most cases should be a mount point of (some subvolume within) the filesystem. In this case, what you want to do is create the subvolume with, for example: sudo btrfs subvolume create /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/subvolumename because the filesystem is mounted at /run/media/atri/02fad498-f636-410e-a4bf-4d91428b9106/, so you need to specify a path below that to create any subvolumes in it. (I'd recommend mounting your filesystem somewhere with a slightly shorter name). Once you've created the subvolume, it'll look like a directory, but it can also be mounted independently of the rest of the filesystem. Hugo. Please help. Atri On Sat, Feb 2, 2013 at 9:56 PM, Atri Sharma atri.j...@gmail.com wrote: Hi Hugo, Thanks. I was having some issues with my priviledges, and sorting them out has worked. Thanks a ton, Atri On Sat, Feb 2, 2013 at 9:50 PM, Hugo Mills h...@carfax.org.uk wrote: On Sat, Feb 02, 2013 at 08:56:20PM +0530, Atri Sharma wrote: Hi all, I am running a Fedora 17 system. I am trying to set up a new partition of 2 GB size which has BTRFS as file system. When I am trying to do mkfs.btrfs on a partition, I get: [atri@AtriServer ~]$ mkfs.btrfs /dev/sda3 WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL WARNING! - see http://btrfs.wiki.kernel.org before using check_mounted(): Could not open /dev/sda3 error checking /dev/sda3 mount status You need to be root, or (typically) to be in the disk group in order to write to a 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 --- What's so bad about being drunk? You ask a glass of water --- -- Regards, Atri l'apprenant -- Regards, Atri l'apprenant -- 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 -- === 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 --- We don't just borrow words; on occasion, English has pursued --- other languages down alleyways to beat them unconscious and rifle their pockets for new vocabulary. -- Regards, Atri l'apprenant -- 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 -- === 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 --- You're never alone with a rubber duck... --- -- Regards, Atri l'apprenant -- 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: BTree lock contention
Thanks. I shall mark it as in progress then. For writer's contention, I was thinking of decreasing the lock granularity. I have not really thought about it deeply yet, but my initial plans are to identify areas where we can distribute the locks, and maybe use techniques such as combining trees. Thanks a ton, Atri On Tue, Dec 18, 2012 at 7:34 PM, Josef Bacik jba...@fusionio.com wrote: On Mon, Dec 17, 2012 at 09:24:23PM -0700, Atri Sharma wrote: Hi All, I was looking through the project ideas page for picking up a project do start working with BTRFS. I am really interested in Btree lock contention project, but it seems to be marked that it has already been done in v3.1 Is the project still open? Can I work on it? Go for it, we still have plenty of lock contention, it's just in 3.1 we switched to a read/write lock which helped a bunch. Still if you have all writers you are going to hit quite a bit of lock contention, especially on the root nodes. If you have ideas go for it. Thanks, Josef -- Regards, Atri l'apprenant -- 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: BTree lock contention
On Tue, Dec 18, 2012 at 7:43 PM, Atri Sharma atri.j...@gmail.com wrote: Thanks. I shall mark it as in progress then. For writer's contention, I was thinking of decreasing the lock granularity. I have not really thought about it deeply yet, but my initial plans are to identify areas where we can distribute the locks, and maybe use techniques such as combining trees. Thanks a ton, Atri On Tue, Dec 18, 2012 at 7:34 PM, Josef Bacik jba...@fusionio.com wrote: On Mon, Dec 17, 2012 at 09:24:23PM -0700, Atri Sharma wrote: Hi All, I was looking through the project ideas page for picking up a project do start working with BTRFS. I am really interested in Btree lock contention project, but it seems to be marked that it has already been done in v3.1 Is the project still open? Can I work on it? Go for it, we still have plenty of lock contention, it's just in 3.1 we switched to a read/write lock which helped a bunch. Still if you have all writers you are going to hit quite a bit of lock contention, especially on the root nodes. If you have ideas go for it. Thanks, Josef -- Regards, Atri l'apprenant I am pretty weak with Mediawiki. Is there any way somebody could please place my name 'Atri Sharma' for the Btree locking contention in the wiki? Thanks, Atri -- Regards, Atri l'apprenant -- 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: Regarding contribution to BTRFS
Sorry,the email is incomplete. As mentioned above, I am a C developer and really interested in file systems, and the Fedora community redirected me to BTRFS. I would really love to contribute to btrfs. Please let me know how I can proceed further, and what are the potential areas I can work in. Regards, Atri On Mon, Dec 17, 2012 at 10:49 AM, Atri Sharma atri.j...@gmail.com wrote: Hi all, I am Atri Sharma,a C and C++ developer with knowledge of database and file systems. I am a Google Summer Of Code 2012 student for PostgreSQL. Please let me know how I can help. Regards, Atri -- Regards, Atri l'apprenant -- Regards, Atri l'apprenant -- 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: Regarding contribution to BTRFS
On Mon, Dec 17, 2012 at 6:08 PM, Hugo Mills h...@carfax.org.uk wrote: On Mon, Dec 17, 2012 at 05:39:45PM +0530, Atri Sharma wrote: Sorry,the email is incomplete. As mentioned above, I am a C developer and really interested in file systems, and the Fedora community redirected me to BTRFS. I would really love to contribute to btrfs. Please let me know how I can proceed further, and what are the potential areas I can work in. Well, there's this page on the wiki: https://btrfs.wiki.kernel.org/index.php/Project_ideas As for how to proceed -- decide on a project you like the look of, mark it as in progress on the wiki, and submit patches to here as an RFC when you think you've got something worth looking at. If you come up with something else that's not on the list, I'd suggest putting a brief description of it in this mailing list, just to check whether there's someone else working on it, or if it's an unexpectedly difficult or controversial idea. Hi Hugo, Thanks for your reply. I have been studying concurrency lately, so I would love to work in that area. Specifically, I would love to work on 'Btree lock contention'. I have some ideas for it, specifically I would like to see if we can reduce the lock granularity or spread the threads blocking over time, or maybe use something like combining trees. Please let me know if that is ok. Atri -- Regards, Atri l'apprenant -- 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: Regarding contribution to BTRFS
On Mon, Dec 17, 2012 at 6:23 PM, Atri Sharma atri.j...@gmail.com wrote: On Mon, Dec 17, 2012 at 6:08 PM, Hugo Mills h...@carfax.org.uk wrote: On Mon, Dec 17, 2012 at 05:39:45PM +0530, Atri Sharma wrote: Sorry,the email is incomplete. As mentioned above, I am a C developer and really interested in file systems, and the Fedora community redirected me to BTRFS. I would really love to contribute to btrfs. Please let me know how I can proceed further, and what are the potential areas I can work in. Well, there's this page on the wiki: https://btrfs.wiki.kernel.org/index.php/Project_ideas As for how to proceed -- decide on a project you like the look of, mark it as in progress on the wiki, and submit patches to here as an RFC when you think you've got something worth looking at. If you come up with something else that's not on the list, I'd suggest putting a brief description of it in this mailing list, just to check whether there's someone else working on it, or if it's an unexpectedly difficult or controversial idea. Hi Hugo, Thanks for your reply. I have been studying concurrency lately, so I would love to work in that area. Specifically, I would love to work on 'Btree lock contention'. I have some ideas for it, specifically I would like to see if we can reduce the lock granularity or spread the threads blocking over time, or maybe use something like combining trees. Please let me know if that is ok. Atri -- Regards, Atri l'apprenant Hi All, Sorry for causing a ruckus.Actually, due to some stupidity, I seem to have changed a lot of names in the wiki whereas I wanted to change only one. Is there any way to revert this? I am really sorry for having caused this. My lack of experience with wikis. Sorry again, Atri -- Regards, Atri l'apprenant -- 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