Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Hilfe bei portage over nfs(4) [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
trikolon
Apprentice
Apprentice


Joined: 04 Dec 2004
Posts: 297
Location: Erlangen

PostPosted: Mon Feb 01, 2010 4:30 pm    Post subject: Hilfe bei portage over nfs(4) [solved] Reply with quote

Hallo alle,
ich möchte das portage Verzeichnis meines Servers per NFSv4 ins Netzwerk einspeissen, verwendete Portageversion ist 2.2-rc62. Als erster Client soll eine VM welche auf dem Server läuft versorgt werden. Exportiert habe ich wie folgt:
Code:
/mnt            192.168.0.0/24(rw,fsid=0,no_subtree_check,async,no_root_squash)
/mnt/portage    192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check)


Wenn ich es nun auf dem Client mounte, kann ich in der Verzeichnis schreiben und auch ein emerge --sync ausführe. Allerdings wenn ich versuche etwas zu installieren, zB Portage kommt folgendes:
Code:
emerge portage
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/portage-2.2_rc62
Cannot chown a lockfile: '/usr/portage/distfiles/.portage-2.2_rc43.tar.bz2.portage_lockfile'
 * portage-2.2_rc43.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
Traceback (most recent call last):
  File "/usr/lib64/portage/bin/ebuild", line 268, in <module>
    debug=debug, tree=mytree)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 7227, in doebuild
    fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib64/portage/pym/portage/__init__.py", line 4775, in fetch
    stat_cached=mystat)
  File "/usr/lib64/portage/pym/portage/util.py", line 919, in apply_secpass_permissions
    stat_cached=stat_cached, follow_links=follow_links)
  File "/usr/lib64/portage/pym/portage/util.py", line 752, in apply_permissions
    os.chown(filename, uid, gid)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 209, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 22] Invalid argument: '/usr/portage/distfiles/portage-2.2_rc43.tar.bz2'
 * Fetch failed for 'sys-apps/portage-2.2_rc62', Log file:
 *  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162539.log'

>>> Failed to emerge sys-apps/portage-2.2_rc62, Log file:

>>>  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162539.log'

 * Messages for package sys-apps/portage-2.2_rc62:

 * Fetch failed for 'sys-apps/portage-2.2_rc62', Log file:
 *  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162539.log'


Nach etwas Googeln, habe ich dann distlocks deaktiviert:
Code:
emerge portage
WARNING: One or more repositories have missing repo_name entries:

        /usr/local/portage/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.
Calculating dependencies... done!
!!!
!!! parallel-fetching requires the distlocks feature enabled
!!! you have it disabled, thus parallel-fetching is being disabled
!!!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/portage-2.2_rc62
 * portage-2.2_rc43.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                    [ ok ]
Traceback (most recent call last):
  File "/usr/lib64/portage/bin/ebuild", line 268, in <module>
    debug=debug, tree=mytree)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 7227, in doebuild
    fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib64/portage/pym/portage/__init__.py", line 4775, in fetch
    stat_cached=mystat)
  File "/usr/lib64/portage/pym/portage/util.py", line 919, in apply_secpass_permissions
    stat_cached=stat_cached, follow_links=follow_links)
  File "/usr/lib64/portage/pym/portage/util.py", line 752, in apply_permissions
    os.chown(filename, uid, gid)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 209, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 22] Invalid argument: '/usr/portage/distfiles/portage-2.2_rc43.tar.bz2'
 * Fetch failed for 'sys-apps/portage-2.2_rc62', Log file:
 *  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162715.log'

>>> Failed to emerge sys-apps/portage-2.2_rc62, Log file:

>>>  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162715.log'

 * Messages for package sys-apps/portage-2.2_rc62:

 * Fetch failed for 'sys-apps/portage-2.2_rc62', Log file:
 *  '/var/log/portage/sys-apps:portage-2.2_rc62:20100201-162715.log'


Nach weiterm Suchen bin ich auf die Idee gekommen die Berechtigungen und die User:Groupe Einstellungen zu kontrollieren:

Server:
Code:
ls -ld /mnt/portage/distfiles/ drwxrwsr-x 5 root portage 49152  1. Feb 17:12 /mnt/portage/distfiles/


Client:
Code:
ls -ld portage/distfiles/ drwxrwsr-x 5 4294967294 4294967294 49152 Feb  1 17:27 portage/distfiles/



Fällt jemanden etwas dazu ein?

Gruß Ben


Last edited by trikolon on Tue Feb 02, 2010 9:56 am; edited 1 time in total
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2403
Location: Germany

PostPosted: Mon Feb 01, 2010 5:38 pm    Post subject: Reply with quote

Vielleicht hilft dir ein zugegeben älteres Howto weiter: gentoo-wiki.info Using a shared portage via NFS.

Grüße
Back to top
View user's profile Send private message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3369
Location: de

PostPosted: Mon Feb 01, 2010 11:37 pm    Post subject: Reply with quote

Warum mountest du den Portage nach /mnt/portage?

Ich hatte mal 'ne Zeit lang den Portage über nfs. Allerdings macht das bei WLAN aufgrund der Latenz nicht wirklich viel Spaß.
/etc/exports:
/usr/portage           fehlermelder(rw,all_squash,async,no_subtree_check)

Auf dem Client:
/etc/fstab:
faultier:/usr/portage  /usr/portage/       nfs     noauto,wsize=8192,rsize=8192,hard,intr  0 0

Ob im /usr/portage auf dem Client schon was drinsteht, ist dann erstmal egal. Das nfs wird einfach drübergemountet.
Back to top
View user's profile Send private message
trikolon
Apprentice
Apprentice


Joined: 04 Dec 2004
Posts: 297
Location: Erlangen

PostPosted: Tue Feb 02, 2010 9:43 am    Post subject: Reply with quote

Quote:
Vielleicht hilft dir ein zugegeben älteres Howto weiter: gentoo-wiki.info Using a shared portage via NFS.

Grüße


Nach diesem Howto habe ich das im Prinzip erstellt.

Quote:
Warum mountest du den Portage nach /mnt/portage?

Weil NFSv4 eine Art mount-verzeichnis braucht, wo alle exports liegen. Mittels bind linke ich /usr/portage nach /mnt/portage auf dem server.

Wie gesagt, das schreiben per Hand in das gemountete portage Verzeichnis geht und ein emerge --sync geht auch. Nur das emergen selbst bringt Fehler. Vermutlich liegt das mit NFSv4 zusammen..

Gruß

Edit: wenn man rpc.idmapd startet gehts...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum