konto usunięte

Temat: dodanie dysku do zone

Config

zonecfg:mojzone> verify
zonecfg:mojzone> info
zonename: mojzone
zonepath: /dyski/mojzone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
[cpu-shares: 20]
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /rpool/data
special: rpool/data
raw not specified
type: lofs
options: []
fs:
dir: /mnt/disk5
special: /dev/dsk/c2t2d0s2
raw: /dev/rdsk/c2t2d0s2
type: ufs
options: []
net:
address: 192.168.0.45
physical: e1000g0
defrouter: 192.168.0.1
attr:
name: comment
type: string
value: "god damnit"
rctl:
name: zone.cpu-shares
value: (priv=privileged,limit=20,action=none)
zonecfg:mojzone> exit

Przy probie bootowania

solaris1# zoneadm -z mojzone boot
zoneadm: zone 'mojzone': fsck of '/dev/rdsk/c2t2d0s2' failed with exit status 33; run fsck manually
zoneadm: zone 'mojzone': call to zoneadmd failed

Dysk jest zamontowany

solaris1# df -h /mnt/disk5
Filesystem size used avail capacity Mounted on
/dev/dsk/c2t2d0s2 1,9G 2,0M 1,9G 1% /mnt/disk5


solaris1# mount | grep disk5
/mnt/disk5 on /dev/dsk/c2t2d0s2 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=8000c2 on Pn maj 10 09:37:40 2010


Dodanie ZFS dziala bezproblemowo, lecz te cholerne dyski cos nie chca chodzic :) Probowalem z paromo i z nowo dodanymi tez nie wychodzi.
Czego mi brakuje?
DziekiRafal S. edytował(a) ten post dnia 10.05.10 o godzinie 11:12

konto usunięte

Temat: dodanie dysku do zone

Witam,

Tak na szybko bo sie spiesze :)
To problem jest w tym, ze robisz to na slice2 a on jest zarezerwowany do reprezentacji calego dysku. Zrob sobie innego slice np. s3 i zobacz.
Jutro jak bede mial solka pod reka i problem bedzie nadal to pomyslimy.

Pozdrawiam

konto usunięte

Temat: dodanie dysku do zone

probowalem na roznych slice'ach


solaris1# zpool destroy mypool
solaris1# newfs /dev/rdsk/c2t2d0
newfs: /dev/rdsk/c2t2d0: No such file or directory
solaris1# newfs /dev/rdsk/c2t2d0s0
newfs: construct a new file system /dev/rdsk/c2t2d0s0: (y/n)? y
/dev/rdsk/c2t2d0s0: 4173824 sectors in 1019 cylinders of 128 tracks, 32 sectors
2038,0MB in 45 cyl groups (23 c/g, 46,00MB/g, 11264 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 94272, 188512, 282752, 376992, 471232, 565472, 659712, 753952, 848192,
3298432, 3392672, 3486912, 3581152, 3675392, 3769632, 3863872, 3958112,
4052352, 4146592
solaris1# zonecfg -z mojzone
zonecfg:mojzone> add fs
zonecfg:mojzone:fs> set type=ufs
zonecfg:mojzone:fs> set dir=/mnt/disk5
zonecfg:mojzone:fs> set special=/dev/dsk/c2t2d0s0
zonecfg:mojzone:fs> set raw=/dev/rdsk/c2t2d0s0
zonecfg:mojzone:fs> end
zonecfg:mojzone> commit
zonecfg:mojzone> exit
solaris1# mkdir /mnt/disk5
solaris1# mount /dev/dsk/c2t2d0s0 /mnt/disk5
solaris1# zonecfg -z mojzone
zonecfg:mojzone> commit
zonecfg:mojzone> info
zonename: mojzone
zonepath: /dyski/mojzone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
fs:
dir: /mnt/disk5
special: /dev/dsk/c2t2d0s0
raw: /dev/rdsk/c2t2d0s0
type: ufs
options: []
net:
address: 192.168.0.45
physical: e1000g0
defrouter: 192.168.0.1
attr:
name: comment
type: string
value: "god damnit"
zonecfg:mojzone> exit
solaris1# zoneadm -z mojzone boot
zoneadm: zone 'mojzone': fsck of '/dev/rdsk/c2t2d0s0' failed with exit status 33; run fsck manually
zoneadm: zone 'mojzone': call to zoneadmd failed
solaris1# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c0d1 <DEFAULT cyl 2044 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
2. c1d1 <DEFAULT cyl 2044 alt 2 hd 128 sec 32>
/pci@0,0/pci-ide@7,1/ide@1/cmdk@1,0
3. c2t0d0 <DEFAULT cyl 1020 alt 2 hd 128 sec 32>
/pci@0,0/pci15ad,1976@10/sd@0,0
4. c2t1d0 <DEFAULT cyl 1020 alt 2 hd 128 sec 32>
/pci@0,0/pci15ad,1976@10/sd@1,0
5. c2t2d0 <DEFAULT cyl 1020 alt 2 hd 128 sec 32>
/pci@0,0/pci15ad,1976@10/sd@2,0
Specify disk (enter its number): 5
selecting c2t2d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c2t2d0s0 is currently mounted on /mnt/disk5. Please see umount(1M).


FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> part


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print
Current partition table (original):
Total disk cylinders available: 1020 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks
0 unassigned wm 1 - 1019 1.99GB (1019/0/0) 4173824
1 unassigned wm 0 0 (0/0/0) 0
2 backup wu 0 - 1019 1.99GB (1020/0/0) 4177920
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 unassigned wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 2.00MB (1/0/0) 4096
9 unassigned wm 0 0 (0/0/0) 0

partition>quit



solaris1# df -h /mnt/disk5
Filesystem size used avail capacity Mounted on
/dev/dsk/c2t2d0s0 1,9G 2,0M 1,9G 1% /mnt/disk5
solaris1# mount | grep disk5
/mnt/disk5 on /dev/dsk/c2t2d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=8000c0 on Pn maj 10 15:45:57 2010
solaris1#


Edit:
oczywiscie bez dysku chodzi :)

