25ebb [Solved] Dangerously dedicated support flushed?! - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old November 27th, 2009, 00:15
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default Dangerously dedicated support flushed?!

Quote:
Originally Posted by FreeBSD 8.0 Release Notes
“dangerously dedicated” mode for the UFS file system is no longer supported.

Important: Such disks will need to be reformatted to work with this release.
I'm really curious to know the motivation behind this. I guess it is logical to assume that this means FreeBSD 6 and 7 boxes in the field have no chance of being upgraded to 8 if their boot disks are setup dedicated?

Surely this violates POLA? Surely there was a less disruptive alternative? Why the change? Am I the only one cringing?
Reply With Quote
  #2  
Old November 27th, 2009, 01:02
Beastie Beastie is offline
Senior Member
 
Join Date: Mar 2009
Location: /dev/earth0
Posts: 1,701
Thanks: 0
Thanked 301 Times in 245 Posts
Default

Yeah it came as a surprise to me too, but not for the same reason. I actually thought it had already been removed in 7.x. Apparently, I was imagining things, ahem. Or maybe I read about its removal in a future release somewhere. Or maybe it's prescience, hahaha.

Why are you upset? Did you use it?
__________________
May the source be with you!
Reply With Quote
  #3  
Old November 27th, 2009, 01:57
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by Beastie View Post
Why are you upset? Did you use it?
I did, yes. Every single FreeBSD server I've setup was done so with a dedicated disk structure.
Reply With Quote
  #4  
Old November 27th, 2009, 02:55
Arne Arne is offline
Junior Member
 
Join Date: Nov 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Beastie View Post
Why are you upset? Did you use it?
There were many valid reasons to use it in the past and I'm not sure how many of them are still valid today (Disk encryption, huge concatenated disks with geom&friends, etc.)

Not to mention that there are some old guys around which have a strong feeling that a bsd disk label at the beginning of a disk is more "normal" than this strange fdisk partition table.

But of course, not everyone started his BSD experience working with a VAX.

So, what exactly is the problem with 8.0 and dangerously dedicated disks so that we can think about the next steps we have to do?

Regards
.//. Arne
Reply With Quote
  #5  
Old November 27th, 2009, 04:29
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,386
Thanks: 60
Thanked 145 Times in 130 Posts
Default

