Re: correct way to setup gmirror on 7.4?

2011-04-28 Thread Edho P Arief
On Thu, Apr 28, 2011 at 4:15 PM, Daniel Kalchev dan...@digsys.bg wrote:


 On 28.04.11 01:30, Freddie Cash wrote:

 gmirror doesn't touch the start of the disk, but saves it's metadata
 in the last sector of the disk, and creates a new GEOM provider that's
 one sector shorter.

 GPT stores it's partition table in the first sector of the disk, and
 saves a backup copy of it in the last sector of the disk.

 This looks like layering issue to me.

 In theory, both gmirror and gpt should work on 'providers'. So if you give
 an gmirrored provider to gpt it should touch the last sector of the gmirror,
 but not the last sector of the disk - and not complain. It should not even
 be able to see the last sector of the real disk.

 Is this hard to fix?


I believe it goes like this

gmX: | gpt |  data   | gpt |

which in actual disk goes like this:

adY: | gpt |  data   | gpt | gmirror |

so geom read gpt in the first sector but doesn't find it in the last sector.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: correct way to setup gmirror on 7.4?

2011-04-28 Thread Edho P Arief
On Thu, Apr 28, 2011 at 9:40 PM, Freddie Cash fjwc...@gmail.com wrote:
 Granted, there may be reasons why it wasn't done like this in the
 beginning, but my non-GEOM programmer's eyes can't see any.

I believe one of the reason is it would prevent conversion from
non-gmirror disk to gmirror one as explained here

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 3TB disc and block alignment

2011-02-17 Thread Edho P Arief
On Thu, Feb 17, 2011 at 6:56 PM, Kurt Jaeger li...@c0mplx.org wrote:
 Hi!

 I have one of the new 3TB drives:

 da0: Hitachi HUA723030ALA640  Fixed Direct Access SCSI-5 device
 da0: 2861588MB (5860533168 512 byte sectors: 255H 63S/T 364801C)

 Now as far as I understand, one can operate it with many 512byte blocks
 or one can try to use the internal 4kbyte blocks.

 How would one do that with FreeBSD ?


...I think it goes like this.

ZFS:
create GPT
# gpart create -s gpt da0
add partition, start at 4k-aligned sector
# gpart add -t freebsd-zfs -b 1024 da0
create NOP device for simulating 4k sector
# gnop create -S 4096 da0p1
create zfs pool and export
# zpool create mydata da0p1.nop
# zpool export mydata
destroy the NOP since it's only needed to set ashift=12 when creating the 
pool
# gnop destroy da0p1.nop
optional, but I use this to ensure the pool imports da0p1, not 
gpt-id/randomgarbage
# dd if=/dev/da0p1 of=/dev/null bs=1M count=1
import back the pool
# zpool import mydata

UFS:

create GPT
# gpart create -s gpt da0
create partition, with start position 4k-aligned
# gpart add -t freebsd-ufs -b 1024 -l mydata da0
default newfs is good enough
# newfs -U /dev/gpt/mydata


corrections welcome.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: How to predict drive number change for 7.3-8.1 upgrade?

2010-09-16 Thread Edho P Arief
On Thu, Sep 16, 2010 at 4:05 PM, Michael Sperber
sper...@deinprogramm.de wrote:

 I just upgraded my desktop system from 7.3 to 8.1, and the main hard
 drive, which was /dev/ad6 before is now /dev/ad10.  Consequently, the
 initial boot failed when trying to mount the root file system from ad6.


doesn't 7.3 have ufs label?



-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Extending your zfs pool with multiple devices

2010-09-02 Thread Edho P Arief
geom_gate - ggated(8)
Not going to be fast though

(sorry for bad reply, mobile gmail sucks)

-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: gpart -b 34 versus gpart -b 1024

2010-07-25 Thread Edho P Arief
On Sun, Jul 25, 2010 at 12:37 PM, Adam Vande More amvandem...@gmail.com wrote:
 On Sat, Jul 24, 2010 at 10:58 PM, Dan Langille d...@langille.org wrote:

       ---Sequential Output ---Sequential Input-- --Random--
       -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
    GB M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU M/sec %CPU  /sec %CPU
    50 110.5 81.0 112.8 15.0  62.8  9.0  72.9 48.5 139.7  9.5   144  0.9

 Here, the results aren't much better either...  am I not aligning this
 partition correctly?  Missing something else?  Or... are they both 4K block
 aligned?


 The alignment doesn't apply to all drives, just the 4k WD's and some ssd's.

 If they were misaligned, you would see a large difference in the tests.  A
 few points one way or other in these is largely meaningless.

 That being said, if I were you I would set -b 2048(1 MB) as the default, the
 amount of space wasted is trivial and your partition will always be
 aligned.  People following your tutorials may have a variety of different
 drives and that setting is safe for all.


shouldn't it start at 2049? Starting at 2048 means it starts at 2048th
logical block which is 512 bytes off from physical block, doesn't it?


-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Using GTP and glabel for ZFS arrays

2010-07-21 Thread Edho P Arief
On Thu, Jul 22, 2010 at 10:15 AM, Dan Langille d...@langille.org wrote:
 glabel label -v disk00 /dev/ad0

 Or, is this more appropriate?

  glabel label -v disk00 /dev/ad0s1