solaris1#
solaris1#
solaris1# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
- mojzone installed /dyski/mojzone native shared
solaris1# zonecfg -z mojzone
zonecfg:mojzone> remove fs dir=/mnt/disk5
zonecfg:mojzone> commit
zonecfg:mojzone> exit
solaris1# zoneadm -z mojzone boot
solaris1# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
30 mojzone running /dyski/mojzone native shared
solaris1#
Rafal S. edytował(a) ten post dnia 10.05.10 o godzinie 16:58

konto usunięte

Temat: dodanie dysku do zone

To:
dir: /mnt/disk5

powinno byc na non-global a u Ciebie jest na global'u ustawione.
I unikaj robienia FS'a na s2 - to nie jest zalecane.

Pozdrawiam

konto usunięte

Temat: dodanie dysku do zone


fs:
dir: /mnt/disk5
special: /dev/dsk/c2t2d0s0
raw: /dev/rdsk/c2t2d0s0
type: ufs
options: []


Hmmm przeciez to jest ustawione na non-global, tzn chce podlaczyc zasob z global na non-global.

Tak samo jak

fs:
dir: /rpool/data
special: rpool/data
raw not specified
type: lofs
options: []

Tylko ze drugi dziala.
Czyli z tego co mowisz zasob ktory chce dac na non-globalu mam odmontowac na globalu? Co czemu zfs dziala dobrze?

Cos ten Solaris kiepsko pisze te pdfy, bo u nich dziala :P
Pozdr

EDIT:
Poczekaj juz czaje o co chodzi z tym ZFS, to w koncu loopbackfs dlatego dziala bez ogrodek. Pobawie sie zaraz tym dyskiem jeszcze.Rafal S. edytował(a) ten post dnia 10.05.10 o godzinie 17:49

konto usunięte

Temat: dodanie dysku do zone


