renzhengeek / issues

0 stars 0 forks source link

ocfs2 : error checking too late if mkfs with wrong cluster name. #4

Closed renzhengeek closed 8 years ago

renzhengeek commented 9 years ago
n1:~ # /usr/bin/sudo -u root /sbin/mkfs.ocfs2 --fs-features=sparse,unwritten,inline-data --cluster-stack=pcmk --cluster-name=hacluster -b 512 -C 4096 -L multi-write_append_truncate-test -N 3 /dev/sdb1
mkfs.ocfs2 1.8.2
Cluster stack: pcmk
Cluster name: hacluster
Stack Flags: 0x0
NOTE: Feature extended slot map may be enabled
Overwriting existing ocfs2 partition.
Proceed (y/N): y
Label: multi-write_append_truncate-test
Features: sparse extended-slotmap backup-super unwritten inline-data strict-journal-super xattr indexed-dirs refcount discontig-bg
Block size: 512 (9 bits)
Cluster size: 4096 (12 bits)
Volume size: 107372085248 (26213888 clusters) (209711104 blocks)
Cluster groups: 7315 (tail covers 512 clusters, rest cover 3584 clusters)
Extent allocator size: 36700160 (35 groups)
Journal size: 33554432
Node slots: 3
Creating bitmaps: done
Initializing superblock: done
Writing system files: 
done
Writing superblock: done
Writing backup superblock: 4 block(s)
Formatting Journals: done
Growing extent allocator: done
Formatting slot map: done
Formatting quota files: done
Writing lost+found: done
mkfs.ocfs2 successful

n1:~ # 
n1:~ # mount LABEL=multi-write_append_truncate-test /mnt/shared/
mount.ocfs2: Cluster name is invalid while trying to join the group
renzhengeek commented 8 years ago

not deserve bothering