RE: raid6 on freebsd7 only showing 61GB instead of 4TB
Oliver Howe wrote: > I bought a new storage server and installed freebsd7 onto it. > it came with two raid partitions, one of 32GB which i used > for the o/s and one of 4.7TB which i am planning to use as a > nfs partition. everything went fine during the install, fdisk > said that there was 4.7TB on the second partition which i > labelled "/export". but when the machine booted up and i did > df -h it said that that partition only has 61GB and not 4.7TB As others have pointed out, fdisk is not able to handle partitions this big. You need to: 1. umount /export 2. dd if=/dev/zero of=/dev/da1 bs=64k count=1 3. gpt create /dev/da1 4. gpt add /dev/da1 5. newfs -O2 -U /dev/da1p1 6. edit your /etc/fstab and change /dev/da1s1d to /dev/da1p1 7. mount /export 8. be happy! The GENERIC kernel comes with GEOM_PART_GPT support so there is no need to load any kernel modules or recompile your kernel to get this to work. (Step #2 above is probably overkill. It erases the old disklabel so that your /dev/da1?? devices disappear.) Beware that running fsck on a 4.7TB partition will take a REALLY long time. If you run FreeBSD 7 in 64 bit mode (amd64), and you really should with 16 GB of memory, then I would recommend using ZFS instead of UFS. For ZFS you would do something like this: 1. umount /export 2. dd if=/dev/zero of=/dev/da1 bs=64k count=1 3. zpool create tank /dev/da1 4. edit /boot/loader.conf and add something like this: vm.kmem_size="1024M" vm.kmem_size_max="1024M" vfs.zfs.arc_max="512M" vfs.zfs.prefetch_disable=1 5. edit /etc/rc.conf and add zfs_enable="YES" 6. reboot 7. be happy! (With 16 GB memory you can probably use larger values for slightly better performance in step #4 above.) /Daniel Eriksson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: raid6 on freebsd7 only showing 61GB instead of 4TB
On Thursday 15 May 2008, Oliver Howe wrote: > I bought a new storage server and installed freebsd7 onto it. it came with > two raid partitions, one of 32GB which i used for the o/s and one of 4.7TB > which i am planning to use as a nfs partition. everything went fine during > the install, fdisk said that there was 4.7TB on the second partition which > i labelled "/export". but when the machine booted up and i did df -h it > said that that partition only has 61GB and not 4.7TB > > $ uname -a > FreeBSD pmstorage3.uk1.bibliotech.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: > Sun Feb 24 19:59:52 UTC 2008 > [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 $ > > $ df -h > Filesystem SizeUsed Avail Capacity Mounted on > /dev/da0s1a496M128M328M28%/ > devfs 1.0K1.0K 0B 100%/dev > /dev/da1s1d 61G4.0K 56G 0%/export > /dev/da0s1e496M 12K456M 0%/tmp > /dev/da0s1f 22G515M 20G 2%/usr > /dev/da0s1d4.1G1.3M3.8G 0%/var > $ > > > server details are > > CyberServe 38512 > 3U Chassis 16 x Hot Swap HDD, 5.25 Slim line CD, FDD Redundant 700 Watt > PSU X7 DBE Main Board > 1 x 5420 2.5GHz Intel Xeon Low power Processor 2 x 6Mb 1333 FSB > 16 GB DDR Memory ( Low Powered Ram) > 3 Ware 16 Port Hardware RAID Controller, 0,1,0+1,5,50 & 6 > 16 x WD 500 Gb SATA HDDs Green Drives (Raid 6 System Drives Total Usable > Volume size 4.79 TB ) 2xGbE LAN ports, > > > > does anyone know why this is? > > > thanks, > > oliver You cannot use fdisk slices ("partitions") with disks over 2TB. Use of GPT is recommended. See gpt(8) and: http://www.freebsd.org/projects/bigdisk/index.html Another way would be to simply newfs/mount /dev/ad1 instead (without partitioning). -- Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: raid6 on freebsd7 only showing 61GB instead of 4TB
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 Oliver Howe wrote: > > I bought a new storage server and installed freebsd7 onto it. it came > with two raid partitions, one of 32GB which i used for the o/s and > one of 4.7TB which i am planning to use as a nfs partition. > everything went fine during the install, fdisk said that there was > 4.7TB on the second partition which i labelled "/export". but when > the machine booted up and i did df -h it said that that partition > only has 61GB and not 4.7TB fdisk partitioning only supports up to 2TB I believe. For larger filesystems you'll need to use gpt(8) instead -- this isn't possible to set up via sysinstall and it is still very much a work in progress. Your other alternatives are to divide your 4TB area into sub-2TB partitions, or to use zfs(1M). There are pros and cons to all of these solutions which have been discussed at length on various @freebsd.org mailing lists. Cheers Matthew - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkgsIpkACgkQ3jDkPpsZ+Vb7KQCdGO8U+xcFsw8amiFkspPOUpCw gfIAnidlR/NtdBbOreBVB7jgv+MHP6pm =CPFB -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
raid6 on freebsd7 only showing 61GB instead of 4TB
I bought a new storage server and installed freebsd7 onto it. it came with two raid partitions, one of 32GB which i used for the o/s and one of 4.7TB which i am planning to use as a nfs partition. everything went fine during the install, fdisk said that there was 4.7TB on the second partition which i labelled "/export". but when the machine booted up and i did df -h it said that that partition only has 61GB and not 4.7TB $ uname -a FreeBSD pmstorage3.uk1.bibliotech.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386 $ $ df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/da0s1a496M128M328M28%/ devfs 1.0K1.0K 0B 100%/dev /dev/da1s1d 61G4.0K 56G 0%/export /dev/da0s1e496M 12K456M 0%/tmp /dev/da0s1f 22G515M 20G 2%/usr /dev/da0s1d4.1G1.3M3.8G 0%/var $ server details are CyberServe 38512 3U Chassis 16 x Hot Swap HDD, 5.25 Slim line CD, FDD Redundant 700 Watt PSU X7 DBE Main Board 1 x 5420 2.5GHz Intel Xeon Low power Processor 2 x 6Mb 1333 FSB 16 GB DDR Memory ( Low Powered Ram) 3 Ware 16 Port Hardware RAID Controller, 0,1,0+1,5,50 & 6 16 x WD 500 Gb SATA HDDs Green Drives (Raid 6 System Drives Total Usable Volume size 4.79 TB ) 2xGbE LAN ports, does anyone know why this is? thanks, oliver -- Confidentiality Notice: This email is confidential and may also be privileged. If you are not the intended recipient, please notify the sender IMMEDIATELY; you should not copy the email or use it for any purpose or disclose its contents to any other person. General Statement: Any statements made, or intentions expressed in this communication, may not necessarily reflect the view of Spider Networks, that no content herein may be held binding upon Spider Networks or any associate or any associated company unless confirmed by the issuance of a formal contractual document or purchase order. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"