Package: jfsutils
Version: 1.1.8-1
Severity: normal

I wanted to try running with a separate device for the journal;
I have an 8TB filesystem on 3ware controllers, I wanted to put the
journal on separate disks managed by LVM to see if that would make a
difference.

I created an 1GB LVM device, and followed the instructions in the
manpage, i.e.:

    # jfs_mkfs -J journal_dev /dev/vg0/logdev1
    mkfs.jfs version 1.1.8, 03-May-2005
    Warning!  All data on device /dev/vg0/logdev1 will be lost!

    Continue? (Y/N) y
    The specified disk did not finish formatting.

Running strace on it shows that it first opens the device:

    open("/dev/vg0/logdev1", O_RDWR|O_EXCL) = 3

It then asks the "continue" question, and then tried to open it again:

    read(0, "y\n", 1024)                    = 2
    open("/dev/vg0/logdev1", O_RDWR|O_EXCL) = -1 EBUSY (Device or resource busy)
    write(1, "The specified disk did not finis"..., 46) = 46

The second open() fails, as it's opened with O_EXCL...
Seems like a very silly bug. Has no one ever tried this?

Note that this is on an amd64 system.
Running a "plain" jfs_mkfs on this device works.


Thanks,
Paul Slootman


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to