<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Yikes! I have btrfs partitions in XenServer guests all over the place! Oh, but not for the /boot partition.<div><br></div><div>I do remember seeing this&nbsp;</div><div>http://support.citrix.com/servlet/KbServlet/download/38323-102-715588/XenServer-6.5.0_VM%20User's%20Guide.pdf (p7)<br><div><br></div><div>"Note: Customers should note that the Btrfs filesystem, the default in SLES 12, is not supported by XenServer.
Customers should instead select a supported filesystem such as EXT3 or EXT4 for the /boot partition."</div><div><br></div><div>I took that to mean *just* the /boot partition shouldn't be btrfs. It seems a bit ambiguous because the first sentence would imply it's not supported at all, but then why would the second sentence specify just the "/boot" partition? Btrfs isn't mentioned anywhere else in the User's Guide. Were you going by the same two sentences? Do I need to avoid btrfs for any partition inside a XenServer guest VM?</div><div><br></div><div>Scott<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Allen Beddingfield" &lt;allen@ua.edu&gt;<br><b>To: </b>"Atlanta Linux Enthusiasts" &lt;ale@ale.org&gt;<br><b>Sent: </b>Monday, October 17, 2016 2:54:11 PM<br><b>Subject: </b>Re: [ale] Xen Server adding a virtual disk to a VM<br><br>Oh, FYI - BTRFS is not supported in a XenServer guest...so ignore my second one there :D<br><br>--<br>Allen Beddingfield<br>Systems Engineer<br>Office of Information Technology<br>The University of Alabama<br>Office 205-348-2251<br>allen@ua.edu<br><br>On 10/17/16, 1:52 PM, "ale-bounces@ale.org on behalf of Beddingfield, Allen" &lt;ale-bounces@ale.org on behalf of allen@ua.edu&gt; wrote:<br><br>&nbsp;&nbsp; &nbsp;I usually do:<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;/dev/sda1 - /boot (ext3)<br>&nbsp;&nbsp; &nbsp;/dev/sda2 - swap<br>&nbsp;&nbsp; &nbsp;/dev/sda3 - / (XFS)<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;or if btrfs<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;/dev/sda1 - swap<br>&nbsp;&nbsp; &nbsp;/dev/sda2 / (btrfs)<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;--<br>&nbsp;&nbsp; &nbsp;Allen Beddingfield<br>&nbsp;&nbsp; &nbsp;Systems Engineer<br>&nbsp;&nbsp; &nbsp;Office of Information Technology<br>&nbsp;&nbsp; &nbsp;The University of Alabama<br>&nbsp;&nbsp; &nbsp;Office 205-348-2251<br>&nbsp;&nbsp; &nbsp;allen@ua.edu<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;On 10/17/16, 1:49 PM, "ale-bounces@ale.org on behalf of Scott Plante" &lt;ale-bounces@ale.org on behalf of splante@insightsys.com&gt; wrote:<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Thanks guys. This thread has been very informative.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;So you don't LVM inside a VM, but do you partition? I've always partitioned because it's how I was taught (pre-VM), but suppose you have a Linux VM, and you want to add a 200GB partition for some application. You go into your VM software and create the<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; virtual disk and attach it to the VM. Inside the VM it appears as a new device, say /dev/xvde. You could create a partition and /dev/xvde1 would appear and you could mkfs /dev/xvde1 or you could skip the partitioning and just mkfs /dev/xvde. One reason you<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; generally partition is for the sector alignment stuff, but (correct me if I'm wrong) that doesn't apply to a virtual disk. The sector alignment would be taken care of when you partition the drive inside XenServer, VMWare or whatever's running on the bare metal.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; Another reason you might normally partition a drive is to separate your OS &nbsp;from your data, to make sure run-away log files don't crash your database, etc., but that doesn't apply here because you've already created a separate virtual disk for that purpose.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;I asked a friend at the pub Friday night who works with lots of VMs and he says he partitions just as a reminder to himself that he has or hasn't done something with the virtual disk. So he might go add a new disk to a half-dozen VMs, and when he goes<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; into each one he can more easily tell whether he has taken care of it yet or something like that. If I add or remove a disk once a month it's a lot, so that's not a big selling point for me. Still, I suppose it could be useful as some longer term "documentation"<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; kind of thing.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;So those of you on the list who deal with VMs: do you partition your virtual disks?<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Scott<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;p.s. my recent VM experience is mostly with XenServer, so forgive me if my question and/or terminology doesn't make sense for ESXi, KVM, or other VM environments.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;________________________________________<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;From: "Phil Turmel" &lt;philip@turmel.org&gt;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;To: ale@ale.org<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Sent: Saturday, October 15, 2016 11:08:35 AM<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Subject: Re: [ale] Xen Server adding a virtual disk to a VM<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;On 10/14/2016 05:13 PM, DJ-Pfulio wrote:<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; Ok, so fdisk was patched, but I'm still waiting for that patch to<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; actually make it into every distro I see. I keep seeing fdisk complain<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; about GPT disks - easier to just use parted, IMHO. Parted also aligns<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; partitions correctly, as does gparted. &nbsp;fdisk does not. If you use only<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; SSDs, don't think that it matters, but on spinning disks, there can be a<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; real, noticeable, performance hit.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Interesting. &nbsp;I've been using 'gdisk' for quite some time now. &nbsp;Same<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;style of interface but supports GPT, plus conversions to/from MBR and<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;BSD. &nbsp;I thought is was packaged with util-linux, but I just found out<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;otherwise.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;It is part of the base install of Ubuntu Server at least since 14.04.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;It came in as a default dependency of udisks on my gentoo systems, which<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;is pulled in by a variety of things. &nbsp;So I assumed it was part of the<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;system set.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;I like gdisk *way* more than parted.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; GPT has many upgrades over MBR, like duplication at the front/end of the<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; storage, not only at the beginning. Plus not having to deal with<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; "logical/extended" partitions ever again is nice. Wikipdeia has more.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; <br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; Inside a VM, I don't don't use LVM. &nbsp;Only outside on the hostOS. There<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; are multiple pros/cons to either method. I can understand if folks want<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; LVM inside a VM and why they wouldn't. Do some research.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;I do the same. &nbsp;LVM on bare metal, not in VMs. &nbsp;All of my VM disks are<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;LVs, not files. &nbsp;Virt-manager makes that easy, btw -- you can make any<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;volume group in a host a "pool" for VM allocations. &nbsp;It was one of the<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;final straws that got me off of virtualbox.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; Haven't touched btrfs. Seems there is always some "issue" that is<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; important to me with it. Whether that is true or not is completely<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; irrelevant. It is a hassle that I don't need. Understand many people<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; love btrfs, which is great. More users will eventually fix the issues I<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; have! Thanks!<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Yup. &nbsp;I played with it once. &nbsp;Haven't touched it since.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; lsblk is nice. Plus, it doesn't need sudo to work (at least not on any<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&gt; systems I manage).<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;I wrote lsdrv[1] because I didn't like the way lsblk repeated trees when<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;raid arrays were present, and I wanted something that would document<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;controller ports, device SNs, and UUIDs for later recovery tasks.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Basically lsblk + blkid + lspci + lsusb in one report.<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Phil<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;[1] https://github.com/pturmel/lsblk<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;_______________________________________________<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Ale mailing list<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Ale@ale.org<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;http://mail.ale.org/mailman/listinfo/ale<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;See JOBS, ANNOUNCE and SCHOOLS lists at<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;http://mail.ale.org/mailman/listinfo<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp; &nbsp;_______________________________________________<br>&nbsp;&nbsp; &nbsp;Ale mailing list<br>&nbsp;&nbsp; &nbsp;Ale@ale.org<br>&nbsp;&nbsp; &nbsp;http://mail.ale.org/mailman/listinfo/ale<br>&nbsp;&nbsp; &nbsp;See JOBS, ANNOUNCE and SCHOOLS lists at<br>&nbsp;&nbsp; &nbsp;http://mail.ale.org/mailman/listinfo<br>&nbsp;&nbsp; &nbsp;<br><br><br>_______________________________________________<br>Ale mailing list<br>Ale@ale.org<br>http://mail.ale.org/mailman/listinfo/ale<br>See JOBS, ANNOUNCE and SCHOOLS lists at<br>http://mail.ale.org/mailman/listinfo<br></div><br></div></div></div></body></html>