How do I resize Ocfs2 filesystem using Pacemaker stack?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Carlos,
Could you please provide the command line used to format
the partition?
I found this prompt comes from code of o2cb stack.
Unable to access cluster service while closing device "/dev/mapper/storage1-part2"
Thanks,
Larry
Quoted 71 lines
Quoted 71 lines
Hello Gang,
Tank you for your fast answer.Quoted 11 lines
Hello Carlos,
Quoted 10 lines
Hi all.
We have a OCFS2 clustered file system running with Pacemaker stack over a Dell storage.
Now we need to enlarge the size of the file system. We already have grown it at the storage and with fdisk it was recreated the partition to allocate the new available size.To resize the disk I umounted the filesystem and left the DLM running.
Quoted 7 lines
Quoted 6 lines
When I tried to resize the OCFS2 filesystem with tunefs.ocfs2, it couldn't find the cluster stack.
apolo:~ # tunefs.ocfs2 -S
/dev/mapper/storage1-part2tunefs.ocfs2: Unable to access cluster service while closing device "/dev/mapper/storage1-part2"Could you use "
crm_mon" comand to identify the current cluster status isOK?
The file system is mounted at boot when the Pacemaker starts, as it is configured on it.
Last updated: Mon Dec 4 15:23:11 2017
Last change: Sat Dec 2 02:03:59 2017Stack: corosyncCurrent DC: diana (2) - partition with quorum
Version: 1.1.12-1.1.12.git20140904.266d5c2
2 Nodes configured
13 Resources configuredOnline: [ apolo diana ]
stonith_sbd(stonith:external/sbd): Started diana
Clone Set: base-clone [dlm]
Started: [ apolo diana ]
Clone Set: c-clusterfs [clusterfs]
Started: [ apolo diana ]
Clone Set:web_server[apache]
Started: [ apolo diana ]
Clone Set: c-ip_httpd [ip_httpd]
Started: [ apolo diana ]Quoted 1 line
Next, could you mount this partition first? just want to know if this
partition is integrated, since most people use LVM to extend the disk.
This is how it is mounted
apolo:~ # mount | grep ocfs2/dev/mapper/storage1-part2on /export type ocfs2 (rw,noatime,heartbeat=none,nointr,data=ordered,errors=remount-ro,atime_quant um=60,localalloc=1,cluster_stack=pcmk,coherency=full,user_xattr,acl)Quoted 1 line
Then do the file system extension command.
With the filesystem mounted the same issue happens. apolo:~ # tunefs.ocfs2 -S
/dev/mapper/storage1-part2tunefs.ocfs2: Unable to access cluster service while closing device "/dev/mapper/storage1-part2"Quoted 1 line
If still not work, please report a bug.
As openSUSE 13.2 isn't supported anymore, I don't know if they will take a look at this.
Is there a way I can change the stack of the filesystem, extend it and change the stack back to Pacemaker?
Regards,
Carlos.