I have a large raid (lsi megaraid sas2 9261-8i card) and when I use parted to initialize it as the one big partition I want, it gives me a warning.
# parted /dev/sda "mklabel gpt" Warning: The existing disk label on /dev/sda will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes # parted -a optimal /dev/sda "mkpart primary 128s -1s" Warning: You requested a partition from 65.5kB to 81.0TB. The closest location we can manage is 65.5kB to 81.0TB. Is this still acceptable to you? Yes/No? yes Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? i Information: You may need to update /etc/fstab.
The sector size is 512b actual, the raid stripe size is 64kB, hence starting the partition on sector 128. I've tried various combinations of -a, nothing seems to help here.
John R Pierce wrote:
I have a large raid (lsi megaraid sas2 9261-8i card) and when I use parted to initialize it as the one big partition I want, it gives me a warning.
<snip>
# parted -a optimal /dev/sda "mkpart primary 128s -1s" Warning: You requested a partition from 65.5kB to 81.0TB. The closest location we can manage is 65.5kB to 81.0TB. Is this still acceptable to you? Yes/No? yes Warning: The resulting partition is not properly aligned for best
performance. Ignore/Cancel? i Information: You may need to update /etc/fstab.
<snip> If *anyone* has the answer to this, I want to know. Or maybe we should just file a bug against parted, which ABSOLUTELY, POSITIVELY does *not* want to a) align it for best performance, or b) *TELL* you what you need to align it.
Using gparted (GUIs, why did it have to be GUIs), you at least don't get that idiot warning.
mark
On 01/09/12 10:37 AM, m.roth@5-cent.us wrote:
If*anyone* has the answer to this, I want to know. Or maybe we should just file a bug against parted, which ABSOLUTELY, POSITIVELY does*not* want to a) align it for best performance, or b)*TELL* you what you need to align it.
Is there another tool I can use for GPT partitions over 2TB ?
Using gparted (GUIs, why did it have to be GUIs), you at least don't get that idiot warning.
yeah, no gui on my file or database servers. not gonna happen.
another whine is the stupid decmial k/M/G/T it insists on showing. I'd tolerate that if there was an option to show the binary versions all software works on.
On Monday, January 09, 2012 02:03:23 PM John R Pierce wrote:
Is there another tool I can use for GPT partitions over 2TB ?
Hmm, I have an EL6.2 installation (i386) with four mounted volumes over 2TB; IIRC parted was used to make them. I don't recall doing anything special to get the partitions aligned, either. That doesn't mean I didn't do anything; I just don't recall doing anything..... :-)
There is gdisk, though, if you want to go that route, but I haven't tried it with >2TB LUN's.
The EPEL repo for 6 has gdisk.
On Mon, Jan 9, 2012 at 1:03 PM, John R Pierce pierce@hogranch.com wrote:
Using gparted (GUIs, why did it have to be GUIs), you at least don't get that idiot warning.
yeah, no gui on my file or database servers. not gonna happen.
Having the X libs installed so you can run a gui program with a remote display doesn't bother a server much. And it's sometimes handy to be able to run wireshark like that if you need to peek at a few packets in real time.
On 01/10/12 9:39 AM, Les Mikesell wrote:
Having the X libs installed so you can run a gui program with a remote display doesn't bother a server much. And it's sometimes handy to be able to run wireshark like that if you need to peek at a few packets in real time.
painfully slow over a remote link. if I need to sniff traffic, I'll use tcpdump. if I need fancier analysis, I'll tcpdump it to a file, and scp the file to my local system and analyze it with wireshark.
also, I'm documenting a procedure for operations that I'm trying to automate and simplify as much as possible... And, having to explain how to setup a remote X session, then how to do something with pointy-clicky would be painful, a one line command replaced with pages of screenshots? ugh.
On 01/10/2012 08:56 PM, John R Pierce wrote:
And, having to explain how to setup a remote X session, then how to do something with pointy-clicky would be painful, a one line command replaced with pages of screenshots? ugh.
There is NX/FreeNX server/client via ssh. Safe and simple remote GUI.
On Tue, Jan 10, 2012 at 1:56 PM, John R Pierce pierce@hogranch.com wrote:
Having the X libs installed so you can run a gui program with a remote display doesn't bother a server much. And it's sometimes handy to be able to run wireshark like that if you need to peek at a few packets in real time.
painfully slow over a remote link. if I need to sniff traffic, I'll use tcpdump. if I need fancier analysis, I'll tcpdump it to a file, and scp the file to my local system and analyze it with wireshark.
I normally have at least one box per location (at least per location with slow networking...) where I can park a freenx desktop session. Then I can connect to that with NX (which runs over ssh). And from there I can work mostly in xterms ssh'd to the other nearby systems. The advantages are that the desktop stays stable with all open windows even when I disconnect and reconnect (even across different locations/OS's on the connecting NX client), and that starting GUI programs in those xterms opens a very nicely performing window on my NX client, wherever that might be.
also, I'm documenting a procedure for operations that I'm trying to automate and simplify as much as possible... And, having to explain how to setup a remote X session, then how to do something with pointy-clicky would be painful, a one line command replaced with pages of screenshots? ugh.
Different mindset, maybe. While I'd prefer a text line that I can cut/paste even if it is long and complicated, other people here are mostly used to windows and expect screenshots in the docs and drop-down picklists for options. Anyway, I think it is worth setting up freenx/NX even to run a bunch of xterms, and once you have it, GUI programs work too.