Nikos Alexandris

 The APL Orchard

apl.chat ― Learn, teach, ask, code, golf, & discuss usage. See ...
Sep 12, 2021 10:24
@Adám Hi! Not really. Looks like super-interesting, yet complex and complicated stuff for me! :-)
 

 /dev/chat

General discussion for unix.stackexchange.com. If you have a q...
Jul 24, 2013 19:44
@derobert ZFS is amazing. So simple on the surface (really, very slick), yet so complex under the hood. It reminds me, in some way, git -- though taking a snapshot of a dataset in ZFS (read the analogous of a partition I think) is so simple. I will be switching soon into ZFS for all of my OS/Apps/Data partitions. Only one thing is missing for me: TRIM for the SSD.
Jul 24, 2013 19:44
@derobert I appreciate it that you (actually) reminded me for a Full Back Up. I did have a partial backup. And, it is true that back in December 2012, I have learned my lesson the hard way -- broken laptop hdd! It was very expensive :-/.
Jul 24, 2013 03:28
@derobert I don't have any more time to invest this. And, as I "found" ZFS, a perfect match (and even better!?) for what I was looking for, dropped the question. All in all, I think that some leftover command was assembling one array with the first disk (md127), then another with... another mdadm --assemble instruction (the md126). Dunno... Apologies & a Big TY for your efforts.
Jul 23, 2013 07:25
And they seem to do exactly what is needed, don't they? Search for a conf file, if file exists ( -e ) then return TRUE and do whatever is instructed.
Jul 23, 2013 07:23
...look to me as a short "script". They don't look like one-liners.
Jul 23, 2013 07:22
echo "Activating RAID device."
if [ ! -e '/etc/mdadm.conf' ]
then
echo "DEVICE /dev/sda[0-9] /dev/sdb[0-9] /dev/md[0-9]" > /etc/mdadm.conf
mdadm --examine --scan --config=/etc/mdadm.conf >> /etc/mdadm.conf
mdadm --assemble --scan
fi
Jul 23, 2013 07:22
@derobert Thank you. Right. The few lines of code, in the linked page:
Jul 22, 2013 21:43
@derobert Hi! Ehm... which link/script are you referring to? The last nights were really all-night long sessions. I possibly "lost" something.
Jul 20, 2013 16:52
I hope I know now what I am doing. Onfe finished, I am all open on restructuring my Question, giving an Answer to all questions or close it if it needs be.
Jul 20, 2013 16:51
Seems the boot issue is resolved by loading "mdraid" to run at boot level.
Jul 20, 2013 16:50
Alsmost there...
Jul 20, 2013 16:50
Anyhow, I am after a clean RAID 1 from the scratch.
Jul 20, 2013 16:50
@Gilles ok, thanks. "frostschutz" told me the same in irc #linux-raid.
Jul 20, 2013 14:37
Asked this in #linux-raid but no replies yet.
Jul 20, 2013 14:36
I "found out" that disk sdc is an "ms-dos" partition table while disk sde is a "gpt" partition table type. How important is that?
Jul 20, 2013 14:36
@derobert @Gilles another (last!) question, although I have a full Back Up of my data and can proceed to build a RAID 1 from scratch:
Jul 20, 2013 10:12
I am backing up everything, and give up. I think the best thing to do is to "so much nicer when there's decent backups, no need to fix things, just write over an oops." (from <http://www.linuxquestions.org/questions/linux-server-73/mdadm-raid-inactive-assemble-fails-with-device-or-resource-busy-4175422782/#post4760759>)
Jul 20, 2013 00:33
The Array isn't assembled. Manual activation works, as usual.
Jul 20, 2013 00:32
At least, now, I see some line in the boot process referring to raid, md-something. Unfortunately, it is red! :-(
Jul 20, 2013 00:31
It is required to: rc-update add mdraid boot
Jul 20, 2013 00:31
Wow, I received some help from "rh1" in the "funtoo" irc channel.
Jul 19, 2013 23:44
The Wiki-page is, imho, not clean.
Jul 19, 2013 23:44
No offense, but where should this set of instructions be added for enabling the activation of RAID during the boot process?
Jul 19, 2013 23:43
echo "Activating RAID device."
if [ ! -e '/etc/mdadm.conf' ]
then
echo "DEVICE /dev/sda[0-9] /dev/sdb[0-9] /dev/md[0-9]" > /etc/mdadm.conf
mdadm --examine --scan --config=/etc/mdadm.conf >> /etc/mdadm.conf
mdadm --assemble --scan
fi
Jul 19, 2013 23:42
I see a short set of in structions over at <http://www.funtoo.org/wiki/Rootfs_over_encrypted_lvm_over_raid-1_on_GPT#Encrypting_the_raid-1>
Jul 19, 2013 22:47
The recover process completed. Successfully I guess. To re-boot or not... is the question :-)
Jul 19, 2013 21:43
@derobert Sorry :-/
Jul 19, 2013 18:38
thanks.
Jul 19, 2013 18:37
I am going out of desk for a while. Catch some fresh air.
Jul 19, 2013 18:37
Hem... well let's see. Interesting story...
Jul 19, 2013 18:36
Right.
Jul 19, 2013 18:36
Phew!
Jul 19, 2013 18:36
ok, no need to worry then.
Jul 19, 2013 18:36
  [>....................]  recovery =  4.2% (83603200/1953382208) finish=168.1min speed=185341K/sec
Jul 19, 2013 18:36
I am watch -d cat /proc/mdstat
Jul 19, 2013 18:35
Yes, it works
Jul 19, 2013 18:35
Just another question: does copying data when md is active, apply to both sdc1 and sde1 at the same time?
Jul 19, 2013 18:33
I will come back after the recovery... !
Jul 19, 2013 18:33
I hope someone will reply in the funto.forums as well.
Jul 19, 2013 18:33
I need a break...
Jul 19, 2013 18:33
Another sync? Well, recovery...
Jul 19, 2013 18:32
All seems fine.
Jul 19, 2013 18:29
ok
Jul 19, 2013 18:28
looking...
Jul 19, 2013 18:28
paused
Jul 19, 2013 18:28
I do have a lot of stuff there of course...
Jul 19, 2013 18:28
As far as I can remember, all is there.
Jul 19, 2013 18:27
I mean the "date"?
Jul 19, 2013 18:26
Can't we reverse this?