solaris1# mount /dev/dsk/c2t2d0s0 /mnt/disk5
solaris1# cd /mnt/disk5
solaris1# ls
lost+found
solaris1# mkdir test
solaris1# ls
lost+found test
solaris1# zonecfg -z mojzone
zonecfg:mojzone> info
zonename: mojzone
zonepath: /dyski/mojzone
brand: native
autoboot: true
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
inherit-pkg-dir:
dir: /lib
inherit-pkg-dir:
dir: /platform
inherit-pkg-dir:
dir: /sbin
inherit-pkg-dir:
dir: /usr
net:
address: 192.168.0.45
physical: e1000g0
defrouter: 192.168.0.1
attr:
name: comment
type: string
value: "god damnit"
zonecfg:mojzone> add fs
zonecfg:mojzone:fs> set dir=/testmount
zonecfg:mojzone:fs> set special=/dev/dsk/c2t2d0s0
zonecfg:mojzone:fs> set raw=/dev/rdsk/c2t2d0s0
zonecfg:mojzone:fs> set type=ufs
zonecfg:mojzone:fs> end
zonecfg:mojzone> commit
zonecfg:mojzone> exit
solaris1# zoneadm -z mojzone boot
zoneadm: zone 'mojzone': zone is already booted
solaris1# zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
1 mojzone running /dyski/mojzone native shared
solaris1# zoneadm -z mojzone halt
solaris1# zoneadm -z mojzone boot
zoneadm: zone 'mojzone': fsck of '/dev/rdsk/c2t2d0s0' failed with exit status 33; run fsck manually
zoneadm: zone 'mojzone': call to zoneadmd failed
solaris1# umount /mnt/disk5
umount: /mnt/disk5 busy
solaris1# cd
solaris1# umount /mnt/disk5
solaris1# zoneadm -z mojzone boot
solaris1# zlogin -C mojzone
[Connected to zone 'mojzone' console]

testzone console login: root
Password:
Last login: Mon May 10 15:32:56 on console
May 10 16:54:51 testzone login: ROOT LOGIN /dev/console
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
-bash-3.00# df -h /testmount
Filesystem size used avail capacity Mounted on

/testmount 1.9G 2.0M 1.9G 1% /testmount
-bash-3.00#


No juz czaje. Myslalem ze opcje FS przepisuje z globala na non-global :/
Dzieki za wskazowke :)Rafal S. edytował(a) ten post dnia 10.05.10 o godzinie 17:58

konto usunięte

Temat: dodanie dysku do zone

Widze, ze kolega sie mocno Solaryzuje ;)

Jeszcze nie znalazlem idealnej dokumentaci, zawsze sa jakies pytania i niejasnosci.
Aby w pelni zamknac temat to luknij na to:
http://www.open-tech.com/othowto/howto-Solaris-QuickZo...

konto usunięte

Temat: dodanie dysku do zone

Zbigniew G.:
Widze, ze kolega sie mocno Solaryzuje ;)
raining cats and dogs w Irlandii, wiec trzeba cos robic :)

Jeszcze nie znalazlem idealnej dokumentaci, zawsze sa jakies pytania i niejasnosci.
Aby w pelni zamknac temat to luknij na to:
http://www.open-tech.com/othowto/howto-Solaris-QuickZo...
dobry link

konto usunięte

Temat: dodanie dysku do zone

to moze jeszcze wiesz jak zrobic to
prtvtoc /dev/rdsk/c2t6d0s2 | fmthard -s - /dev/rdsk/c2t8d0s2

Jak sie nie ustawi label i fdisk w format dla dysku to nie zadziala.
Jak to zrobic jedna komenda, zeby zaalokowal cale miejsce dla jednej partycji?


solaris1# prtvtoc /dev/rdsk/c2t6d0s2 | fmthard -s - /dev/rdsk/c2t8d0s2
/dev/rdsk/c2t8d0s2: Cannot get disk geometry
solaris1# format /dev/rdsk/c2t8d0s2

/dev/rdsk/c2t8d0s2: configured with capacity of 1.98GB
selecting /dev/rdsk/c2t8d0s2
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fd
No fdisk table exists. The default partition for the disk is:

a 100% "SOLARIS System" partition

Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
format> label
Ready to label disk, continue? y

format> quit
solaris1# prtvtoc /dev/rdsk/c2t6d0s2 | fmthard -s - /dev/rdsk/c2t8d0s2
fmthard: New volume table of contents now in place.
solaris1#

konto usunięte

Temat: dodanie dysku do zone

prtvtoc /dev/rdsk/c2t6d0s2 | fmthard -s - /dev/rdsk/c2t8d0s2


To polecenie przenosi Ci strukture slice z c2t6d0 na dysk c2t8d0.
Jak masz surowy dysk to nie masz przyisanego standardu VTOC, EFI.
Dlatego trzeba klepnac:
format -e
nastepnie:
label
nastepnie wybrac:
0

konto usunięte

Temat: dodanie dysku do zone

myslalem, ze mozna to jakos automatycznie zalatwic :/

Następna dyskusja:

Sun storedge t3 awaria dysku




Wyślij zaproszenie do