Wendy Cheng <wcheng@xxxxxxxxxx> writes: > Bob Peterson wrote: > >>> # gfs_tool jindex /dev/mapper/gfs-test gfs_tool: >>> /dev/mapper/gfs-test is not a GFS file/filesystem >> >> It sounds like gfs_tool may be somewhat confused about the mount >> point. Try using the mount point that was used on the mount >> command, not the /dev/mapper mount point and see if that helps. > > If I remember this right, gfs_tool only recognizes *filesystem* mount > point, not device file (/dev/mapper/..something... is a device file, > not a mount point). So you may mount the GFS filesystem as: > > shell> mount /dev/mapper/something /gfs-data > shell> gfs_tool <flag> /gfs-data <op> Yes, I've already figured gfs_tool can handle mounted filesystems only. I've also figured it's clearly written in the manual, which I didn't check even after reading the error message. Maybe my terminology is wrong, but I'd say /dev/mapper/gfs-test IS a GFS filesystem, but not the mount point of one. Well, of anything. Perhaps a better error message would be "/dev/mapper/gfs-test is not a mount point" or maybe "/dev/mapper/gfs-test in not on a GFS filesystem" (for Bob, speaking of better error messages. :) ---- As a side note, there's still something strange here (at least for me, not knowing the LVM on-disk format), which is probably unrelated to my mount problem, as it's (obviously, living on SAN) the same on the working node. # pvs PV VG Fmt Attr PSize PFree /dev/mapper/360060160861611005c574c2126c7db11 gfs lvm2 a- 200.00G 155.00G # lvs LV VG Attr LSize Origin Snap% Move Log Copy% test gfs -wi-a- 40.00G # dmsetup table gfs-test 0 83886080 linear 254:3 384 That is, the test LV starts at sector number 384. However, dumping the start of the PV gives the output below, which has a gfs signatures at sector 9, 11, 13, 16 and 18, then lots of zeroes, and finally the file system name in sector 512. It other words, the first 128 sectors of the LV are pure zeros. I don't mind that the least, but what are thos gfs strings at the start of the PV? Maybe some stray data from previous mkfs attempts? # dd if=/dev/mapper/360060160861611005c574c2126c7db11 bs=512 count=513 2>/dev/null | od -Ad -c 0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0000512 L A B E L O N E 001 \0 \0 \0 \0 \0 \0 \0 0000528 223 3 025 220 \0 \0 \0 L V M 2 0 0 1 0000544 l O d B 3 C u T w M H s 3 f x N 0000560 9 J U o L y R n C J v E Q l D G 0000576 \0 \0 375 377 1 \0 \0 \0 \0 \0 003 \0 \0 \0 \0 \0 0000592 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000608 \0 \0 \0 \0 \0 \0 \0 \0 \0 020 \0 \0 \0 \0 \0 \0 0000624 \0 360 002 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000640 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0004096 \b 353 330 235 L V M 2 x [ 5 A % r 0004112 0 N * > 001 \0 \0 \0 \0 020 \0 \0 \0 \0 \0 \0 0004128 \0 360 002 \0 \0 \0 \0 \0 \0 024 \0 \0 \0 \0 \0 \0 0004144 ( 004 \0 \0 \0 \0 \0 \0 255 365 W 035 \0 \0 \0 \0 0004160 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0004608 g f s { \n i d = " F 3 7 z 0004624 e 3 - g q r 1 - G 3 6 H - s f P 0004640 A - W c A W - m U i B - 0 4 O G 0004656 k V " \n s e q n o = 2 \n s t 0004672 a t u s = [ " R E S I Z E A 0004688 B L E " , " R E A D " , " W 0004704 R I T E " , " C L U S T E R E 0004720 D " ] \n e x t e n t _ s i z e 0004736 = 8 1 9 2 \n m a x _ l v = 0004752 0 \n m a x _ p v = 0 \n \n p h 0004768 y s i c a l _ v o l u m e s { 0004784 \n \n p v 0 { \n i d = " l O 0004800 d B 3 C - u T w M - H s 3 f - x 0004816 N 9 J - U o L y - R n C J - v E 0004832 Q l D G " \n d e v i c e = " 0004848 / d e v / d m - 3 " \n \n s t a t 0004864 u s = [ " A L L O C A T A B 0004880 L E " ] \n p e _ s t a r t = 0004896 3 8 4 \n p e _ c o u n t = 5 0004912 1 1 9 9 \n } \n } \n \n } \n # G e 0004928 n e r a t e d b y L V M 2 : 0004944 F r i M a r 2 0 3 : 2 0004960 3 : 4 6 2 0 0 7 \n \n c o n t e 0004976 n t s = " T e x t F o r m 0004992 a t V o l u m e G r o u p " 0005008 \n v e r s i o n = 1 \n \n d e 0005024 s c r i p t i o n = " " \n \n 0005040 c r e a t i o n _ h o s t = 0005056 " r s 2 1 . l v s . i i f . h u 0005072 " \t # L i n u x r s 2 1 . l 0005088 v s . i i f . h u 2 . 6 . 1 8 0005104 - 4 - 6 8 6 # 1 S M P W e 0005120 d F e b 2 1 1 6 : 0 6 : 5 0005136 4 U T C 2 0 0 7 i 6 8 6 \n 0005152 c r e a t i o n _ t i m e = 0005168 1 1 7 2 8 0 2 2 2 6 \t # F r i 0005184 M a r 2 0 3 : 2 3 : 4 6 0005200 2 0 0 7 \n \n \0 \0 \0 \0 \0 \0 \0 \0 \0 0005216 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0005632 g f s { \n i d = " F 3 7 z 0005648 e 3 - g q r 1 - G 3 6 H - s f P 0005664 A - W c A W - m U i B - 0 4 O G 0005680 k V " \n s e q n o = 3 \n s t 0005696 a t u s = [ " R E S I Z E A 0005712 B L E " , " R E A D " , " W 0005728 R I T E " , " C L U S T E R E 0005744 D " ] \n e x t e n t _ s i z e 0005760 = 8 1 9 2 \n m a x _ l v = 0005776 0 \n m a x _ p v = 0 \n \n p h 0005792 y s i c a l _ v o l u m e s { 0005808 \n \n p v 0 { \n i d = " l O 0005824 d B 3 C - u T w M - H s 3 f - x 0005840 N 9 J - U o L y - R n C J - v E 0005856 Q l D G " \n d e v i c e = " 0005872 / d e v / d m - 3 " \n \n s t a t 0005888 u s = [ " A L L O C A T A B 0005904 L E " ] \n p e _ s t a r t = 0005920 3 8 4 \n p e _ c o u n t = 5 0005936 1 1 9 9 \n } \n } \n \n l o g i c a 0005952 l _ v o l u m e s { \n \n t e s 0005968 t { \n i d = " p Q C B 2 M 0005984 - J 1 6 3 - f 1 o b - J s r I - 0006000 l q I V - 2 i j Q - 4 j b m R o 0006016 " \n s t a t u s = [ " R E A 0006032 D " , " W R I T E " , " V I 0006048 S I B L E " ] \n s e g m e n t _ 0006064 c o u n t = 1 \n \n s e g m e 0006080 n t 1 { \n s t a r t _ e x t e 0006096 n t = 0 \n e x t e n t _ c o 0006112 u n t = 1 0 2 4 0 \n \n t y p 0006128 e = " s t r i p e d " \n s t 0006144 r i p e _ c o u n t = 1 \t # 0006160 l i n e a r \n \n s t r i p e s 0006176 = [ \n " p v 0 " , 0 \n ] \n 0006192 } \n } \n } \n } \n # G e n e r a 0006208 t e d b y L V M 2 : F r i 0006224 M a r 2 0 3 : 2 6 : 0 4 0006240 2 0 0 7 \n \n c o n t e n t s 0006256 = " T e x t F o r m a t V 0006272 o l u m e G r o u p " \n v e r 0006288 s i o n = 1 \n \n d e s c r i 0006304 p t i o n = " " \n \n c r e a 0006320 t i o n _ h o s t = " r s 2 0006336 1 . l v s . i i f . h u " \t # 0006352 L i n u x r s 2 1 . l v s . i 0006368 i f . h u 2 . 6 . 1 8 - 4 - 6 0006384 8 6 # 1 S M P W e d F e 0006400 b 2 1 1 6 : 0 6 : 5 4 U T 0006416 C 2 0 0 7 i 6 8 6 \n c r e a 0006432 t i o n _ t i m e = 1 1 7 2 0006448 8 0 2 3 6 4 \t # F r i M a r 0006464 2 0 3 : 2 6 : 0 4 2 0 0 0006480 7 \n \n \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0006496 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0006656 g f s { \n i d = " F 3 7 z 0006672 e 3 - g q r 1 - G 3 6 H - s f P 0006688 A - W c A W - m U i B - 0 4 O G 0006704 k V " \n s e q n o = 4 \n s t 0006720 a t u s = [ " R E S I Z E A 0006736 B L E " , " R E A D " , " W 0006752 R I T E " , " C L U S T E R E 0006768 D " ] \n e x t e n t _ s i z e 0006784 = 8 1 9 2 \n m a x _ l v = 0006800 0 \n m a x _ p v = 0 \n \n p h 0006816 y s i c a l _ v o l u m e s { 0006832 \n \n p v 0 { \n i d = " l O 0006848 d B 3 C - u T w M - H s 3 f - x 0006864 N 9 J - U o L y - R n C J - v E 0006880 Q l D G " \n d e v i c e = " 0006896 / d e v / d m - 2 " \n \n s t a t 0006912 u s = [ " A L L O C A T A B 0006928 L E " ] \n p e _ s t a r t = 0006944 3 8 4 \n p e _ c o u n t = 5 0006960 1 1 9 9 \n } \n } \n \n l o g i c a 0006976 l _ v o l u m e s { \n \n t e s 0006992 t { \n i d = " p Q C B 2 M 0007008 - J 1 6 3 - f 1 o b - J s r I - 0007024 l q I V - 2 i j Q - 4 j b m R o 0007040 " \n s t a t u s = [ " R E A 0007056 D " , " W R I T E " , " V I 0007072 S I B L E " ] \n s e g m e n t _ 0007088 c o u n t = 1 \n \n s e g m e 0007104 n t 1 { \n s t a r t _ e x t e 0007120 n t = 0 \n e x t e n t _ c o 0007136 u n t = 1 0 2 4 0 \n \n t y p 0007152 e = " s t r i p e d " \n s t 0007168 r i p e _ c o u n t = 1 \t # 0007184 l i n e a r \n \n s t r i p e s 0007200 = [ \n " p v 0 " , 0 \n ] \n 0007216 } \n } \n \n t 2 { \n i d = " 0007232 r j r 4 9 d - t E T G - j f O I 0007248 - Q F G u - L q H j - z p r d - 0007264 9 9 q K 7 E " \n s t a t u s = 0007280 [ " R E A D " , " W R I T E 0007296 " , " V I S I B L E " ] \n s e 0007312 g m e n t _ c o u n t = 1 \n 0007328 \n s e g m e n t 1 { \n s t a r 0007344 t _ e x t e n t = 0 \n e x t 0007360 e n t _ c o u n t = 2 5 6 \n 0007376 \n t y p e = " s t r i p e d 0007392 " \n s t r i p e _ c o u n t = 0007408 1 \t # l i n e a r \n \n s t r 0007424 i p e s = [ \n " p v 0 " , 0007440 1 0 2 4 0 \n ] \n } \n } \n } \n } \n 0007456 # G e n e r a t e d b y L 0007472 V M 2 : T u e M a r 6 0007488 0 1 : 3 8 : 2 1 2 0 0 7 \n \n c 0007504 o n t e n t s = " T e x t 0007520 F o r m a t V o l u m e G r 0007536 o u p " \n v e r s i o n = 1 0007552 \n \n d e s c r i p t i o n = 0007568 " " \n \n c r e a t i o n _ h o s 0007584 t = " r s 2 2 " \t # L i n 0007600 u x r s 2 2 2 . 6 . 1 8 - 4 0007616 - 6 8 6 # 1 S M P W e d 0007632 F e b 2 1 1 6 : 0 6 : 5 4 0007648 U T C 2 0 0 7 i 6 8 6 \n c r 0007664 e a t i o n _ t i m e = 1 1 0007680 7 3 1 4 1 5 0 1 \t # T u e M 0007696 a r 6 0 1 : 3 8 : 2 1 2 0007712 0 0 7 \n \n \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0007728 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0008192 g f s { \n i d = " F 3 7 z 0008208 e 3 - g q r 1 - G 3 6 H - s f P 0008224 A - W c A W - m U i B - 0 4 O G 0008240 k V " \n s e q n o = 5 \n s t 0008256 a t u s = [ " R E S I Z E A 0008272 B L E " , " R E A D " , " W 0008288 R I T E " , " C L U S T E R E 0008304 D " ] \n e x t e n t _ s i z e 0008320 = 8 1 9 2 \n m a x _ l v = 0008336 0 \n m a x _ p v = 0 \n \n p h 0008352 y s i c a l _ v o l u m e s { 0008368 \n \n p v 0 { \n i d = " l O 0008384 d B 3 C - u T w M - H s 3 f - x 0008400 N 9 J - U o L y - R n C J - v E 0008416 Q l D G " \n d e v i c e = " 0008432 / d e v / d m - 2 " \n \n s t a t 0008448 u s = [ " A L L O C A T A B 0008464 L E " ] \n p e _ s t a r t = 0008480 3 8 4 \n p e _ c o u n t = 5 0008496 1 1 9 9 \n } \n } \n \n l o g i c a 0008512 l _ v o l u m e s { \n \n t e s 0008528 t { \n i d = " p Q C B 2 M 0008544 - J 1 6 3 - f 1 o b - J s r I - 0008560 l q I V - 2 i j Q - 4 j b m R o 0008576 " \n s t a t u s = [ " R E A 0008592 D " , " W R I T E " , " V I 0008608 S I B L E " ] \n s e g m e n t _ 0008624 c o u n t = 1 \n \n s e g m e 0008640 n t 1 { \n s t a r t _ e x t e 0008656 n t = 0 \n e x t e n t _ c o 0008672 u n t = 1 0 2 4 0 \n \n t y p 0008688 e = " s t r i p e d " \n s t 0008704 r i p e _ c o u n t = 1 \t # 0008720 l i n e a r \n \n s t r i p e s 0008736 = [ \n " p v 0 " , 0 \n ] \n 0008752 } \n } \n } \n } \n # G e n e r a 0008768 t e d b y L V M 2 : T u e 0008784 M a r 6 0 1 : 3 8 : 5 5 0008800 2 0 0 7 \n \n c o n t e n t s 0008816 = " T e x t F o r m a t V 0008832 o l u m e G r o u p " \n v e r 0008848 s i o n = 1 \n \n d e s c r i 0008864 p t i o n = " " \n \n c r e a 0008880 t i o n _ h o s t = " r s 2 0008896 1 " \t # L i n u x r s 2 1 0008912 2 . 6 . 1 8 - 4 - 6 8 6 # 1 0008928 S M P W e d F e b 2 1 1 0008944 6 : 0 6 : 5 4 U T C 2 0 0 7 0008960 i 6 8 6 \n c r e a t i o n _ t 0008976 i m e = 1 1 7 3 1 4 1 5 3 5 0008992 \t # T u e M a r 6 0 1 0009008 : 3 8 : 5 5 2 0 0 7 \n \n \0 \0 \0 0009024 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0009216 g f s { \n i d = " F 3 7 z 0009232 e 3 - g q r 1 - G 3 6 H - s f P 0009248 A - W c A W - m U i B - 0 4 O G 0009264 k V " \n s e q n o = 6 \n s t 0009280 a t u s = [ " R E S I Z E A 0009296 B L E " , " R E A D " , " W 0009312 R I T E " , " C L U S T E R E 0009328 D " ] \n e x t e n t _ s i z e 0009344 = 8 1 9 2 \n m a x _ l v = 0009360 0 \n m a x _ p v = 0 \n \n p h 0009376 y s i c a l _ v o l u m e s { 0009392 \n \n p v 0 { \n i d = " l O 0009408 d B 3 C - u T w M - H s 3 f - x 0009424 N 9 J - U o L y - R n C J - v E 0009440 Q l D G " \n d e v i c e = " 0009456 / d e v / d m - 2 " \n \n s t a t 0009472 u s = [ " A L L O C A T A B 0009488 L E " ] \n p e _ s t a r t = 0009504 3 8 4 \n p e _ c o u n t = 5 0009520 1 1 9 9 \n } \n } \n \n l o g i c a 0009536 l _ v o l u m e s { \n \n t e s 0009552 t { \n i d = " p Q C B 2 M 0009568 - J 1 6 3 - f 1 o b - J s r I - 0009584 l q I V - 2 i j Q - 4 j b m R o 0009600 " \n s t a t u s = [ " R E A 0009616 D " , " W R I T E " , " V I 0009632 S I B L E " ] \n s e g m e n t _ 0009648 c o u n t = 1 \n \n s e g m e 0009664 n t 1 { \n s t a r t _ e x t e 0009680 n t = 0 \n e x t e n t _ c o 0009696 u n t = 1 0 2 4 0 \n \n t y p 0009712 e = " s t r i p e d " \n s t 0009728 r i p e _ c o u n t = 1 \t # 0009744 l i n e a r \n \n s t r i p e s 0009760 = [ \n " p v 0 " , 0 \n ] \n 0009776 } \n } \n \n x f s { \n i d = 0009792 " i h 2 d I 7 - f 7 E B - g k c 0009808 z - C K F V - 0 O H p - 9 B S Z 0009824 - 1 A M 6 f u " \n s t a t u s 0009840 = [ " R E A D " , " W R I T 0009856 E " , " V I S I B L E " ] \n s 0009872 e g m e n t _ c o u n t = 1 0009888 \n \n s e g m e n t 1 { \n s t a 0009904 r t _ e x t e n t = 0 \n e x 0009920 t e n t _ c o u n t = 1 2 8 0009936 0 \n \n t y p e = " s t r i p 0009952 e d " \n s t r i p e _ c o u n t 0009968 = 1 \t # l i n e a r \n \n s 0009984 t r i p e s = [ \n " p v 0 " 0010000 , 1 0 2 4 0 \n ] \n } \n } \n } \n 0010016 } \n # G e n e r a t e d b y 0010032 L V M 2 : T h u M a r 2 0010048 2 1 6 : 3 2 : 1 6 2 0 0 7 \n 0010064 \n c o n t e n t s = " T e x 0010080 t F o r m a t V o l u m e 0010096 G r o u p " \n v e r s i o n = 0010112 1 \n \n d e s c r i p t i o n 0010128 = " " \n \n c r e a t i o n _ h 0010144 o s t = " r s 2 1 " \t # L 0010160 i n u x r s 2 1 2 . 6 . 1 8 0010176 - 4 - 6 8 6 # 1 S M P W e 0010192 d F e b 2 1 1 6 : 0 6 : 5 0010208 4 U T C 2 0 0 7 i 6 8 6 \n 0010224 c r e a t i o n _ t i m e = 0010240 1 1 7 4 5 7 7 5 3 6 \t # T h u 0010256 M a r 2 2 1 6 : 3 2 : 1 6 0010272 2 0 0 7 \n \n \0 \0 \0 \0 \0 \0 \0 \0 \0 0010288 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0262144 001 026 031 p \0 \0 \0 001 \0 \0 \0 \0 \0 \0 \0 \0 0262160 \0 \0 \0 d \0 \0 \0 \0 \0 \0 005 035 \0 \0 005 y 0262176 \0 \0 \0 \0 \0 \0 020 \0 \0 \0 \0 \f \0 \0 \0 020 0262192 \0 \0 \0 \0 \0 \0 \0 026 \0 \0 \0 \0 \0 \0 \0 026 0262208 \0 \0 \0 \0 \0 \0 \0 027 \0 \0 \0 \0 \0 \0 \0 027 0262224 \0 \0 \0 \0 \0 \0 \0 032 \0 \0 \0 \0 \0 \0 \0 032 0262240 l o c k _ d l m \0 \0 \0 \0 \0 \0 \0 \0 0262256 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0262304 p i l o t : t e s t \0 \0 \0 \0 \0 \0 0262320 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0262368 \0 \0 \0 \0 \0 \0 \0 030 \0 \0 \0 \0 \0 \0 \0 030 0262384 \0 \0 \0 \0 \0 \0 \0 031 \0 \0 \0 \0 \0 \0 \0 031 0262400 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 * 0262656 -- Linux-cluster mailing list Linux-cluster@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/linux-cluster