You are not logged in.

#1 2013-02-20 04:47:58

roknir
Member
Registered: 2013-02-20
Posts: 2

Syslinux, GPT, RAID 0/1, LVM: Successfully boots, then hangs/crashes

I have a system with two hard drives that were initially zeroed-out (sda and sdb).  I'm trying to do an Arch install with Syslinux, GPT partitioning, RAID1 (/boot and swap), and RAID0 (LVM for / and /home).  I can get my install to boot successfully but after I enter my username (root) and password (hunter2) it's completely usable until it seems to hang (sometimes shifting the display) moments later.

Here's my best recreation of my installation steps.  Hopefully you can tell me what I'm doing wrong or how I can troubleshoot further.

# Partitioning
gdisk /dev/sda
gdisk /dev/sdb
# I configure the partition table identically on sda and sdb:
#	#	Flags	Type	Size
#	1	Boot	FD00	128 MB				# /boot
#	2		FD00	2 GB				# swap
#	3		FD00	Remaining space (~ 253 GB)	# LVM for / and /home

# Load kernel modules
modprobe dm-mod
modprobe raid0
modprobe raid1

## RAID
mdadm --create /dev/md1 --level=1 --raid-devices=2 --metadata=1.0 /dev/sd[ab]1	# Create RAID1 for /boot
mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/sd[ab]2			# Create RAID1 for swap
mdadm --create /dev/md3 --level=0 --raid-devices=2 /dev/sd[ab]3			# Create RAID0 for LVM for / and /home

## LVM
pvcreate /dev/md3			# Initialize /dev/md3 for LVM
vgcreate VolGroup00 /dev/md3		# Create VolGroup00 VG
lvcreate -L 10G VolGroup00 -n lvroot	# Create LV for /
lvcreate -L 10G VolGroup00 -n lvhome	# Create LV for /home

# Formatting
mkfs.ext2 /dev/md1			# Create ext2 file system for /boot
mkswap /dev/md2				# Create swap device
mkfs.ext4 /dev/mapper/VolGroup00-lvroot	# Create ext4 file system for /
mkfs.ext4 /dev/mapper/VolGroup00-lvhome	# Create ext4 file system for /home

# Mount the partitions
mount /dev/mapper/VolGroup00-lvroot /mnt
mkdir /mnt/boot
mount /dev/md1 /mnt/boot
mkdir /mnt/home
mount /dev/mapper/VolGroup00-lvhome /mnt/home

# Connect to the internet (skip; DHCP worked)

# Install the base system
pacstrap /mnt base base-devel vim

# Install a bootloader
arch-chroot /mnt pacman -S syslinux

# Configure the system
genfstab -pU /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash
echo swamp > /etc/hostname
ln -s /usr/share/zoneinfo/America/Chicago /etc/localtime
locale > /etc/locale.conf
# I fix a few minor things in /etc/locale.conf so they are all set like LC_ALL="en_US.UTF-8"
echo "KEYMAP=us" > /etc/vconsole.conf
# I uncomment en_US.UTF-8 UTF-8 in /etc/locale.gen
locale-gen
# I make these changes to /etc/mkinitcpio.conf:
# MODULES="ext2 ext4 raid0 raid1 dm_mod"
# HOOKS="base udev autodetect modconf block mdadm_udev lvm2 filesystems keyboard fsck shutdown"
mkinitcpio -p linux
syslinux-install_update -iam
# I change the APPEND lines in /boot/syslinux/syslinux.cfg from:
# APPEND root=/dev/sda3 ro
# ... to:
# APPEND root=/dev/mapper/VolGroup00-lvroot ro

# Unmount and reboot
exit
umount /mnt/boot
umount /mnt/home
umount /mnt
vgchange -an
mdadm --stop /dev/md3
mdadm --stop /dev/md2
mdadm --stop /dev/md1
reboot

Last edited by roknir (2013-02-20 04:50:18)

Offline

#2 2013-02-20 05:16:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Syslinux, GPT, RAID 0/1, LVM: Successfully boots, then hangs/crashes

Can you chroot and find out what is in the journal?  You may not even have to chroot, as I think you can simply use the -D option.

Offline

#3 2013-02-20 05:37:10

roknir
Member
Registered: 2013-02-20
Posts: 2

Re: Syslinux, GPT, RAID 0/1, LVM: Successfully boots, then hangs/crashes

WonderWoofy wrote:

Can you chroot and find out what is in the journal?  You may not even have to chroot, as I think you can simply use the -D option.

Interesting.  I didn't know about the systemd logging.  I'm glad it's on by default.  Here is the excerpt:

