All of lore.kernel.org
 help / color / mirror / Atom feed
* Hard restart required
@ 2014-04-04  0:26 Lists
  2014-04-04  0:41 ` Avi Miller
  2014-04-04  2:32 ` Anand Jain
  0 siblings, 2 replies; 7+ messages in thread
From: Lists @ 2014-04-04  0:26 UTC (permalink / raw)
  To: linux-btrfs

Trying out BTRFS today for the first time after a few false starts with 
three drives configured raid1. I'm using Oracle Linux 6/64 with all 
updates applied on unremarkable hardware. (cast off Dell Core2 desktop, 
2 GB RAM, no known problems) Here's what it looks like:

[root@oracle ~]# btrfs filesystem show
Label: none  uuid: bdaf3d87-f992-4a89-9e2b-41de0b5ff909
     Total devices 3 FS bytes used 448.82MB
     devid    2 size 1.36TB used 167.01GB path /dev/sdc
     devid    3 size 1.82TB used 167.01GB path /dev/sdd
     devid    1 size 931.51GB used 2.02GB path /dev/sdb

It hard locked and required a power-off system restart. Is this 
atypical? Here's what did it, this should be OK?

# mount -U bdaf3d87-f992-4a89-9e2b-41de0b5ff909 /media/btrfs;

UUID should work, right? Why else have a UUID if not? Currently, I'm 
using below in /etc/fstab, but this is not preferred since I'm expecting 
hard disks to come and go in my eventual use case - I'm rather certain 
that /dev/sdc will not be the correct drive to mount at some point:

/dev/sdc    /backups/spfs     btrfs noatime,subvol=spfs,compress    0 0


Thanks,

-Ben

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
  2014-04-04  0:26 Hard restart required Lists
@ 2014-04-04  0:41 ` Avi Miller
  2014-04-04 16:26   ` Lists
  2014-04-04  2:32 ` Anand Jain
  1 sibling, 1 reply; 7+ messages in thread
From: Avi Miller @ 2014-04-04  0:41 UTC (permalink / raw)
  To: Lists; +Cc: linux-btrfs


On 4 Apr 2014, at 11:26 am, Lists <lists@benjamindsmith.com> wrote:

> UUID should work, right? Why else have a UUID if not? 

UUID should work fine on OL6. Can you confirm that you have the UEK3 (3.8.18) kernel running? If you’ve installed from OL6U5 media, it should be enabled by default, but older OL6 ISOs only had UEK2 on the media and the UEK3 yum channel would need to be manually enabled.

Cheers,
Avi

--
Oracle <http://www.oracle.com>
Avi Miller | Product Management Director | +61 (3) 8616 3496
Oracle Linux and Virtualization
417 St Kilda Road, Melbourne, Victoria 3004 Australia


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
  2014-04-04  0:26 Hard restart required Lists
  2014-04-04  0:41 ` Avi Miller
@ 2014-04-04  2:32 ` Anand Jain
  1 sibling, 0 replies; 7+ messages in thread
From: Anand Jain @ 2014-04-04  2:32 UTC (permalink / raw)
  To: Lists; +Cc: linux-btrfs



On 04/04/2014 08:26, Lists wrote:
> Trying out BTRFS today for the first time after a few false starts with
> three drives configured raid1. I'm using Oracle Linux 6/64 with all
> updates applied on unremarkable hardware. (cast off Dell Core2 desktop,
> 2 GB RAM, no known problems) Here's what it looks like:
>
> [root@oracle ~]# btrfs filesystem show
> Label: none  uuid: bdaf3d87-f992-4a89-9e2b-41de0b5ff909
>      Total devices 3 FS bytes used 448.82MB
>      devid    2 size 1.36TB used 167.01GB path /dev/sdc
>      devid    3 size 1.82TB used 167.01GB path /dev/sdd
>      devid    1 size 931.51GB used 2.02GB path /dev/sdb
>
> It hard locked and required a power-off system restart. Is this
> atypical? Here's what did it, this should be OK?
>
> # mount -U bdaf3d87-f992-4a89-9e2b-41de0b5ff909 /media/btrfs;

  Does messages around the time of the problem say anything ?

Thanks, Anand


> UUID should work, right? Why else have a UUID if not? Currently, I'm
> using below in /etc/fstab, but this is not preferred since I'm expecting
> hard disks to come and go in my eventual use case - I'm rather certain
> that /dev/sdc will not be the correct drive to mount at some point:
>
> /dev/sdc    /backups/spfs     btrfs noatime,subvol=spfs,compress    0 0
>
>
> Thanks,
>
> -Ben
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
  2014-04-04  0:41 ` Avi Miller
