Thank you
@jem!
zpool import helped me access the hard disks while on FreeBSD Live (USB). After importing,
zpool status showed an error and fixed it with
zpool clear. Yet, still the server is neither booting from the harddisks (without Live USB), nor the harddisks get mounted automatically while booting with Live USB. The following are the results that have changed after zpool import. Also note that some commands stopped working as given below:
Code:
[cmd]df[/cmd]
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ufs/FreeBSD_Install 545975 509590 -7293 101% /
devfs 1 1 0 100% /dev
/dev/md0 31772 272 28960 1% /var
/dev/md1 19740 28 18136 0% /tmp
zroot/tmp 105628096 73 105628023 0% /tmp
zroot/usr 106766167 1138144 105628023 1% /usr
zroot/usr/ports 105961617 333594 105628023 0% /usr/ports
zroot/usr/ports/distfiles 106038375 410352 105628023 0% /usr/ports/distfiles
zroot/usr/ports/packages 105744540 116517 105628023 0% /usr/ports/packages
zroot/usr/src 105949029 321006 105628023 0% /usr/src
zroot/var 107168775 1540752 105628023 1% /var
zroot/var/empty 105628042 19 105628023 0% /var/empty
zroot/var/tmp 105628248 225 105628023 0% /var/tmp
Before import it was like:
Code:
[cmd]df[/cmd]
Filesystem 1K-blocks Used Avail Capacity Mounted on[/color]
/dev/ufs/FreeBSD_Install 545975 509590 -7293 101% /
devfs 1 1 0 100% /dev
/dev/md0 31772 268 28964 1% /var
/dev/md1 19740 28 18136 0% /tmp
/dev/da1s1 1020976 874784 146192 86% /tmp/usb1
zpool get all
Not working, and suggests command options which indicate that the above is correct.
diskinfo -v ada0
Code:
/usr/sbin/diskinfo: Exec format error. Binary file not executable.
Note: many commands become non-executable after importing the zpool. I guess that the newly mounted directory
/usr (from zpool) is causing the issue.
diskinfo -v ada1
Code:
/usr/sbin/diskinfo: Exec format error. Binary file not executable.
Note: The same issue as above.
ls -l /dev/gpt
Code:
total 0
crw-r----- 1 root operator 0, 93 Sep 4 10:01 swap0
crw-r----- 1 root operator 0, 104 Sep 4 10:01 swap1
Before
zpool import it was like
ls -l /dev/gpt
Code:
total 0
crw-r----- 1 root operator 0, 106 Sep 2 13:54 disk0
crw-r----- 1 root operator 0, 95 Sep 2 13:54 disk1
crw-r----- 1 root operator 0, 104 Sep 2 13:54 swap0
crw-r----- 1 root operator 0, 93 Sep 2 13:54 swap1
gmirror status
Code:
gmirror: Command 'status' not available.
Note: Again, no idea why 'status' is not working, while it is shown as an acceptable option.
gmirror list
Code:
gmirror: Command 'list' not available.
Note: The same issue as above.
ls -l /etc/zfs
ls -l /boot/zfs /boot/zfsboot /boot/zfsloader
Code:
-r--r--r-- 1 root wheel 66048 Jan 3 2012 /boot/zfsboot
-r-xr-xr-x 1 root wheel 299008 Jan 3 2012 /boot/zfsloader
/boot/zfs:
total 0
ls -l /boot/gptboot /boot/gptzfsboot
Code:
-r--r--r-- 1 root wheel 17011 Jan 3 2012 /boot/gptboot
-r--r--r-- 1 root wheel 40563 Jan 3 2012 /boot/gptzfsboot
Before
zpool import,
ls -l /etc/zfs
zpool status
Code:
pool: zroot
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: [url]http://www.sun.com/msg/ZFS-8000-9P[/url]
scan: none requested
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0p3 ONLINE 0 0 0
ada1p3 ONLINE 0 0 3
errors: No known data errors
Note: the error was fixed with
zpool clear. And, no more errors seen.
zpool list
Code:
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
zroot 228G 124G 104G 54% 1.00x ONLINE -
zfs list
Code:
NAME USED AVAIL REFER MOUNTPOINT
zroot 124G 101G 5.52G legacy
zroot/home 44.9G 101G 76.5K /home
zroot/home/ahmad 2.11G 911M 2.11G /home/ahmad
zroot/home/aorgerie 455M 569M 455M /home/aorgerie
zroot/home/athipatl 2.60M 497M 2.60M /home/athipatl
zroot/home/bmor 38.5K 500M 38.5K /home/bmor
zroot/home/bsk 6.46G 1.54G 6.46G /home/bsk
zroot/home/caleckie 311M 713M 311M /home/caleckie
zroot/home/darryl 2.50G 5.50G 2.50G /home/darryl
zroot/home/davis 4.25G 3.75G 4.25G /home/davis
zroot/home/dbatt 3.57M 496M 3.57M /home/dbatt
zroot/home/fajalali 714M 310M 714M /home/fajalali
zroot/home/git 95.9M 101G 95.9M /home/git
zroot/home/hanly 3.10G 921M 3.10G /home/hanly
zroot/home/jse 418K 500M 418K /home/jse
zroot/home/jthomps 38.5K 500M 38.5K /home/jthomps
zroot/home/lburchat 37.5K 500M 37.5K /home/lburchat
zroot/home/lha 505M 519M 505M /home/lha
zroot/home/lsptune 471M 553M 471M /home/lsptune
zroot/home/mzfeng 38.5K 500M 38.5K /home/mzfeng
zroot/home/nhohn 831M 193M 831M /home/nhohn
zroot/home/pabry 81.8M 942M 81.8M /home/pabry
zroot/home/pfarrell 37.5K 1024M 37.5K /home/pfarrell
zroot/home/pin 1.95M 1022M 1.95M /home/pin
zroot/home/rbowden 39.5K 1024M 39.5K /home/rbowden
zroot/home/rmuharar 4.45M 496M 4.45M /home/rmuharar
zroot/home/rst 14.1M 1010M 14.1M /home/rst
zroot/home/sdey 61.5K 500M 61.5K /home/sdey
zroot/home/seminars 19.0G 101G 19.0G /home/seminars
zroot/home/sgeadmin 70.5K 101G 70.5K /home/sgeadmin
zroot/home/slow 54.4M 970M 54.4M /home/slow
zroot/home/taoye 1.87G 128M 1.87G /home/taoye
zroot/home/tjbr 451M 573M 451M /home/tjbr
zroot/home/tscbuilder 30K 101G 30K /home/tscbuilder
zroot/home/www 1.69G 101G 1.69G /home/www
zroot/jails 6.70G 101G 6.70G /jails
zroot/media 31K 101G 31K legacy
zroot/scratch 49.2G 30.8G 49.2G /scratch
zroot/tftpboot 13.7G 101G 13.7G /tftpboot
zroot/tmp 78K 101G 78K /tmp
zroot/usr 2.21G 101G 1.09G /usr
zroot/usr/ports 840M 101G 326M /usr/ports
zroot/usr/ports/distfiles 401M 101G 401M /usr/ports/distfiles
zroot/usr/ports/packages 114M 101G 114M /usr/ports/packages
zroot/usr/src 313M 101G 313M /usr/src
zroot/var 1.47G 101G 1.47G /var
zroot/var/empty 19K 101G 19K /var/empty
zroot/var/tmp 225K 101G 225K /var/tmp
I would be grateful for any tips/clues of how to fix the server and bring it up again.
As I said earlier, when the server is booted without live USB, it shows Boot options. And then, stops with
No boot options let the server pass that stage.
Note that loader variables remain blank as shown below.
Loader variables:
Code:
vfs.root.mountfrom=
vfs.root.mountfrom.options=
Is that blank loader variables causing any issue? I tried various options by setting them with different possible values.