...
Feb 19 21:39:40 swamp systemd[1]: Started Trigger Flushing of Journal to Persistent Storage.                                           
Feb 19 21:39:40 swamp systemd[1]: Starting Permit User Sessions...                                                                     
Feb 19 21:39:40 swamp systemd[1]: Started Login Service.                                                                               
Feb 19 21:39:40 swamp systemd[1]: Started Permit User Sessions.                                                                        
Feb 19 21:39:40 swamp systemd[1]: Starting Getty on tty1...                                                                            
Feb 19 21:39:40 swamp systemd[1]: Started Getty on tty1.                                                                               
Feb 19 21:39:40 swamp systemd[1]: Starting Login Prompts.                                                                              
Feb 19 21:39:40 swamp systemd[1]: Reached target Login Prompts.                                                                        
Feb 19 21:39:40 swamp systemd[1]: Starting Multi-User.                                                                                 
Feb 19 21:39:40 swamp systemd[1]: Reached target Multi-User.                                                                           
Feb 19 21:39:40 swamp systemd[1]: Starting Graphical Interface.                                                                        
Feb 19 21:39:40 swamp systemd[1]: Reached target Graphical Interface.                                                                  
Feb 19 21:39:40 swamp systemd[1]: Starting Update UTMP about System Runlevel Changes...                                                
Feb 19 21:39:40 swamp systemd[1]: Started Update UTMP about System Runlevel Changes.                                                   
Feb 19 21:39:40 swamp systemd[1]: Startup finished in 1s 201ms 384us (kernel) + 1s 125ms 388us (userspace) = 2s 326ms 772us.           
Feb 19 21:39:42 swamp login[357]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)                                
Feb 19 21:39:42 swamp systemd-logind[353]: New session 1 of user root.                                                                 
Feb 19 21:39:43 swamp login[357]: ROOT LOGIN ON tty1                                                                                   
Feb 19 21:39:45 swamp kernel: usb 2-1.2.2: new full-speed USB device number 5 using ehci_hcd                                           
Feb 19 21:39:45 swamp kernel: input: Logitech G9x Laser Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.2/2-1.2.2:1.0/in
Feb 19 21:39:45 swamp kernel: hid-generic 0003:046D:C066.0003: input,hidraw2: USB HID v1.11 Mouse [Logitech G9x Laser Mouse] on usb-000
Feb 19 21:39:45 swamp kernel: input: Logitech G9x Laser Mouse as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2.2/2-1.2.2:1.1/in
Feb 19 21:39:45 swamp kernel: hid-generic 0003:046D:C066.0004: input,hiddev0,hidraw3: USB HID v1.11 Keyboard [Logitech G9x Laser Mouse]
Feb 19 21:39:56 swamp kernel: Console: switching to colour frame buffer device 128x48                                                  
Feb 19 21:39:56 swamp kernel: fb0: astdrmfb frame buffer device                                                                        
Feb 19 21:39:56 swamp kernel: drm: registered panic notifier                                                                           
Feb 19 21:39:56 swamp kernel: [drm] Initialized ast 0.1.0 20120228 for 0000:06:05.0 on minor 0                                         
Feb 19 21:39:56 swamp kernel: nouveau ![  DEVICE][0000:01:00.0] unknown Kepler chipset                                                 
Feb 19 21:39:56 swamp kernel: nouveau E[  DEVICE][0000:01:00.0] unknown chipset, 0x0e6060a1                                            
Feb 19 21:39:56 swamp kernel: nouveau E[     DRM] failed to create 0x80000080, -22                                                     
Feb 19 21:39:56 swamp kernel: nouveau: probe of 0000:01:00.0 failed with error -22                                                     
Feb 19 21:39:56 swamp systemd-udevd[217]: Failed to apply ACL on /dev/dri/card1: No such file or directory                             
Feb 19 21:39:56 swamp systemd-udevd[217]: Failed to apply ACL on /dev/dri/card1: No such file or directory                             
Feb 19 21:40:34 swamp systemd-logind[353]: Power key pressed.                                                                          
Feb 19 21:40:34 swamp systemd-logind[353]: Powering Off...                                                                             
Feb 19 21:40:34 swamp systemd-logind[353]: System is powering down.                                                                    
Feb 19 21:40:34 swamp systemd[1]: Stopping Sound Card.                                                                                 
Feb 19 21:40:34 swamp systemd[1]: Stopped target Sound Card.                                                                           
Feb 19 21:40:34 swamp systemd[1]: Stopping LVM2 metadata daemon...                                                                     
...

I think these are the pertinent errors:

...
Feb 19 21:39:56 swamp kernel: nouveau ![  DEVICE][0000:01:00.0] unknown Kepler chipset                    
Feb 19 21:39:56 swamp kernel: nouveau E[  DEVICE][0000:01:00.0] unknown chipset, 0x0e6060a1               
Feb 19 21:39:56 swamp kernel: nouveau E[     DRM] failed to create 0x80000080, -22                        
Feb 19 21:39:56 swamp kernel: nouveau: probe of 0000:01:00.0 failed with error -22                        
Feb 19 21:39:56 swamp systemd-udevd[217]: Failed to apply ACL on /dev/dri/card1: No such file or directory
Feb 19 21:39:56 swamp systemd-udevd[217]: Failed to apply ACL on /dev/dri/card1: No such file or directory
...

Where do I go from there?

Offline

#4 2013-02-20 06:12:28

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Syslinux, GPT, RAID 0/1, LVM: Successfully boots, then hangs/crashes

I don't use nvidia, but it would seem that Kepler is new?  Maybe it is not yet supported?  I don't really know, but those are things I might look into if this were my hardware.  Maybe you could install the proprietary drivers from a chroot (they are in the official repos now), set the system up to use them (blacklist nouveau I think) and then test again.

Offline

#5 2013-02-24 19:51:06

s1ln7m4s7r
Member
Registered: 2013-02-22
Posts: 262

Re: Syslinux, GPT, RAID 0/1, LVM: Successfully boots, then hangs/crashes

Hi, check this post https://bbs.archlinux.org/viewtopic.php?id=158481

I made a post reply with a work-thrue for creating a RAID 10 + LVM + SYSLINUX + GPT. It's not for your current configuration but it can be used to it. Just change the creation of the RAID 10 to your RAID specification, the rest is the same.

About the issues with nouveau, check http://nouveau.freedesktop.org/wiki/CodeNames#NVE0, it is work-in-progress. You may try to use nvidia official drivers, https://aur.archlinux.org/packages/nvidia-beta/

Remenber you need to blacklist nouveau or unninstall it, and unninstall libgl, before installing.

Offline

Board footer

Powered by FluxBB