@ 2014-04-04 16:26   ` Lists
  2014-04-04 21:19     ` Avi Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Lists @ 2014-04-04 16:26 UTC (permalink / raw)
  To: Avi.Miller, Btrfs BTRFS

On 04/03/2014 05:41 PM, Avi Miller wrote:
> UUID should work fine on OL6. Can you confirm that you have the UEK3 (3.8.18) kernel running? If you’ve installed from OL6U5 media, it should be enabled by default, but older OL6 ISOs only had UEK2 on the media and the UEK3 yum channel would need to be manually enabled.

As suggested earlier on this list, I started with a fresh, vanilla 
CentOS 6 install and used the centos2ol.sh script to switch to using OL 
before doing a yum update/upgrade and install of BTRFS. Here's the 
relevant info after the switchover.

[root@oracle ~]# uname -a
Linux oracle.schoolpathways.com 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue 
Mar 25 08:15:39 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@oracle ~]# rpm -qa | grep -i kernel
dracut-kernel-004-336.0.1.el6_5.2.noarch
kernel-firmware-2.6.32-431.11.2.el6.noarch
kernel-2.6.32-431.11.2.el6.x86_64
kernel-2.6.32-358.el6.x86_64
[root@oracle ~]# cat /etc/yum.repos.d/public-yum-ol6.repo
[ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/0/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_u1_base]
name=Oracle Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/1/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_u2_base]
name=Oracle Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/2/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_u3_base]
name=Oracle Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/3/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_u4_base]
name=Oracle Linux $releasever Update 4 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/4/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_UEKR3_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever 
($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever 
($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1

[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_playground_latest]
name=Latest mainline stable kernel for Oracle Linux 6 ($basearch) - 
Unsupported
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/playground/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_MySQL]
name=MySQL 5.5 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/MySQL/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_gdm_multiseat]
name=Oracle Linux 6 GDM Multiseat ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/gdm_multiseat/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_ofed_UEK]
name=OFED supporting tool packages for Unbreakable Enterprise Kernel on 
Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/ofed_UEK/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_MySQL56]
name=MySQL 5.6 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/MySQL56/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_spacewalk20_server]
name=Spacewalk Server 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/server/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[ol6_spacewalk20_client]
name=Spacewalk Client 2.0 for Oracle Linux 6 ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/spacewalk20/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[root@oracle ~]# yum check-update && echo $?
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
0
[root@oracle ~]#


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
  2014-04-04 16:26   ` Lists
@ 2014-04-04 21:19     ` Avi Miller
       [not found]       ` <533F3732.6090108@benjamindsmith.com>
  0 siblings, 1 reply; 7+ messages in thread
From: Avi Miller @ 2014-04-04 21:19 UTC (permalink / raw)
  To: Lists; +Cc: Avi.Miller, Btrfs BTRFS

Hi,

On 5 Apr 2014, at 3:26 am, Lists <lists@benjamindsmith.com> wrote:

> On 04/03/2014 05:41 PM, Avi Miller wrote:
>> UUID should work fine on OL6. Can you confirm that you have the UEK3 (3.8.18) kernel running? If you’ve installed from OL6U5 media, it should be enabled by default, but older OL6 ISOs only had UEK2 on the media and the UEK3 yum channel would need to be manually enabled.
> 
> As suggested earlier on this list, I started with a fresh, vanilla CentOS 6 install and used the centos2ol.sh script to switch to using OL before doing a yum update/upgrade and install of BTRFS. Here's the relevant info after the switchover.

Any particular reason why you didn’t just start with Oracle Linux 6? The installation media is available for download from the official Oracle Software Delivery Cloud at http://edelivery.oracle.com/linux or if you can’t be bothered with the registration requirement, from one of the mirrors listed at https://wikis.oracle.com/display/oraclelinux/Downloading+Oracle+Linux

There is no good reason to start with CentOS. 

> [root@oracle ~]# uname -a
> Linux oracle.schoolpathways.com 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 08:15:39 PDT 2014 x86_64 x86_64 x86_64 GNU/Linux

This kernel is very, very, very old in btrfs terms. In fact, this is the RHCK or Red Hat Compatible Kernel that ships with RHEL6/C6 and isn’t one of the newer Oracle UEK releases at all.

> [ol6_UEKR3_latest]
> name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
> baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
> gpgcheck=1
> enabled=0

Enable this repository and do a yum update to get the latest UEK Release 3, i.e. the 3.8.13 kernel.

Cheers,
Avi

--
Oracle <http://www.oracle.com>
Avi Miller | Product Management Director | +61 (3) 8616 3496
Oracle Linux and Virtualization
417 St Kilda Road, Melbourne, Victoria 3004 Australia


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
       [not found]       ` <533F3732.6090108@benjamindsmith.com>
@ 2014-04-05  1:48         ` Avi Miller
  2014-04-05  1:51           ` Avi Miller
  0 siblings, 1 reply; 7+ messages in thread
From: Avi Miller @ 2014-04-05  1:48 UTC (permalink / raw)
  To: Lists; +Cc: Btrfs BTRFS

Hey,

On 5 Apr 2014, at 9:50 am, Lists <lists@benjamindsmith.com> wrote:

> Oracle Linux 6 with the Unbreakable Enterprise Kernel Release 2 or Release 3 has production-ready btrfs support. You can even convert your existing CentOS6 boxes across to Oracle Linux 6 in-place without reinstalling:

Yeah, that’s fine and supported. Though, it just switches the existing box across without upgrading to the new kernel. We retain the scripts so that users can switch across without reinstalling. Additional steps are required to install the UEK, though, as below:


>>> is had no effect, even after running a yum clean all to ensure that the caches were reset. I'll re-install my test station with a direct download of OL, since the testing now underway is apparently invalid. 

No need for this, just install kernel-uek manually:

# yum install kernel-uek

It has a different name from the default kernel, so both can be installed at the same time. Because this is a switched box, a yum upgrade won’t automatically pull in the UEK because there isn’t an existing one to upgrade.

Sorry for the confusion!

--
Oracle <http://www.oracle.com>
Avi Miller | Product Management Director | +61 (3) 8616 3496
Oracle Linux and Virtualization
417 St Kilda Road, Melbourne, Victoria 3004 Australia


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Hard restart required
  2014-04-05  1:48         ` Avi Miller
@ 2014-04-05  1:51           ` Avi Miller
  0 siblings, 0 replies; 7+ messages in thread
From: Avi Miller @ 2014-04-05  1:51 UTC (permalink / raw)
  To: Lists; +Cc: Btrfs BTRFS


On 5 Apr 2014, at 12:48 pm, Avi Miller <avi.miller@oracle.com> wrote:

> It has a different name from the default kernel, so both can be installed at the same time. Because this is a switched box, a yum upgrade won’t automatically pull in the UEK because there isn’t an existing one to upgrade.

It’s been a while since I switched a CentOS box, but you might find installing oraclelinux-release will pull in a bunch of the updated packages. I can’t recall if the switch script does this automatically or not, though.

--
Oracle <http://www.oracle.com>
Avi Miller | Product Management Director | +61 (3) 8616 3496
Oracle Linux and Virtualization
417 St Kilda Road, Melbourne, Victoria 3004 Australia


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-05  1:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04  0:26 Hard restart required Lists
2014-04-04  0:41 ` Avi Miller
2014-04-04 16:26   ` Lists
2014-04-04 21:19     ` Avi Miller
     [not found]       ` <533F3732.6090108@benjamindsmith.com>
2014-04-05  1:48         ` Avi Miller
2014-04-05  1:51           ` Avi Miller
2014-04-04  2:32 ` Anand Jain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.