Re: [expert] Mount problem on XFS partition
On Thursday 21 November 2002 12:14 am, Stefano Pogliani wrote: partition (some special commands, some special maintenance etc) or, for the sake of using it, it is just like an ext2 one ? I'd definitely become familiar with the xfsprogs-installed applications. xfs_repair is particularly handy hth -- john in sydney Mandrake Linux 9.0, Kernel version: 2.4.19-16mdk OpenPGP key available on www.keyserver.net 1024D/3E4A902F B38A AB0F 8658 D9E1 4900 3050 08FA D4FA 3E4A 902F Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Mount problem on XFS partition
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefano Pogliani wrote on Wed, Nov 20, 2002 at 02:14:43PM +0100 : Is there anything special I need to know in order to administer an XFS partition (some special commands, some special maintenance etc) or, for the sake of using it, it is just like an ext2 one ? There is one known bug with XFS. Apparently Mandrake grabbed one of the public XFS patches at precisely the wrong time when there was a bug in it. It is only present when running the enterprise kernel with XFS partitions that I know of. If you're using the regular or smp or secure kernels, it probably will work just fine. Blue skies... Todd - -- ...and I will strike down upon thee with great vengeance and furious anger, those who attempt to poison and destroy my binaries, and you will know my name is root, when I lay my vengeance upon thee. Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.20-0.2mdk -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE93V4Olp7v05cW2woRAllDAJ9siOTD8TqWTSAbj8DCQPhhpWO0VACfU111 svZTexOLUHf+gvhIZ9ym3xg= =oZz2 -END PGP SIGNATURE- Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Mount problem on XFS partition
I think I certainly need some more help here. 1. You're not actually copying to the xfs filesystem, only to the directory /mnt/backup. Does this mean that there is some other step to be done after formatting an XFS partition? What does it mean writeing to a directory without copying to a filesystem ? 2. My /etc/fstab looks this way /dev/hda5 /mnt/backup xfs defaults 1 2 3. The disk is formatted but no filesystem is created. I've not played much with XFS, but on most other filesystems the formatting and creation of the actual filesystem are separate steps. How would I create a filesystem on the XFS formatted partition? 4. Your kernel does not support XFS or the module is not loaded. This would be unusual unless you've modified your kernel. I did not modify my kernel. I am running MDK 8.2 standard (download edition) 5. Thanks a lot for your help. Best regards /stefano [EMAIL PROTECTED] wrote: On Tue, 19 Nov 2002, Stefano Pogliani wrote: I just tried today to create an XFS partition on a new hard drive. It was the first time I was playing with Journalized partitions, so I may have done something strange. I used diskdrake and created an XFS partition. I formatted it and then I rebooted (as I was asked to do). On rebooting I noticed an error message when trying to mount the newly created partition. I did not make that much attention. Then when issuing the df -Tk command (to just see my brand new first-time XFS partition listed) I did not see it. Well, I thought, maybe there is something I am missing so I verified in /etc/fstab and the partition is listed correctly there. I can copy files in this partition (mount point is /mnt/backup) and all went well with the copy (and subsequent ls command). You're not actually copying to the xfs filesystem, only to the directory /mnt/backup. So, I decided to MOUNT that partition to verify if mounting would make the partition visible by the df -Tk command and, surprise, I saw the same error message I saw during boot: [root@scarlet root]# mount /mnt/backup/ mount: wrong fs type, bad option, bad superblock on /dev/hda5, or too many mounted file systems What does your /etc/fstab show? (/dev/hd5 is where the /mnt/backup XFS partition is created). Any idea of what I did wrong? This was an experiment: I wanted to make sure I was able to do something with Journalized partitions before moving to MDK 9.0 where I am planning to use journalized partitions everywhere. Thanks a lot for any hint. It could be a few things: The disk is formatted but no filesystem is created. I've not played much with XFS, but on most other filesystems the formatting and creation of the actual filesystem are separate steps. Your /etc/fstab has an incorrect entry for the mount. Your kernel does not support XFS or the module is not loaded. This would be unusual unless you've modified your kernel. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com smime.p7s Description: S/MIME Cryptographic Signature
Re: [expert] Mount problem on XFS partition
Stefano Pogliani wrote: I think I certainly need some more help here. 1. You're not actually copying to the xfs filesystem, only to the directory /mnt/backup. Does this mean that there is some other step to be done after formatting an XFS partition? What does it mean writeing to a directory without copying to a If the partition isn't mounted your /mnt/backup is a directory in the parent filesystem filesystem ? 2. My /etc/fstab looks this way /dev/hda5 /mnt/backup xfs defaults 1 2 ok, that's correct 3. The disk is formatted but no filesystem is created. I've not played much with XFS, but on most other filesystems the formatting and creation of the actual filesystem are separate steps. How would I create a filesystem on the XFS formatted partition? mkfs.xfs /dev/hda5 (see also man mkfs.xfs) 4. Your kernel does not support XFS or the module is not loaded. This would be unusual unless you've modified your kernel. I did not modify my kernel. I am running MDK 8.2 standard (download edition) I remember I had the same problem (couldn't create a new xfs partition) with diskdrake under 8.2. Got into the habit of making them manually so I didn't bother to see if newer versions of diskdrake fixed that. Bye -- Luca Olivetti Note.- This message reached you today, it may not tomorrow if you are using MAPS services. They arbitrarily include in their lists IP addresses not related in any way to spam, and in so doing are disrupting Internet connectivity. Please stop supporting them. See http://slashdot.org/article.pl?sid=01/05/21/1944247 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Mount problem on XFS partition
I do not have the command: mkfs.xfs on my system. Is it in some RPM I did not install ? /stefano Luca Olivetti wrote: Stefano Pogliani wrote: I think I certainly need some more help here. 1. You're not actually copying to the xfs filesystem, only to the directory /mnt/backup. Does this mean that there is some other step to be done after formatting an XFS partition? What does it mean writeing to a directory without copying to a If the partition isn't mounted your /mnt/backup is a directory in the parent filesystem filesystem ? 2. My /etc/fstab looks this way /dev/hda5 /mnt/backup xfs defaults 1 2 ok, that's correct 3. The disk is formatted but no filesystem is created. I've not played much with XFS, but on most other filesystems the formatting and creation of the actual filesystem are separate steps. How would I create a filesystem on the XFS formatted partition? mkfs.xfs /dev/hda5 (see also man mkfs.xfs) 4. Your kernel does not support XFS or the module is not loaded. This would be unusual unless you've modified your kernel. I did not modify my kernel. I am running MDK 8.2 standard (download edition) I remember I had the same problem (couldn't create a new xfs partition) with diskdrake under 8.2. Got into the habit of making them manually so I didn't bother to see if newer versions of diskdrake fixed that. Bye Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com smime.p7s Description: S/MIME Cryptographic Signature
Re: [expert] Mount problem on XFS partition
Stefano Pogliani wrote: I do not have the command: mkfs.xfs on my system. Is it in some RPM I did not install ? # rpm -qf $(which mkfs.xfs) xfsprogs-2.0.0-1mdk (this is under mdk 8.2). If you don't have it installed that explains why you couldn't create an xfs partition. Bye -- Luca Olivetti Note.- This message reached you today, it may not tomorrow if you are using MAPS services. They arbitrarily include in their lists IP addresses not related in any way to spam, and in so doing are disrupting Internet connectivity. Please stop supporting them. See http://slashdot.org/article.pl?sid=01/05/21/1944247 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Mount problem on XFS partition
Thanks a lot indeed. Now it seems to work ! Is there anything special I need to know in order to administer an XFS partition (some special commands, some special maintenance etc) or, for the sake of using it, it is just like an ext2 one ? Best regards and thanks a lot /stefano Luca Olivetti wrote: Stefano Pogliani wrote: I do not have the command: mkfs.xfs on my system. Is it in some RPM I did not install ? # rpm -qf $(which mkfs.xfs) xfsprogs-2.0.0-1mdk (this is under mdk 8.2). If you don't have it installed that explains why you couldn't create an xfs partition. Bye Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com smime.p7s Description: S/MIME Cryptographic Signature
Re: [expert] Mount problem on XFS partition
Stefano Pogliani wrote: Thanks a lot indeed. Now it seems to work ! Is there anything special I need to know in order to administer an XFS partition (some special commands, some special maintenance etc) or, for the sake of using it, it is just like an ext2 one ? Look at the other programs in xfsprogs. You should also install these packages: xfsdump acl (this last one to manage ACLs, but keep in mind that other utilities --fileutils, tar--, aren't patched to support ACLs). Take a look also at http://oss.sgi.com/projects/xfs/ Bye -- Luca Olivetti Note.- This message reached you today, it may not tomorrow if you are using MAPS services. They arbitrarily include in their lists IP addresses not related in any way to spam, and in so doing are disrupting Internet connectivity. Please stop supporting them. See http://slashdot.org/article.pl?sid=01/05/21/1944247 Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Mount problem on XFS partition
On Wed, 20 Nov 2002, Stefano Pogliani wrote: What does it mean writeing to a directory without copying to a filesystem ? I see that Luca has answered your questions -- just elaborating a little here: A mount point is nothing more than an empty directory created by mkdir. When you mount a filesystem, whether on a HD, floppy, or CD, its hierarchy shows up under the mount point. Copying files to this mount point then copies files to the disk. If you unmount the filesystem then the directory is still there. For example, if you have a system setup in this way: / hda1 /home hda2 swap hda4 /home and /export are mounted filesystems under /. If you do an ls of /home, you'd see somethng like: drwx--6 klowelocal 401 Oct 7 21:51 klowe drwx--6 robert remote299 Feb 3 2001 robert drwx--6 wperez remote299 Feb 3 2001 wperez If you were then to unmount /home, ls would return nothing, *unless* you happen to have copied files there when the hda2 partition was unmounted. E.g.: $ mkdir /nothing $ touch /nothing/emptyfile $ ls /nothing emptyfile $ umount /home $ mount -t ext2 /dev/hda2 /nothing $ ls /nothing drwx--6 klowelocal 401 Oct 7 21:51 klowe drwx--6 robert remote299 Feb 3 2001 robert drwx--6 wperez remote299 Feb 3 2001 wperez In this example, emptyfile was create on the hda1 partition. The mount points do not need to be on the root filesystem. You can create mount points almost anywhere that has a real filesystem (i.e., probably not /proc -- though I admit I've never tried). So you could create a /home/external that's mounted on a separate disk. The mount point is created on hda2 in this example, but the mounted filesystem could be anywhere. This is what allows rescue disks to work. They boot up, create their own /, /usr, /lib, etc.., but then mount the damaged filesystems somewhere on their hierarchy. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] Mount problem on XFS partition
I just tried today to create an XFS partition on a new hard drive. It was the first time I was playing with Journalized partitions, so I may have done something strange. I used diskdrake and created an XFS partition. I formatted it and then I rebooted (as I was asked to do). On rebooting I noticed an error message when trying to mount the newly created partition. I did not make that much attention. Then when issuing the df -Tk command (to just see my brand new first-time XFS partition listed) I did not see it. Well, I thought, maybe there is something I am missing so I verified in /etc/fstab and the partition is listed correctly there. I can copy files in this partition (mount point is /mnt/backup) and all went well with the copy (and subsequent ls command). So, I decided to MOUNT that partition to verify if mounting would make the partition visible by the df -Tk command and, surprise, I saw the same error message I saw during boot: [root@scarlet root]# mount /mnt/backup/ mount: wrong fs type, bad option, bad superblock on /dev/hda5, or too many mounted file systems (/dev/hd5 is where the /mnt/backup XFS partition is created). Any idea of what I did wrong? This was an experiment: I wanted to make sure I was able to do something with Journalized partitions before moving to MDK 9.0 where I am planning to use journalized partitions everywhere. Thanks a lot for any hint. Best regards /stefano smime.p7s Description: S/MIME Cryptographic Signature
Re: [expert] Mount problem on XFS partition
On Tue, 19 Nov 2002, Stefano Pogliani wrote: I just tried today to create an XFS partition on a new hard drive. It was the first time I was playing with Journalized partitions, so I may have done something strange. I used diskdrake and created an XFS partition. I formatted it and then I rebooted (as I was asked to do). On rebooting I noticed an error message when trying to mount the newly created partition. I did not make that much attention. Then when issuing the df -Tk command (to just see my brand new first-time XFS partition listed) I did not see it. Well, I thought, maybe there is something I am missing so I verified in /etc/fstab and the partition is listed correctly there. I can copy files in this partition (mount point is /mnt/backup) and all went well with the copy (and subsequent ls command). You're not actually copying to the xfs filesystem, only to the directory /mnt/backup. So, I decided to MOUNT that partition to verify if mounting would make the partition visible by the df -Tk command and, surprise, I saw the same error message I saw during boot: [root@scarlet root]# mount /mnt/backup/ mount: wrong fs type, bad option, bad superblock on /dev/hda5, or too many mounted file systems What does your /etc/fstab show? (/dev/hd5 is where the /mnt/backup XFS partition is created). Any idea of what I did wrong? This was an experiment: I wanted to make sure I was able to do something with Journalized partitions before moving to MDK 9.0 where I am planning to use journalized partitions everywhere. Thanks a lot for any hint. It could be a few things: The disk is formatted but no filesystem is created. I've not played much with XFS, but on most other filesystems the formatting and creation of the actual filesystem are separate steps. Your /etc/fstab has an incorrect entry for the mount. Your kernel does not support XFS or the module is not loaded. This would be unusual unless you've modified your kernel. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com