[Ocfs2-users] How do I resize Ocfs2 filesystem using Pacemaker stack?

Gang He ghe at suse.com
Sun Dec 3 19:02:54 PST 2017


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




More information about the Ocfs2-users mailing list