help moving /var

General support questions including new installations
cry4dawn
Posts: 108
Joined: 2009/09/23 01:48:56

Re: help moving /var

Post by cry4dawn » 2010/01/29 19:24:30

[quote]Stating the obvious, but "mkdir /var" before rebooting. :-)[/quote]

I thought, and maybe its a senior moment, that if you are mounted a directory to a partition /dev/sdb1 /var that you did not need to actually create the directory on the new partition.

grr let me test this if this is what it is maybee its time to retire or find a place that still uses Irix LOL.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: help moving /var

Post by pschaff » 2010/01/29 20:44:44

[quote]
cry4dawn wrote:
[quote]Stating the obvious, but "mkdir /var" before rebooting. :-)[/quote]

I thought, and maybe its a senior moment, that if you are mounted a directory to a partition /dev/sdb1 /var that you did not need to actually create the directory on the new partition.

grr let me test this if this is what it is maybee its time to retire or find a place that still uses Irix LOL.[/quote]

Your test will reveal that the mountpoint directory must exist. I vaguely remember Irix and find that my rusty SunOS and Vax/VMS skills are very little in demand also. ;-)

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: help moving /var

Post by michaelnel » 2010/01/29 20:50:56

I spent 10 years at SGI supporting IRIX. It was the best of the SVR4-based UNIXes, IMO, but I doubt it is being used much any more except for on legacy SGI servers. We have IRIX to thank for XFS, chkconfig and opengl, among other things.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: help moving /var

Post by pschaff » 2010/01/29 20:59:53

Live and learn - knew about XFS and OpenGL but didn't know/remember chkconfig heritage.

Anyway - @[b]cry4dawn[/b] - may not be relevant, but might try the recent selinux-policy updates if you have not already.

cry4dawn
Posts: 108
Joined: 2009/09/23 01:48:56

Re: help moving /var

Post by cry4dawn » 2010/01/29 21:11:59

Im pretty sure I'm completely up to date

root@localhost [~]# yum clean all && yum check-update
Loaded plugins: fastestmirror, priorities
Cleaning up Everything
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror, priorities
Determining fastest mirrors
* addons: ftp.lug.udel.edu
* base: mirror.atlanticmetro.net
* extras: ftp.lug.udel.edu
* rpmforge: fr2.rpmfind.net
* updates: mirrors.unbornmedia.com
addons | 951 B 00:00
addons/primary | 203 B 00:00
base | 2.1 kB 00:00
base/primary_db | 2.0 MB 00:00
extras | 1.1 kB 00:00
extras/primary | 117 kB 00:00
extras 290/290
rpmforge | 1.1 kB 00:00
rpmforge/primary | 3.6 MB 00:06
rpmforge 9865/9865
updates | 1.9 kB 00:00
updates/primary_db | 569 kB 00:00
461 packages excluded due to repository priority protections
You have new mail in /var/spool/mail/root

cry4dawn
Posts: 108
Joined: 2009/09/23 01:48:56

Re: help moving /var

Post by cry4dawn » 2010/01/29 22:31:49

It has to be something with the updates. I did a clean install and did not update and used the same steps as above and it works fine.
did another clean install updated via yum did the same steps and it does not work. I have a feeling it has something to do with the selinux update but not sure.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: help moving /var

Post by pschaff » 2010/02/01 16:02:43

Sounds like it may merit a [url=http://bugs.centos.org/main_page.php]bug report[/url].

cry4dawn
Posts: 108
Joined: 2009/09/23 01:48:56

Re: help moving /var

Post by cry4dawn » 2010/02/04 14:44:22

I submitted the bug report please let me know if you need more information or need me to test something.

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: help moving /var

Post by pschaff » 2010/02/04 16:00:58

For future reference, a link to [url=http://bugs.centos.org/view.php?id=4184]your bug report[/url] would have been helpful.

cry4dawn
Posts: 108
Joined: 2009/09/23 01:48:56

Re: help moving /var

Post by cry4dawn » 2010/02/04 22:26:10

they marked it as not a bug and told me to get help here =(
not sure I fully understand why mv would not preserver the context.

Post Reply