actually it's /dev/ad0p1.

GPT scheme uses p, not s. And yes, that's more appropriate - if you
create zpool on disk00 labeled as ad0 it'll use entire disk, ignoring
the partitioning.


-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: uname(1) does not show system is patched via freebsd-update(8)

2009-12-31 Thread Edho P Arief
2009/12/31 martinko gam...@users.sf.net:
 Hallo,

 The system here seems to be patched yet I do not see the information in
 uname(1) output (see below).  Is this a bug or my error or what ?

 Cheers,

 Martin


only latest patch with updated kernel can be seen with uname. (it
shows kernel version, afterall)

-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: Can't use gpt labels re-importing pool

2009-11-26 Thread Edho P Arief
On Thu, Nov 26, 2009 at 5:29 PM, Scot Hetzel swhet...@gmail.com wrote:
 On 11/26/09, Jeremy Chadwick free...@jdc.parodius.com wrote:
 I'm a bit curious about something, so maybe someone can help me
  understand:

  Why are people bothering with GPT labels (or in some cases, glabels)
  when AHCI (whether it be ataahci.ko or ahci.ko) is in use?  Under what
  circumstance would the device name change dynamically in this situation?


 There was a thread about this problem where the drives had changed
 their device names due to a change in the kernel drive  (Current list
 from July):

 http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009377.html

 Through out this thread there were various suggests on how he could
 recover the system, and prevent the problem from occurring in the
 future.

 One of the suggestions was that use of zpool replace to change from
 device names to using glabel labels.

 http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009440.html

  I've never witnessed this happening with AHCI, at least on Intel
  systems, and I've hot-swapped hard disks many times over.


 Using glabels, gpt labels, or gptid solves the problem of not needing
 to remember which device name the drive originally had.  For instance,
 on a zfs zraid pool with 3 disks (ad1 ad2 ad3) you could disconnect
 the pool from one computer and connect it to another system and it
 wouldn't matter which order you reconnected the drives (1 2 3 or 3  1
 2) as the pool would still be recognized when it is imported on the
 new system.  Also if the new system already has drives ad1 and ad2, it
 wouldn't matter.

 Scot


for some reasons it sounds to me like 'avoiding problem' since device
name shouldn't matter in zfs (or so I read)


-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: openssh concerns

2009-10-08 Thread Edho P Arief
On Fri, Oct 9, 2009 at 12:22 AM, Doug Barton do...@freebsd.org wrote:
 Oliver Fromme wrote:
 There are shell machines with lots of user accounts, none
 of which have administrative control of the system.

 Sure there are, but they make up only a tiny fraction of the systems
 on the network today.



shared webhost?



-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: 8.0-RC1 ZFS-root installscript

2009-10-06 Thread Edho P Arief
On Tue, Oct 6, 2009 at 10:45 PM, Maciej Jan Broniarz gau...@gausus.net wrote:
 W dniu 09-10-06 16:05, Philipp Wuensche pisze:

 Maciej Jan Broniarz wrote:

 W dniu 09-10-06 13:37, Philipp Wuensche pisze:

 Hi,

 As the livefs on the CD does not include any freebsd packages, you need
 network connection before running the script.

 Dumb question, but how can I get gpart on livefs?

 I'm not sure I understand the question. If you boot a 8.0-RC1 livefs CD,
 you will have usable gpart in the fixit console.

 Ok. gpart is not in $PATH. I had to add /dest/sbin to $PATH for the script
 to work. Still there are some problems. Is there a way to force passive mode
 in an ftp connection? I keep geting Illegal PORT command
 during the download phase.


did you change the shell after login to the console?


-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: zfs won't automount

2009-09-03 Thread Edho P Arief
On Thu, Sep 3, 2009 at 9:28 PM, Lisa Beskobe...@msu.edu wrote:


 Dimitry Andric wrote:

 On 2009-09-02 18:55, Lisa Besko wrote:

 I have a system that has a simple zfs raid 0 volume on it and it will now
 mount when the system boots.  After the system is up I can run /etc/rc.d/zfs
 start and it's fine.  I don't see any errors in the log file other than the
 ZFS is experimental in FreeBSD message.  I'm running FreeBSD 7.2 stable.  I
 have zfs_enable=YES in the rc.conf file.  Am I missing something?

 What do zpool list and zfs list say?

 After I mount them they say this:

 # zfs list
 NAME      USED  AVAIL  REFER  MOUNTPOINT
 sniffer  66.5K  1.96T  18.5K  /sniffer
 # zpool list
 NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
 sniffer  1.99T    75K  1.99T     0%  ONLINE  -

 When it boots and they are not mounted it says:

 # zfs list
 NAME      USED  AVAIL  REFER  MOUNTPOINT
 sniffer  66.5K  1.96T  18.5K  /sniffer
 # zpool list
 NAME      SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
 sniffer  1.99T    75K  1.99T     0%  ONLINE  -

 but it does not show up when I do a df.


fastest way would be adding entry

sniffer /sniffer zfs rw 0 0

to /etc/fstab

-- 
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org