FAQ
I just upgraded a blade server via rsync from another server. Rebuilt the
initrd. It boots fine... except that it won't turn on the swap partition.
Several times, I've made sure swap was off, then mkswap -L SWAP-sda3
/dev/sda3, but when I do swapon -L SWAP-sda3, it complains it can't find
the device for the label.

The only thing I find while googling, other than redoing what I've done
several times now, is an old bug from CentOS 4, 0001399, which affected
*only* blade enclosures: the reporter says that all of his IBM blades were
affected (this isn't an IBM). His workaround was to make an ext2 fs, label
it, and turn that into swap.

Has anyone seen this recently, with 6.2?

mark

Search Discussions

  • Jorge Fábregas at Jan 5, 2012 at 8:00 pm

    On 01/05/2012 06:14 PM, m.roth at 5-cent.us wrote:
    mkswap -L SWAP-sda3 /dev/sda3
    Hi,

    I didn't know you could create a label within the mkswap command. I
    always used "e2label" as in:

    e2label /dev/sda2 myswap

    Try it with e2label just in case. Also, are you able to activate the
    swap using just the block device as reference?

    --
    Jorge
  • Mark Roth at Jan 6, 2012 at 7:25 am

    Jorge F?bregas wrote:
    On 01/05/2012 06:14 PM, m.roth at 5-cent.us wrote:
    mkswap -L SWAP-sda3 /dev/sda3
    I didn't know you could create a label within the mkswap command. I
    always used "e2label" as in:

    e2label /dev/sda2 myswap

    Try it with e2label just in case. Also, are you able to activate the
    swap using just the block device as reference?
    Can't do that: e2label is *only* for an ext2/3/4 partition, and won't
    work with swap (or at least it didn't when I tried it last year). mkswap
    -L <label> /dev/sdx

    mark -

    -- random .sig, honest!
    A horned and tusked purple thing went racing along the
    ridge to my right pursued by a hairless orange-skinned
    creature with long claws and a forked tail. Both were
    wailing in different keys.

    I nodded. It was just one damned thing after another.

    - from _Trumps of Doom_ by Roger Zelazny
  • John Doe at Jan 6, 2012 at 6:33 am
    From: "m.roth at 5-cent.us" <m.roth at 5-cent.us>
    I just upgraded a blade server via rsync from another server. Rebuilt the
    initrd. It boots fine... except that it won't turn on the swap partition.
    Several times, I've made sure swap was off, then mkswap -L SWAP-sda3
    /dev/sda3, but when I do swapon -L SWAP-sda3, it complains it can't find
    the device for the label.
    Did you check the partition label after the mkswap?
    I just am wondering if the '-' in the middle is handled correctly...

    JD
  • Mark Roth at Jan 6, 2012 at 7:26 am

    John Doe wrote:
    From: "m.roth at 5-cent.us" <m.roth at 5-cent.us>
    I just upgraded a blade server via rsync from another server. Rebuilt the
    initrd. It boots fine... except that it won't turn on the swap partition.
    Several times, I've made sure swap was off, then mkswap -L SWAP-sda3
    /dev/sda3, but when I do swapon -L SWAP-sda3, it complains it can't find
    the device for the label.
    Did you check the partition label after the mkswap?
    I just am wondering if the '-' in the middle is handled correctly...
    Works on all our other servers. This is the first time I'm trying on a
    blade (and we have almost no blades).

    mark

    --
    A horned and tusked purple thing went racing along the
    ridge to my right pursued by a hairless orange-skinned
    creature with long claws and a forked tail. Both were
    wailing in different keys.

    I nodded. It was just one damned thing after another.

    - from _Trumps of Doom_ by Roger Zelazny

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedJan 5, '12 at 5:14p
activeJan 6, '12 at 7:26a
posts5
users3
websitecentos.org
irc#centos

People

Translate

site design / logo © 2023 Grokbase