zfs-linux / zfs

Native ZFS for Linux
http://wiki.github.com/behlendorf/zfs/
Other
56 stars 2 forks source link

Resize the zvol it get kernel panic #68

Closed sachin11 closed 13 years ago

sachin11 commented 13 years ago

Steps:-

1) Create zpool

[root@localhost kqinfo]# zpool create tank /dev/sda1 /dev/sdb1 /dev/sdc1 [root@localhost kqinfo]# zpool status pool: tank state: ONLINE scan: none requested config:

NAME        STATE     READ WRITE CKSUM
tank        ONLINE       0     0     0
  sda1      ONLINE       0     0     0
  sdb1      ONLINE       0     0     0
  sdc1      ONLINE       0     0     0

errors: No known data errors

2) Create one file system on zpool

[root@localhost kqinfo]# zfs create tank/myzfs [root@localhost kqinfo]# zfs list -t all NAME USED AVAIL REFER MOUNTPOINT tank 126K 16.0G 31K /tank tank/myzfs 21K 16.0G 21K /tank/myzfs [root@localhost kqinfo]#

3) Create zvol on file system with specific size

[root@localhost kqinfo]# zfs create -V 10M tank/myzfs/zvol

4) Check the size of created zvol

[root@localhost kqinfo]# zfs get volsize tank/myzfs/zvol NAME PROPERTY VALUE SOURCE tank/myzfs/zvol volsize 10M local [root@localhost kqinfo]#

5) Resize the zvol it get kernel panic

[root@localhost kqinfo]# zfs set volsize=20M tank/myzfs/zvol

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] Oops: 0000 [#1] SMP

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] last sysfs file: /sys/devices/virtual/block/tank!myzfs!zvol/range

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] Stack:

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] Call Trace:

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] Code: 50 10 48 89 50 18 48 8d 90 80 00 00 00 48 89 90 80 00 00 00 48 89 90 88 00 00 00 5a 5b c9 c3 55 48 89 e5 41 54 53 0f 1f 44 00 00 <48> 8b 07 49 89 fc 48 8b 38 e8 5f ff ff ff 4c 89 60 20 49 8b 3c

Message from syslogd@localhost at Dec 13 13:06:21 ... kernel:[ 468.067124] CR2: 0000000000000000 Killed [root@localhost kqinfo]#

prasad-joshi commented 13 years ago

[12158.029528] error 0 function zfs_root [12158.029534] inode 4 at zfs_root function 1851 line [12158.029547] checking : this : super_block magic no : 2fc12fc1 [12181.169705] tank/fs/vol: unknown partition table [12230.983991] BUG: unable to handle kernel NULL pointer dereference at (null) [12230.983999] IP: [] dmu_tx_create+0x16/0x50 [zfs] [12230.984052] PGD 39b15067 PUD 22bbf067 PMD 0 [12230.984057] Oops: 0000 [#1] SMP [12230.984060] last sysfs file: /sys/devices/virtual/net/pan0/statistics/collisions [12230.984064] CPU 0 [12230.984066] Modules linked in: lzfs zfs(P) zcommon(P) zunicode(P) znvpair(P) zavl(P) splat spl zlib_deflate usb_storage michael_mic arc4 binfmt_misc rfcomm ppdev sco bridge stp bnep l2cap vboxnetadp vboxnetflt vboxdrv snd_hda_codec_idt snd_hda_codec_intelhdmi fbcon tileblit font bitblit softcursor vga16fb vgastate nfsd lockd nfs_acl auth_rpcgss sunrpc exportfs joydev snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy usbhid dell_wmi snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device hid lib80211_crypt_tkip uvcvideo videodev dell_laptop dcdbas btusb bluetooth snd v4l1_compat v4l2_compat_ioctl32 i915 drm_kms_helper ricoh_mmc sdhci_pci sdhci led_class psmouse serio_raw wl(P) lib80211 soundcore snd_page_alloc drm i2c_algo_bit intel_agp video output lp parport ohci1394 sky2 ieee1394 ahci [last unloaded: spl] [12230.984135] Pid: 3491, comm: lt-zfs Tainted: P 2.6.32-25-generic #45-Ubuntu Inspiron 1525
[12230.984137] RIP: 0010:[] [] dmu_tx_create+0x16/0x50 [zfs] [12230.984166] RSP: 0018:ffff8800463d3c48 EFLAGS: 00010286 [12230.984168] RAX: ffff8800463d2000 RBX: 0000000000000000 RCX: 0000000000000000 [12230.984171] RDX: ffff8800463d2000 RSI: 0000000000000001 RDI: 0000000000000000 [12230.984173] RBP: ffff8800463d3c58 R08: 0000000000000079 R09: 0000000000000246 [12230.984175] R10: 000000000000003b R11: 0000000000000000 R12: ffff880001e90000 [12230.984178] R13: ffff8800743ba800 R14: ffff8800323d2d80 R15: 0000000001400000 [12230.984181] FS: 00007f7c1e685b40(0000) GS:ffff880001c00000(0000) knlGS:0000000000000000 [12230.984183] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [12230.984185] CR2: 0000000000000000 CR3: 000000004e56a000 CR4: 00000000000406f0 [12230.984188] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [12230.984190] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 [12230.984193] Process lt-zfs (pid: 3491, threadinfo ffff8800463d2000, task ffff880022878000) [12230.984195] Stack: [12230.984197] 0000000000000000 ffff880001e90000 ffff8800463d3cd8 ffffffffa0b7c881 [12230.984201] <0> ffff880000608c00 0000000000000007 0000000000000008 ffff8800323d22d0 [12230.984205] <0> 0000000000000000 0000000001400000 0000000000000000 ffff8800006f7800 [12230.984210] Call Trace: [12230.984248] [] zvol_set_volsize+0x191/0x350 [zfs] [12230.984282] [] zfs_prop_set_special+0x26c/0x430 [zfs] [12230.984316] [] ? zfs_check_settable+0xb8/0x470 [zfs] [12230.984350] [] zfs_set_prop_nvlist+0x1ba/0x830 [zfs] [12230.984385] [] zfs_ioc_set_prop+0x7b/0x140 [zfs] [12230.984419] [] zfsdev_ioctl+0xef/0x1c0 [zfs] [12230.984425] [] vfs_ioctl+0x22/0xa0 [12230.984429] [] ? __fput+0x199/0x210 [12230.984433] [] do_vfs_ioctl+0x81/0x380 [12230.984436] [] sys_ioctl+0x81/0xa0 [12230.984441] [] system_call_fastpath+0x16/0x1b [12230.984443] Code: f0 4c 8b 6d f8 c9 c3 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 48 83 ec 10 48 89 1c 24 4c 89 64 24 08 0f 1f 44 00 00 <48> 8b 07 49 89 fc 48 8b 38 e8 dc fd ff ff 4c 89 60 20 49 8b 3c [12230.984478] RIP [] dmu_tx_create+0x16/0x50 [zfs] [12230.984506] RSP [12230.984508] CR2: 0000000000000000 [12230.984525] ---[ end trace 5acebb4c50d85e26 ]---

ganeshjagtap commented 13 years ago

issue solved by Prasad.