I wonder if that change has anything to do with a
scarcity of /dev (for usb-mounted disks etc) (in _8)
entries that have bsd (type 165) slices on them unless
geom_bsd.ko geom_label.ko and geom_mbr.ko (one or more
of them) are loaded... (at least here, locally, two
seperate instances. I've put them in /boot/loader.conf;
that process fixed one problem for someone in another
thread here...
Reply With Quote
  #6  
Old November 27th, 2009, 09:02
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by aragon View Post
Surely this violates POLA?
POLA has nothing to do with it as it's completely irrelevant to users and their privileges.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #7  
Old November 27th, 2009, 10:41
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

pardon, my ignorance, but what exactly was “dangerously dedicated UFS" ?
Reply With Quote
  #8  
Old November 27th, 2009, 10:56
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
pardon, my ignorance, but what exactly was “dangerously dedicated UFS" ?
A 'regular' slice starts at block 64, a dedicated at 0. If it starts at 0 tools like the old MS-DOS/Windows fdisk/partition editor will throw a fit and is quite likely to nuke your partition table in the process. When a slice starts at 64 Windows doesn't have a problem with it. It just marks it as an unknown partition.

With a dedicated disk there's no slices, so you will have partitions named ad0a, ad0b etc. instead of ad0s1a, ad0s1b etc.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
graudeejs (November 27th, 2009)
  #9  
Old November 27th, 2009, 11:06
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,522
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Ok, thanks
Reply With Quote
  #10  
Old November 27th, 2009, 12:41
robbak's Avatar
robbak robbak is offline
Junior Member
 
Join Date: Nov 2008
Posts: 57
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Quote:
Originally Posted by SirDice View Post
POLA has nothing to do with it as it's completely irrelevant to users and their privileges.
I have no idea what the Principle Of Least Astonishment (POLA) has to do with users and their privileges. It certainly is relevant to the choice to stop supporting so called 'dangerously dedicated' mode. I've always been in favor of ditching that horrid fdisk kludge wherever possible.
Reply With Quote
  #11  
Old November 27th, 2009, 15:07
mjb mjb is offline
Junior Member
 
Join Date: Oct 2009
Location: Stoke, UK
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
With a dedicated disk there's no slices, so you will have partitions named ad0a, ad0b etc. instead of ad0s1a, ad0s1b etc.
So am I safe with my unpartitioned+unlabelled mounts, as in:

Code:
# newfs /dev/da0
# mount /dev/da0 /blah

or

# gstripe label foo /dev/da0 /dev/da1
# newfs /dev/stripe/foo
# mount /dev/stripe/foo /bar
or do I need to start faffing around fdisk/bsdlabel'ing everything?
Reply With Quote
  #12  
Old November 27th, 2009, 15:09
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by robbak View Post
I have no idea what the Principle Of Least Astonishment (POLA) has to do with users and their privileges. It certainly is relevant to the choice to stop supporting so called 'dangerously dedicated' mode. I've always been in favor of ditching that horrid fdisk kludge wherever possible.
http://en.wikipedia.org/wiki/Princip...east_privilege

More commenly known in the security field as POLA.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #13  
Old November 27th, 2009, 17:40
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by SirDice View Post
POLA has nothing to do with it as it's completely irrelevant to users and their privileges.
You are mistaken.
Reply With Quote
  #14  
Old November 27th, 2009, 18:51
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by aragon View Post
You are mistaken.
No, I'm not

It just means different things to different people. Since I have a security background POLA refers to Principle of Least Authority. I didn't even know the Principle of Least Astonishment
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #15  
Old November 28th, 2009, 02:51
honk honk is offline
Member
 
Join Date: Dec 2008
Posts: 134
Thanks: 6
Thanked 13 Times in 13 Posts
Default

What has "dangerously dedicated mode" to do with a particular filesystem like UFS? How should I understand the Release Notes entry? Currently I have multiple setups like this:

1. gmirror with two disks
2. encrypted mirror using geli
3. bsdlabel partitions (no slices)

/dev/mirror/gm0
/dev/mirror/gm0.eli
/dev/mirror/gm0.elia
/dev/mirror/gm0.elib
/dev/mirror/gm0.elic
/dev/mirror/gm0.elid
/dev/mirror/gm0.elie

This does not work with 8.0? The disks are "dedicated" to FreeBSD and the purpose is _complete_ disk encryption.

cheers,
honk
Reply With Quote
  #16  
Old December 2nd, 2009, 01:02
jamie jamie is offline
Junior Member
 
Join Date: Feb 2009
Posts: 8
Thanks: 2
Thanked 3 Times in 2 Posts
Default

Errrm, they lie? :

Code:
23:58 (20) "rc.d" root@catflap# uname -a ; df -t ufs|grep -v '/dev/md'
FreeBSD catflap.bishopston.net 8.0-STABLE FreeBSD 8.0-STABLE #0: Sun Nov 29 19:37:54 GMT 2009     root@catflap.bishopston.net:/usr/obj/usr/src/sys/CATFLAP  i386
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a    253678   203576    29808    87%    /
/dev/ad2d    10154158  7465492  1876334    80%    /misc
/dev/ad0s1d   2026030  1037190   826758    56%    /var
/dev/ad2e    15231278  1180712 12832064     8%    /var/log
/dev/ad0s1f    507630     2694   464326     1%    /var/tmp
/dev/ad0s1g  35539756 28938322  3758254    89%    /usr
/dev/ad0s1h  31254636 25576650  3177616    89%    /usr/users
/dev/ad2f    38143404 28302558  6789374    81%    /usr/jails
/dev/ad2a    10154158  7627238  1714588    82%    /usr/jails/clash.stockcupboard.com/tidybackup
/dev/ad0s1e   4058062   477148  3256270    13%    /usr/catflap/backups
Anyway, I hope this doesn't become true. For a start, I hate the fdisk hack, it's an extra layer that we don't need. All my machines are formatted without using fdisk/slices (the only reason ad0 above is like that is because it was installed by someone else)

If this does become reality, how are we to upgrade? Especially remote servers, where we don't have the luxury of loads of spare disks to offload stuff to.

*puzzled*
Reply With Quote
  #17  
Old December 2nd, 2009, 03:30
jb_fvwm2 jb_fvwm2 is offline
Senior Member
 
Join Date: Nov 2008
Posts: 1,386
Thanks: 60
Thanked 145 Times in 130 Posts
Default

Maybe the first post refers to initial install vs.
buildworld/installworld? And maybe the the .ko I
posted above enables upgrades to inadvertantly
continue despite not being supported? Guessing at
each of them.
Reply With Quote
  #18  
Old December 2nd, 2009, 05:56
randi@ randi@ is offline
FreeBSD Developer
 
Join Date: Jun 2009
Location: Sunnyvale, CA
Posts: 12
Thanks: 1
Thanked 4 Times in 1 Post
Default die in a fire.

Quote:
Originally Posted by killasmurf86 View Post
pardon, my ignorance, but what exactly was “dangerously dedicated UFS" ?
OH MY GOD.

If I see one more person equate DD mode with UFS, I'm going to shoot someone.

Do you know why I removed it? Because it was broken in 8. Simple as that. I could have kept the support in, but then you'd upgrade and all your crap would be broken and you'd be crying. Search the mailing list archives for a reason why this had to change. Specifically, juli and marcus gave some good explanations, I believe.

Sorry if I'm coming off grumpy, but apparently there are quite a few people that decided "I'm just going to ignore the warning sysinstall gave me about how this might be a bad idea. Dangerous sounds like fun!" and now they are ranting and raving. Production servers? Really? You thought this was a good idea?

STABSTABSTABSTABSTAB.
Reply With Quote
  #19  
Old December 2nd, 2009, 08:27
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by randi View Post
Search the mailing list archives for a reason why this had to change.
Well I couldn't find it. Care to enlighten us?

Quote:
Originally Posted by randi View Post
apparently there are quite a few people that decided "I'm just going to ignore the warning sysinstall gave me about how this might be a bad idea. Dangerous sounds like fun!"
Ah yes, that sysinstall warning...
Quote:
Originally Posted by src/usr.sbin/sysinstall/disks.c
Do you want to do this with a true partition entry so as to remain cooperative with any future possible operating systems on the drive(s)? (See also the section about "dangerously dedicated" disks in the FreeBSD FAQ.)
Is this secretly trying to tell us that this is actually deprecated and "any future possible operating systems" includes FreeBSD itself too? Let's just check that FAQ entry for clarification. Ah, so it's called dangerous due to incompatibility with other operating systems. Of course, it's just shining with the knowledge that this feature made by and for FreeBSD was not only dangerous for other operating systems, but endangered with deprecation and sudden extinction from FreeBSD support too.
Reply With Quote
  #20  
Old December 2nd, 2009, 09:14
chalbersma chalbersma is offline
Junior Member
 
Join Date: Jan 2009
Posts: 92
Thanks: 63
Thanked 3 Times in 3 Posts
Default

idk man I'd have heasitated at the idea of "dangerous"
Reply With Quote
  #21  
Old December 2nd, 2009, 14:42
jamie jamie is offline
Junior Member
 
Join Date: Feb 2009
Posts: 8
Thanks: 2
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by randi@ View Post
Dangerous sounds like fun!" and now they are ranting and raving. Production servers? Really? You thought this was a good idea?

STABSTABSTABSTABSTAB.
What? The only ever perceived 'danger' was that non-FreeBSD operating systems (including maybe boot cd's / floopies for diagnostics) would not recognise the disk as being in use, and may potentially mess up the boot block.

I never use any of these, and have always preferred to not use the 'DOS-hacks'.

Never was it implied that there was any stability risk other than this.

Yes, production servers! without the fdkisk/dos stuff - simply more pure, and one less level of spurious partitioning - a bit anal maybe, but not 'dangerous' - only 'dangerous' to the unenlightened who may not realise what they are doing when they pop in some dos-based floppy 'checkdisk' util on their home box.
Reply With Quote
  #22  
Old December 2nd, 2009, 16:00
honk honk is offline
Member
 
Join Date: Dec 2008
Posts: 134
Thanks: 6
Thanked 13 Times in 13 Posts
Default

Quote:
Originally Posted by randi@ View Post
If I see one more person equate DD mode with UFS, I'm going to shoot someone.
Should we shoot the Release Notes?

Quote:
2.2.5 File Systems

“dangerously dedicated” mode for the UFS file system is no longer supported.

Important: Such disks will need to be reformatted to work with this release.
People only want to know what exactly is broken and unsupported now. Especially the people who (thought they) had valid reasons to uses DD mode, like Arne said or in my case where I boot from USB stick and have a completely encrypted disk like described above. Not everyone is using sysinstall. Just saying "search the mailing lists" doesn't help at the moment, as you find a lot of posts regarding this topic with questionable statements from users who just tried something and believe its good. Nobody want to have his data living in danger. So if there are already information's available based on competent knowledge, it would help if it could be posted here until Handbook, FAQ's etc. is up to date.

cheers,
honk
Reply With Quote
  #23  
Old December 31st, 2009, 04:16
tvh tvh is offline
Junior Member
 
Join Date: Dec 2009
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
Default

For others, like me, with older disks created by the broken sysinstall dangerously dedicated mode, here is a link into the FreeBSD mail archives describing how to recover the partitions.

http://www.pubbs.net/freebsd/200912/39499/

Basically,

dd if=/dev/zero of=/dev/ad# count=1 oseek=1

Last edited by DutchDaemon; December 31st, 2009 at 05:47.
Reply With Quote
The Following User Says Thank You to tvh For This Useful Post:
aragon (December 31st, 2009)
  #24  
Old December 31st, 2009, 07:04
Speedy Speedy is offline
Member
 
Join Date: Nov 2008
Location: Acadiana
Posts: 185
Thanks: 7
Thanked 14 Times in 13 Posts
Default

Quote:
Do you know why I removed it? Because it was broken in 8. Simple as that.
I see. If something is broken one has choices. Fix it or toss it. "No longer supported" is loquacious indeed. What is next? Do we hear knell? I am one of those who has always used DD mode. With all the respect towards FOSS and all the hard work of developers, dropping features like this foretells dim future.

Quote:
Yes, production servers! without the fdkisk/dos stuff - simply more pure, and one less level of spurious partitioning - a bit anal maybe, but not 'dangerous' - only 'dangerous' to the unenlightened who may not realise what they are doing when they pop in some dos-based floppy 'checkdisk' util on their home box.
++
Reply With Quote
  #25  
Old December 31st, 2009, 11:04
aragon aragon is offline
Giant Locked
 
Join Date: Nov 2008
Location: Cape Town, South Africa
Posts: 2,031
Thanks: 68
Thanked 253 Times in 203 Posts
Default

Quote:
Originally Posted by tvh View Post
For others, like me, with older disks created by the broken sysinstall dangerously dedicated mode, here is a link into the FreeBSD mail archives describing how to recover the partitions.
Thanks for the enlightenment. If/when I pluck up the courage to test this on one of my remaining 7.x DD systems I'll report back on my experience.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Convert Dangerously Dedicated Disks to FreeBSD 8.0 with 3ware 9650SE RAID dgs Howtos & FAQs (Moderated) 3 April 20th, 2010 17:13
DD (Dangerously Dedicated) mode not available worldwins Installing & Upgrading 5 March 25th, 2010 21:43
Quake2 Dedicated Server? vask Installation and Maintenance of FreeBSD Ports or Packages 1 February 22nd, 2010 09:14
Hosting Domains with dedicated IP addresses. miatech Web & Network Services 2 December 23rd, 2009 05:32
Two Dedicated IP addresses, how to route esogs Networking 6 August 13th, 2009 17:37


All times are GMT +1. The time now is 23:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0