sadm.magnus.pp.ru Заметки крошки-админа

2 September 2011

Как сгенерировать MAC для DomU Xen

Filed under: Компьютеры и интернет — Tags: — Magnus @ 11:36
# perl -e 'printf "00:16:3E:%02X:%02X:%02X\n", rand 0xFF, rand 0xFF, rand 0xFF'
00:16:3E:B9:85:0F

19 June 2011

The file /boot/grub/stage1 not read correctly.

Filed under: Компьютеры и интернет — Tags: , — Magnus @ 14:11

Нужно было установить загрузчик на диск, но это не получилось сделать ни grub-install:

# grub-install /dev/sda
The file /boot/grub/stage1 not read correctly. 

ни grub:

# grub
grub> root (hd0,0)
 Filesystem type is ext3, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found

grub> find /boot/grub/stage1

Error 15: File not found

При этом файл /boot/grub/stage1 имелся.

В интренет-поисках было обнаружено следующее:

"e2fsprogs ? 1.40.5 creates ext3 filesystems with 256 byte large inodes by default (in contrast to 128 byte used before), to accommodate for further ext4 related changes... Using any of these new features requires updating the bootsector of your system. Bootsectors written by "grub or earlier versions of "grub-gfxboot" are not able to boot or even access partitions using any of these new features!"

И действительно, оказалось раздел был отформатирован с 256-битными inode.

# tune2fs -l /dev/sdb1 | grep -i 'inode size'
Inode size:               256

Решение было одно - переформатировать раздел с 128-битными inode.

# mkfs.ext3 -I 128 /dev/sdb1

24 January 2011

Изменение timezone в RedHat/CentOS

Filed under: Компьютеры и интернет — Tags: , , — Magnus @ 14:18
[root@mail ~]# date
Mon Jan 24 11:04:37 UTC 2011
[root@mail ~]# install -m 444 /usr/share/zoneinfo/Europe/Moscow /etc/localtime
[root@mail ~]# date
Mon Jan 24 14:06:31 MSK 2011

Не забываем, при необходимости, изменить /etc/sysconfig/clock:

ZONE="Europe/Moscow"

25 December 2009

Полезные ссылки по VMware

Filed under: Компьютеры и интернет — Tags: — Magnus @ 16:36

VMware Documentation

VMware vSphere API 4.0 Reference Documentation

VMware vSphere API 4.1 Reference Documentation

vSphere SDK for Perl Documentation

Self-Configuration and the OVF Environment

19 August 2009

Как узнать какой установлен процессор на Intel Solaris?

Filed under: Компьютеры и интернет — Tags: — Magnus @ 18:10

Solaris 8

# /usr/sbin/psrinfo -v
Status of processor 0 as of: 08/19/09 19:02:35
  Processor has been on-line since 08/19/09 07:37:07.
  The i386 processor operates at 3333 MHz,
        and has an i387 compatible floating point processor.
Status of processor 1 as of: 08/19/09 19:02:35
  Processor has been on-line since 08/19/09 07:37:12.
  The i386 processor operates at 3333 MHz,
        and has an i387 compatible floating point processor.

Solaris 9

# /usr/sbin/i86/prtconf -v | grep CPU
                    value=' Intel(R) Xeon(TM) CPU 3.20GHz'
                    value=' Intel(R) Xeon(TM) CPU 3.20GHz'
                    value=' Intel(R) Xeon(TM) CPU 3.20GHz'
                    value=' Intel(R) Xeon(TM) CPU 3.20GHz'

Solaris 10

# prtdiag -vl
==== Processor Sockets ====================================

Version Location Tag
-------------------------------- --------------------------
Intel(R) Xeon(TM) CPU 3.06GHz CPU 1
Intel(R) Xeon(TM) CPU 3.06GHz CPU 2
« Newer PostsOlder Posts »

Powered by WordPress