Gang He
2017-Dec-04 03:02 UTC
[Ocfs2-users] How do I resize Ocfs2 filesystem using Pacemaker stack?
Hello Carlos,>>> > 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. > > 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-part2 > tunefs.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 is OK? 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. Then do the file system extension command. If still not work, please report a bug. Thanks Gang> > We are running a OpenSUSE 13.2 with the packages: > pacemaker-1.1.12.git20140904.266d5c2-1.5.x86_64 > ocfs2-tools-o2cb-1.8.2+git.1361836695.ff84eb5-11.1.4.x86_64 > ocfs2-tools-1.8.2+git.1361836695.ff84eb5-11.1.4.x86_64 > > > This is the state of the filesystem when mounted: > apolo:~ # cat /sys/kernel/debug/ocfs2/*/fs_state > Device => Id: 254,2 Uuid: 24BA97F3DCE74874AB472544029811EF Gen: > 0x8D96396E Label: export > Volume => State: 2 Flags: 0x0 > Sizes => Block: 4096 Cluster: 4096 > Features => Compat: 0x3 Incompat: 0x37D0 ROcompat: 0x1 > Mount => Opts: 0x104 AtimeQuanta: 60 > Cluster => Stack: pcmk Name: 24BA97F3DCE74874AB472544029811EF Version: > 1.0 > DownCnvt => Pid: 3086 Count: 0 WakeSeq: 4374082 WorkSeq: 4374082 > Recovery => Pid: -1 Nodes: None > Commit => Pid: 3119 Interval: 0 > Journal => State: 1 TxnId: 679275 NumTxns: 276 > Stats => GlobalAllocs: 12643133 LocalAllocs: 24127052 SubAllocs: > 595987 LAWinMoves: 25400 SAExtends: 182 > LocalAlloc => State: 2 Descriptor: 0 Size: 424 bits Default: 27136 bits > Steal => InodeSlot: -1 StolenInodes: 0, MetaSlot: -1 StolenMeta: 0 > OrphanScan => Local: 17936 Global: 35841 Last Scan: 150 seconds ago > Slots => Num RecoGen > * 0 4 > 1 9 > 2 0 > 3 0 > 4 0 > 5 0 > 6 0 > 7 0 > > Any comments and suggestion will be appreciated! > > Thanks, > Carlos. > > > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users at oss.oracle.com > https://oss.oracle.com/mailman/listinfo/ocfs2-users
Carlos Xavier
2017-Dec-04 17:39 UTC
[Ocfs2-users] RES: How do I resize Ocfs2 filesystem using Pacemaker stack?
Hello Gang, Tank you for your fast answer.>Hello Carlos, >>>> >> 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. >> >> 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-part2 >> tunefs.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 2017 Stack: corosync Current DC: diana (2) - partition with quorum Version: 1.1.12-1.1.12.git20140904.266d5c2 2 Nodes configured 13 Resources configured Online: [ 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 ]>Next, could you mount this partition first? just want to know if thispartition is integrated, since most people use LVM to extend the disk. This is how it is mounted apolo:~ # mount | grep ocfs2 /dev/mapper/storage1-part2 on /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)>Then do the file system extension command.With the filesystem mounted the same issue happens. apolo:~ # tunefs.ocfs2 -S /dev/mapper/storage1-part2 tunefs.ocfs2: Unable to access cluster service while closing device "/dev/mapper/storage1-part2">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.