Zosen Wang
2008-Jan-22 12:43 UTC
[Ocfs2-users] Require add extra 2 nodes into ocfs2 file system
I need add extra 2 nodes into current 3 nodes ocfs2 file system which means 5 nodes share this file system after it. I think this file system creates by mkfs.ocfs2 -b .. -N 4 .. which only allows 4 nodes. Questions: 1. How to verify parameter when this file system created? In this case, it is 4 nodes. 2. I assume I have to recreate the files system which will lost contains, if I use mkfs.ocfs2 recreate number of node slots (-n 10). 3. Can I add extra 2 node slots without using mkfs.ocfs2 or lost data on this file system? Thanks in advance Zosen Wang -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20080122/57ad036c/attachment.html
Marcos E. Matsunaga
2008-Jan-22 12:55 UTC
[Ocfs2-users] Require add extra 2 nodes into ocfs2 file system
Zozen, 1. tunefs.ocfs2 -Q "slots=%N\n" <device> will show you how many slots the current FS has. 2. No. You can use tunefs.ocfs2 -N <number of slots> <device> to change it. 3. Yes.. See answer 2. Regards, Marcos Eduardo Matsunaga Oracle USA Linux Engineering ?The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.? Zosen Wang wrote:> > I need add extra 2 nodes into current 3 nodes ocfs2 file system which > means 5 nodes share this file system after it. I think this file > system creates by mkfs.ocfs2 ?b .. ?N 4 .. which only allows 4 nodes. > > > > Questions: > > 1. How to verify parameter when this file system created? In this > case, it is 4 nodes. > > 2. I assume I have to recreate the files system which will lost > contains, if I use mkfs.ocfs2 recreate number of node slots (-n 10). > > 3. Can I add extra 2 node slots without using mkfs.ocfs2 or lost > data on this file system? > > > > Thanks in advance > > > > > > Zosen Wang > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20080122/4bb4a4a8/attachment.html
Sunil Mushran
2008-Jan-22 12:56 UTC
[Ocfs2-users] Require add extra 2 nodes into ocfs2 file system
man tunefs.ocfs2 It allows you to add slots, remove slots, query numslots, etc. Zosen Wang wrote:> > I need add extra 2 nodes into current 3 nodes ocfs2 file system which > means 5 nodes share this file system after it. I think this file > system creates by mkfs.ocfs2 ?b .. ?N 4 .. which only allows 4 nodes. > > Questions: > > 1. How to verify parameter when this file system created? In this > case, it is 4 nodes. > > 2. I assume I have to recreate the files system which will lost > contains, if I use mkfs.ocfs2 recreate number of node slots (-n 10). > > 3. Can I add extra 2 node slots without using mkfs.ocfs2 or lost data > on this file system? > > Thanks in advance > > Zosen Wang > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users
Zosen Wang
2008-Jan-22 13:47 UTC
[Ocfs2-users] Require add extra 2 nodes into ocfs2 file system
Thanks for fast response. We are using ocfs2 1.2.4. Can you provide syntax for query #of slots? I find syntax for increase slot "tunefs.ocfs2 -N 7 /dev/mpath/LUN_0708p3". Can you tell me what is the syntax to query # of slots? Is this new feature in 1.2.7? Thanks Zosen -----Original Message----- From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] Sent: Tuesday, January 22, 2008 2:55 PM To: zosen.wang@ameripride.org Cc: ocfs2-users@oss.oracle.com Subject: Re: [Ocfs2-users] Require add extra 2 nodes into ocfs2 file system man tunefs.ocfs2 It allows you to add slots, remove slots, query numslots, etc. Zosen Wang wrote:> > I need add extra 2 nodes into current 3 nodes ocfs2 file system which > means 5 nodes share this file system after it. I think this file > system creates by mkfs.ocfs2 -b .. -N 4 .. which only allows 4 nodes. > > Questions: > > 1. How to verify parameter when this file system created? In this > case, it is 4 nodes. > > 2. I assume I have to recreate the files system which will lost > contains, if I use mkfs.ocfs2 recreate number of node slots (-n 10). > > 3. Can I add extra 2 node slots without using mkfs.ocfs2 or lost data > on this file system? > > Thanks in advance > > Zosen Wang > > ------------------------------------------------------------------------ > > _______________________________________________ > Ocfs2-users mailing list > Ocfs2-users@oss.oracle.com > http://oss.oracle.com/mailman/listinfo/ocfs2-users
Sunil Mushran
2008-Jan-22 13:56 UTC
[Ocfs2-users] Require add extra 2 nodes into ocfs2 file system
Yes, tunefs.ocfs2 -Q was added in ocfs2-tools 1.2.7. Use debugfs.ocfs2 if you are on an older version. $ debugfs.ocfs2 -R "stats" /dev/sdf1 | grep Slots Sunil Zosen Wang wrote:> Thanks for fast response. > We are using ocfs2 1.2.4. > > Can you provide syntax for query #of slots? I find syntax for increase slot "tunefs.ocfs2 -N 7 /dev/mpath/LUN_0708p3". > Can you tell me what is the syntax to query # of slots? Is this new feature in 1.2.7? > > Thanks > > Zosen > > -----Original Message----- > From: Sunil Mushran [mailto:Sunil.Mushran@oracle.com] > Sent: Tuesday, January 22, 2008 2:55 PM > To: zosen.wang@ameripride.org > Cc: ocfs2-users@oss.oracle.com > Subject: Re: [Ocfs2-users] Require add extra 2 nodes into ocfs2 file system > > man tunefs.ocfs2 > > It allows you to add slots, remove slots, query numslots, etc. > > Zosen Wang wrote: > >> I need add extra 2 nodes into current 3 nodes ocfs2 file system which >> means 5 nodes share this file system after it. I think this file >> system creates by mkfs.ocfs2 -b .. -N 4 .. which only allows 4 nodes. >> >> Questions: >> >> 1. How to verify parameter when this file system created? In this >> case, it is 4 nodes. >> >> 2. I assume I have to recreate the files system which will lost >> contains, if I use mkfs.ocfs2 recreate number of node slots (-n 10). >> >> 3. Can I add extra 2 node slots without using mkfs.ocfs2 or lost data >> on this file system? >> >> Thanks in advance >> >> Zosen Wang >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Ocfs2-users mailing list >> Ocfs2-users@oss.oracle.com >> http://oss.oracle.com/mailman/listinfo/ocfs2-users >> > > >