|
Friday, 15 September. 2006Восстанавливаем потерянный Disk Label
Это может случиться с каждым, особенно если у вас стоит девятка и ниже.
Что делать: 1. Загружаемся в single-mode ( если вообще все плохо, то с CD-ROM или по сети). 2. Запускаем format: # format 3. Вводим номер диска с потерянной разметкой: Specify disk (enter its number): 1 Далее format проверяет диск и, если диск сконфигурирован успешно, следуем по пунктам 4 и 5, потом 12, если проблемы - с 6 по 11, потом 12 4. Ищем резервную копию разметки: format> verify Warning: Could not read primary label. Warning: Check the current partitioning and 'label' the disk or use the 'backup' command. Backup label contents: Volume name = < > ascii name = pcyl = 2038 ncyl = 2036 acyl = 2 nhead = 14 nsect = 72 Part Tag Flag Cylinders Size Blocks 0 root wm 0 - 300 148.15MB (301/0/0) 303408 1 swap wu 301 - 524 110.25MB (224/0/0) 225792 2 backup wm 0 - 2035 1002.09MB (2036/0/0) 2052288 3 unassigned wm 0 0 (0/0/0) 0 4 unassigned wm 0 0 (0/0/0) 0 5 unassigned wm 0 0 (0/0/0) 0 6 usr wm 525 - 2035 743.70MB (1511/0/0) 1523088 7 unassigned wm 0 0 (0/0/0) 0 5. Если резервная копия найдена, восстанавливаем: format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label Разметка восстановлена. Далее - в пункт 11. 6. Если format не смог сконфигурировать диск, даем команду type: format> type Смотрим имеющиеся диски 7. Выбираем 0 для автоконфигурирования диска, или выбираем тип диска из имеющихся вариантов: Specify disk type (enter its number)[12]: 12 8. Если диск сконфигурирован, отвечаем "no" на вопрос, хотим ли мы разметить диск: Disk not labeled. Label it now? no 9. Прооверяем с помощью verify наличие резервной копии разметки: format> verify Warning: Could not read primary label. Warning: Check the current partitioning and 'label' the disk or use the 'backup' command. . . . 10. Если format находит резервную копию, восстанавливаем ее: format> backup Disk has a primary label, still continue? y Searching for backup labels...found. Restoring primary label The disk label has been recovered. 11. Выходим из format: format> q Это официальный рецепт. Не факт, что у вас все получится как написано выше. Всегда сохранаяйте разметки дисков через утилиту prtvtoc: # prtvtoc /dev/rdsk/c0t1d0s2 > /tmp/format.out чтобы потом восстановить таблицу: # fmthard -s /tmp/format.out /dev/rdsk/c0t0d0s2 Можно еще попробовать восстановить разметку с помощью Windows-утилиты TestDisk, подсоединив диск на Windows-машину. Подробности можно прочитать на amdei.narod.ru. Если у кого-то есть проверенные рецепты - напишите нам! Monday, 11 September. 2006Переходники Cisco Console на 9 и 25 pin
Схемы переходников Cisco Console:
(To Computer) (to the Cisco device)9 PIN D-SUB FEMALE to the Computer RJ45 MALE CONNECTOR to the Cisco device
(To Computer). (to the Cisco device)25 pin D-SUB female connector to the Computer RJ45 MALE CONNECTOR to the Cisco device
Или вот еще: RJ45-DSub9Pin Cable Changer (In=RJ45 Female, Out=DSub9Pin Female) Соединяем DSub9Pin's 2, 3, и 5 как показано на рисунке с соответствующими на RJ45; остальные по усмотрению. ![]() Подходит ли ваше железо к Solaris x86?
Оказывается существует специальная утилита для тех, кто не нашел в Solaris OS Hardware Compatibility Lists (HCL) свое
железо. Называется она Solaris Operating System for x86 Installation Check Tool и представляет из себя урезанный загрузочный диск, который при запуске исследует вашу систему и рапортует, подходит ли ваш PC для полной установки. Скачать можно с Sun Downloads.
Alexander Eremin
в категории OpenSolaris, Solaris, System
в
14:40
| Комментарии (0)
| Обратные ссылки (0)
Как удалить GNOME
Нашел рецепт, как удалить GNOME из системы - если кому-то он не нравится, или у вас на диске мало места
Создаем файл /tmp/noask следующего содержания: mail= instance=unique partial=nocheck runlevel=nocheck idepend=nocheck rdepend=nocheck space=nocheck setuid=nocheck conflict=nocheck action=nocheck basedir=default Далее очищаем систему от GNOME (можно использовать и для удаления других пакетов): # pkginfo | grep -i gnome | sort | awk '{print $2}' | while read package do pkgrm -n -a /tmp/noask $package done Настройка ALOM
Итак, если нужно настроить ALOM с нуля:
С помощью tip (или можно HyperTerminal, если вы сидите в Windows) cоединяемся с портом, установки стандартные (9600 8N1): # tip /dev/term/a -9600 connected Набираем #. чтобы получить консоль. sc> Даем пароль пользователю admin : sc> password password: Changing password for admin Enter new password: ******** Re-enter new password: ******** sc> Настраиваем доступ по сети: sc> setupsc Entering Interactive setup mode. To exit and discard changes to that point, use Ctrl-C or to exit and save changes to that point, use Ctrl-Z. Do you wish to configure the enabled interfaces [y]? y Should the SC network interface be enabled [y]? y Should the SC email alerts be enabled [y]? n Do you wish to configure the network interface [y]? y Should the SC use DHCP to obtain its network configuration [n]? n Enter the SC IP address [100.100.100.100]? Enter the SC IP netmask [255.255.255.0]? Enter the SC IP gateway address [100.100.100.100]? Should the TPE link test be enabled [y]? y Do you wish to configure the managed system interface [y]? y What level of SC events should be reported to the managed system where valid settings are 0 (none), 1 (critical), 2 (critical and major) and 3 (critical, major and minor) [2]? 2 What action should the SC invoke if the OS is hung. The available options are 'none', 'xir' or 'reset' where an xir will attempt to collect diagnosis data before invoking a reset [xir]? xir How many seconds should be allowed for an XIR to complete (maximum timeout of 10800s) [900]? 900 Do you wish to configure the network management interfaces [y]? y Enter the number of mail servers to configure [0]? 1 Enter the IP address for mail server 1 [100.100.100.100]? Enter the number of email recipients to configure [0]? 1 Enter the email address for recipient 1 (maximum of 30 characters) []? Enter the level of events to send to recipient 1 where valid settings are 1 (critical), 2 (critical and major) and 3 (critical, major and minor) [2]? 2 Do you wish to configure the SC parameters [y]? y Enter any customer data for this platform (maximum of 40 characters) []? Enter the console session escape sequence (2 characters). The first character can be any printable characters or control-A through control-Y except for control-C, control-D, control-H, control-J, or control-M. The second character must be a ".". [#.]? #. Enter level of events to be displayed over the CLI where valid settings are 0 (none), 1 (critical), 2 (critical and major) and 3 (critical, major and minor) [2]? 2 Should poweron sequencing be enabled [y]? y Enter the SC cli prompt (maximum of 16 characters) [sc]? Enter the SC CLI timeout in seconds (maximum of 10000s) [0]? 0 Should password entry echo '*'s [y]? y Your ALOM configuration profile has been successfully completed. To activate your network configuration, please reset the SC. sc> Проверяем настройки: sc> showsc Advanced Lights Out Manager v1.5.1 parameter value --------- ----- if_network true if_modem false if_emailalerts false sys_autorestart xir sys_bootrestart none sys_bootfailrecovery none sys_maxbootfail 3 sys_xirtimeout 900 sys_boottimeout 120 sys_wdttimeout 60 netsc_tpelinktest true netsc_dhcp false netsc_ipaddr netsc_ipnetmask netsc_ipgateway mgt_mailhost mgt_mailalert sc_customerinfo sc_escapechars #. sc_powerondelay true sc_powerstatememory false sc_clipasswdecho true sc_cliprompt sc_clitimeout 0 sc_clieventlevel 2 sc_backupuserdata true sys_eventlevel 2 ser_baudrate 9600 ser_parity none ser_stopbits 1 ser_data 8 netsc_enetaddr 00:12:34:56:78:9a sys_hostname myhostname sys_enetaddr 00:12:34:56:78:9b sc> Для того, чтобы поменять какой-либо параметр, надо набрать: setsc [param] [value]. Сохраняем конфигурацию: sc> resetsc -y User Requested SC Shutdown [...] Please login: Проверяем сетевое соединение с ALOM: Disconnect the serial connection to the Serial Mgt port. Connect the NET MGT port with the local area network via a switch. Note: The network management port is a 10-Mbit port! Log in to ALOM from either the host that you just configured or from another machine on the LAN, as shown here. # telnet Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Sun(tm) Advanced Lights Out Manager 1.5.1 (myhostname) Please login: admin Please Enter password: ******** sc> Команды ALOM: sc> help Available commands ------------------ poweron {FRU} poweroff [-y] [-f] removefru [-y] {FRU} reset [-y] [-x] break [-y] bootmode [normal|reset_nvram|diag|skip_diag|bootscript="string"] console [-f] consolehistory [-b lines|-e lines] [-g lines] [-v] [boot|run] showlogs [-b lines|-e lines] [-g lines] [-v] setlocator [on|off] showlocator showenvironment showfru showplatform [-v] showsc [-v] [param] shownetwork [-v] setsc [param] [value] setupsc showdate setdate [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] resetsc [-y] flashupdate [-s IPaddr -f pathname] [-v] setdefaults [-y] [-a] useradd userdel [-y] usershow [username] userpassword userperm password showusers [-g lines] logout help [command] sc> Пример вывода команды showenvironment: sc> showenvironment =============== Environmental Status =============== ----------------------------------------------------------------------------- System Temperatures (Temperatures in Celsius): ----------------------------------------------------------------------------- Sensor Status Temp LowHard LowSoft LowWarn HighWarn HighSoft HighHard ----------------------------------------------------------------------------- MB.P0.T_CORE OK 49 -- -- -- 88 93 100 MB.T_ENC OK 21 -6 -3 5 40 48 51 -------------------------------------- Front Status Panel: -------------------------------------- Keyswitch position: NORMAL -------------------------------------------------------- System Indicator Status: -------------------------------------------------------- MB.LOCATE MB.SERVICE MB.ACT -------------------------------------------------------- OFF OFF OFF -------------------------------------------- System Disks: -------------------------------------------- Disk Status Service OK2RM -------------------------------------------- HDD0 OK OFF OFF HDD1 NOT PRESENT OFF OFF ---------------------------------------------------------- Fans (Speeds Revolution Per Minute): ---------------------------------------------------------- Sensor Status Speed Warn Low ---------------------------------------------------------- F0.RS OK 11440 -- 1000 F1.RS OK 10546 -- 1000 F2.RS OK 11250 -- 1000 F3.RS OK 11250 -- 1000 MB.P0.F0.RS OK 15697 2000 2000 MB.P0.F1.RS OK 16875 2000 2000 ----------------------------------------------------------------------------- Voltage sensors (in Volts): ----------------------------------------------------------------------------- Sensor Status Voltage LowSoft LowWarn HighWarn HighSoft ----------------------------------------------------------------------------- MB.P0.V_CORE OK 1.46 -- 1.26 1.54 -- MB.P1.V_CORE OK 1.41 -- 1.26 1.54 -- MB.V_VTT OK 1.24 -- 1.17 1.43 -- MB.V_GBE_+2V5 OK 2.51 -- 2.25 2.75 -- MB.V_GBE_CORE OK 1.20 -- 1.08 1.32 -- MB.V_VCCTM OK 2.54 -- 2.25 2.75 -- MB.V_+2V5 OK 2.50 -- 2.34 2.86 -- MB.V_+1V5 OK 1.49 -- 1.35 1.65 -- MB.BAT.V_BAT OK 2.95 -- 2.70 -- -- -------------------------------------------- Power Supply Indicators: -------------------------------------------- Supply Active Service OK-to-Remove -------------------------------------------- PS0 ON OFF OFF ----------------------------------------------------------------------------- Power Supplies: ----------------------------------------------------------------------------- Supply Status Underspeed Overtemp Overvolt Undervolt Overcurrent ----------------------------------------------------------------------------- PS0 OK OFF OFF OFF OFF OFF ---------------------- Current sensors: ---------------------- Sensor Status ---------------------- MB.FF_SCSI OK sc> Для получения краткой информации о той или иной команде, используем команду help [command]. В самом Solaris можно из-под root использовать команду scadm для управления ALOM: # /usr/platform/`uname -i`/sbin/scadm help USAGE: scadm For a list of commands, type "scadm help" scadm - COMMANDS SUPPORTED help, date, set, show, resetrsc, download, send_event, modem_setup, useradd, userdel, usershow, userpassword, userperm, shownetwork, loghistory, version scadm - COMMAND DETAILS scadm help => this message scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print or set date scadm set scadm show [variable] => show variable(s) scadm resetrsc [-s] => reset SC (-s soft reset) scadm download [boot] scadm send_event [-c] "message" => send message as event (-c CRITICAL) scadm modem_setup => connect to modem port scadm useradd scadm userdel scadm usershow [username] => show user details scadm userpassword scadm userperm scadm shownetwork => show network configuration scadm loghistory => show SC event log scadm version [-v] => show SC version (-v verbose) # (По материалам BigAdmin) Monday, 4 September. 2006Solaris x86 pxe install по минимуму
Еще раз коротко про то, как установить Solaris x86 по сети:
1. Качаем CD c дистрибутивом. Ставить будем из /opt/solaris_install (на sparc). 2. Монтируем их - скажем в /mnt, далее - cd /mnt/Solaris_10/Tools/ и для каждого запускаем : для первого ./setup_install_server, для остальных - ./add_to_install_server /opt/solaris_install. Не забываем расшарить /opt/solaris_install по NFS. 3. # ./add_install_client -d SUNW.i86pc i86pc. Видим что-то вроде этого: cleaning up preexisting install client "SUNW.i86pc" If not already configured, enable PXE boot by creating a macro named PXEClient:Arch:00000:UNDI:002001 with: Boot server IP (BootSrvA) : 192.168.1.1 Boot file (BootFile) : SUNW.i86pc 4. # ./add_install_client -d -e 0:e0:41:78:ef:ad -s 192.168.1.1:/opt/solaris_install i86pc (без config) 5. Конфигурируем DHCP (dhcpconfig - ну тут уж по Sun'у) и заносим макросы: # /usr/sadm/admin/bin/dhcpmgr & (если X есть) # dhtadm -A -s SrootOpt -d 'Vendor=SUNW.i86pc,1,ASCII,1,0' # dhtadm -A -s SrootIP4 -d 'Vendor=SUNW.i86pc,2,IP,1,1' # dhtadm -A -s SrootNM -d 'Vendor=SUNW.i86pc,3,ASCII,1,0' # dhtadm -A -s SrootPTH -d 'Vendor=SUNW.i86pc,4,ASCII,1,0' # dhtadm -A -s SswapIP4 -d 'Vendor=SUNW.i86pc,5,IP,1,1' # dhtadm -A -s SswapPTH -d 'Vendor=SUNW.i86pc,6,ASCII,1,0' # dhtadm -A -s SbootFIL -d 'Vendor=SUNW.i86pc,7,ASCII,1,0' # dhtadm -A -s Stz -d 'Vendor=SUNW.i86pc,8,ASCII,1,0' # dhtadm -A -s SbootRS -d 'Vendor=SUNW.i86pc,9,NUMBER,2,1' # dhtadm -A -s SinstIP4 -d 'Vendor=SUNW.i86pc,10,IP,1,1' # dhtadm -A -s SinstNM -d 'Vendor=SUNW.i86pc,11,ASCII,1,0' # dhtadm -A -s SinstPTH -d 'Vendor=SUNW.i86pc,12,ASCII,1,0' # dhtadm -A -s SsysidCF -d 'Vendor=SUNW.i86pc,13,ASCII,1,0' # dhtadm -A -s SjumpsCF -d 'Vendor=SUNW.i86pc,14,ASCII,1,0' # dhtadm -A -s Sterm -d 'Vendor=SUNW.i86pc,15,ASCII,1,0' # dhtadm -A -s SbootURI -d 'Vendor=SUNW.i86pc,16,ASCII,1,0' # dhtadm -A -m PXEClient:Arch:00000:UNDI:002001 -d ':BootSrvA=192.168.1.1:BootFile="SUNW.i86pc":' 5. Смотрим в меню Grub: default=0 timeout=30 title Solaris_10 installserver kernel /I86PC.Solaris_10-1/multiboot kernel/unix -B \ install_media=192.168.1.1:/opt/solaris_install,install_boot=192.168.1.1:/opt/solaris_install module /I86PC.Solaris_10-1/x86.miniroot Включаем клиенту загрузку по PXE и поехали ставить...
« предыдущая страница
(Страница 2 из 2, всего записей: 12)
|
КатегорииБыстрый поискКалендарьНовостные лентыАвторы |
|
|



