linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About changing the UUID of external journal device
@ 2014-06-25  9:31 Chin Tzung Cheng
  2014-06-25 13:28 ` Azat Khuzhin
  0 siblings, 1 reply; 2+ messages in thread
From: Chin Tzung Cheng @ 2014-06-25  9:31 UTC (permalink / raw)
  To: linux-ext4

Hi,
I have problem while I create a ext4 volume with external journal device.
The UUID of external journal device is not the one I specify.

First, I create a journal device(/dev/sda4).

[root@localhost sbin]# ./mke2fs -O journal_dev /dev/sda4
[root@localhost sbin]# ./blkid /dev/sda4
/dev/sda4: UUID="1313c286-7803-4a40-9010-74964554d13f" TYPE="jbd"

I use tune2fs to change the UUID of journal device. blkid shows the
UUID is changed.

[root@localhost sbin]# ./tune2fs  /dev/sda4 -U
aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
[root@localhost sbin]# ./blkid /dev/sda4
/dev/sda4: UUID="aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" TYPE="jbd"

Make an ext4 volume with external journal device (dev/sda4)

[root@localhost sbin]# ./mke2fs /dev/sda3 -t ext4 -J device=/dev/sda4

[root@localhost sbin]# ./dumpe2fs -h /dev/sda3 | grep UUID
dumpe2fs 1.42.10 (18-May-2014)
Filesystem UUID:          d8f038e5-9539-4b1d-8ccb-63cc56771fc5
Journal UUID:             1313c286-7803-4a40-9010-74964554d13f

However, the journal device UUID of ext4 volume is still the old one.
It's not the new one.

Test environment
Kernel version: 3.12.10
e2fsprogs version: 1.42.10

Any help would be appreciated.

Thanks,
chintzung

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

end of thread, other threads:[~2014-06-25 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25  9:31 About changing the UUID of external journal device Chin Tzung Cheng
2014-06-25 13:28 ` Azat Khuzhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).